Real-Dev-Squad / website-backend

The backend code for all our website-related apps
https://api.realdevsquad.com/
MIT License
46 stars 201 forks source link

Deprecating `/users/self` GET route #1988

Open somu-code opened 3 months ago

somu-code commented 3 months ago

Issue Description

Deprecate the/users/self API from website-backend. And adding a new route that will serve the purpose of /users/self. Old issue link

Expected Behavior

The user's data should return from an API that has some meaningful name.

Current Behavior

Currently, /users/self GET route returns all the details of the currently authenticated user.

User Story

Developer Story

Requirements

Screenshots

/users/self

Screenshot from 2024-05-17 13-28-38

/users?id=66wkaNSpTskaVTmSSRPQ

Screenshot from 2024-06-16 00-43-05

Reproducibility

Steps to Reproduce

  1. Make a GET request to /users/self and /users?id=some_id endpoints.

Severity/Priority

Additional Information

Checklist