Real-Dev-Squad / website-backend

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

Deprecate the /self API endpoint across all routes #2219

Open vikasosmium opened 7 hours ago

vikasosmium commented 7 hours ago

Issue Description

Deprecate the /self API endpoint across all routes from the website-backend. And introduce a new route that will serve the purpose of /self.

Below is the mentioned list of routes where /self is currently being used:

    • [ ] GET /arts/user/self
    • [ ] GET /extensionRequests/self
    • [ ] GET /stocks/user/self
    • [ ] GET /tasks/self
    • [ ] PATCH /tasks/self/:id
    • [ ] PATCH /tasks/assign/self
    • [ ] POST /trading/stock/new/self
    • [ ] PATCH /users/self
    • [ ] GET /users/self
    • [ ] PUT /users/self/intro
    • [ ] GET /userStatus/self
    • [ ] PATCH /userStatus/self

Expected Behavior

The API Endpoint should have a more meaningful name.

Current Behavior

Reproducibility

Severity/Priority

Additional Information

Checklist

vikasosmium commented 6 hours ago

Can you please assign this issue to me? @vinit717