Skip to content

Implement "Get Specific User by ID" in UserController #35

Description

@AhmedFatthy1040

Issue Title: Implement "Get Specific User by ID" in UserController

Issue Description:

As an admin, I want to be able to retrieve the details of a specific user by their user ID so that I can view and manage individual user information effectively.

Tasks:

  1. Create an endpoint in the UserController that allows the admin to fetch details of a user by their ID.
  2. Implement security measures to ensure only admin users can access this endpoint.

Acceptance Criteria:

  • Admin should be able to make a GET request to /api/users/{userId} and retrieve user information.
  • Return 404 Not Found if the user does not exist.
  • Return 200 OK with user details if the user is found.
  • Ensure proper error handling and validation.
  • Apply proper authorization so that only users with the "admin" role can access this endpoint.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions