Closed scottandee closed 2 weeks ago
Retrieval by superadmin is not different from standard retrieval
I couldn't assign them directly to the repo since they don't have access to the repo
change statusCode
to status_code
change
statusCode
tostatus_code
Done thank you
Description
Develop API endpoint to fetch a single user
Acceptance Criteria
api/v1/users/:userId
GET
requests.Authorization: Bearer <token>
Request
Endpoint
GET
/api/v1/users/:userId
Parameters:
userId
: stringExpected Outcome
Successful Response
Error Response:
Purpose
Provides a backend service which allows users to fetch a single user
Requirements
Tasks
Create User Fetching Logic
Authorization Checks
Database Operations:
Error Handling and Logging:
Tests