Real-Dev-Squad / website-backend

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

Deprecate /self API Endpoints and Provide Meaningful Alternative Routes #2219

Open vikasosmium opened 1 month ago

vikasosmium commented 1 month ago

Issue Description

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

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

    • [x] 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
    • [ ] PUT /users/self/intro
    • [x] 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 1 month ago

Can you please assign this issue to me? @vinit717