-
Notifications
You must be signed in to change notification settings - Fork 8
Open
Labels
Description
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:
- Create an endpoint in the UserController that allows the admin to fetch details of a user by their ID.
- Implement security measures to ensure only admin users can access this endpoint.
Acceptance Criteria:
- Admin should be able to make a
GETrequest 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.
Reactions are currently unavailable