DEV Community

Suhana
Suhana

Posted on

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)