DEV Community

Suhana
Suhana

Posted on

1

How to decide to have one endpoint or different?

Actually, i have an endpoint which takes Jwt token and returns user from the token(decrypting). Now i have to write other endpoint which gives user details but in request i also get identity source(thirdparty soruce) and id. so in this case i will get details from third-party source if i get request like this.the Response details data will not same in both the cases. Now, i couldn't decide if i need to have different endpoints or not??

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

πŸ‘‹ Kindness is contagious

Please leave a ❀️ or a friendly comment on this post if you found it helpful!

Okay