Retrieve user information by their unique identifier. Returns comprehensive user profile data.
GET
/api/v1/user/find/{id}
curl \
--request GET 'http://localhost:3500/api/v1/user/find/user-uuid-123e4567-e89b-12d3-a456-426614174000'
Response examples (200)
{
"id": "user-uuid-123e4567-e89b-12d3-a456-426614174000",
"role": "LECTURER",
"email": "jane.smith@university.edu",
"phone": "+254712345679",
"status": "ACTIVE",
"lastname": "Smith",
"createdAt": "2024-01-10T08:15:00Z",
"firstname": "Jane",
"updatedAt": "2024-01-20T14:45:00Z",
"instituteid": "institute-uuid-here"
}
Response examples (400)
{
"error": "Bad Request",
"message": "Invalid UUID format",
"statusCode": 400
}
Response examples (401)
{
"error": "Unauthorized",
"message": "Unauthorized",
"statusCode": 401
}
Response examples (404)
{
"error": "Not Found",
"message": "User not found",
"statusCode": 404
}