Skip to content

Replace /extension-requests/self with /extension-requests/user/:userId for fetching extension requests #1351

@RishiChaubey31

Description

@RishiChaubey31

Issue Description

  • Currently, we use the endpoint /extension-requests/self to retrieve all extension requests for the logged-in user. However, we should transition to using the endpoint /extension-requests/user/:userId to align with the updated API structure and improve clarity and consistency.

expected Behaviour

  • The system should fetch extension requests using /extension-requests/user/:userId, where :userId is dynamically replaced with the logged-in user's ID. This provides a more RESTful and scalable API design.

current behaviour

  • The system currently fetches extension requests using the endpoint /extension-requests/self, which is hardcoded to get data for the authenticated user.

Reference

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions