Endpoint
Returns the details of a specific user identified by their unique UUID.
Path Parameters
Unique user identifier.Example: 0f4df2de-fffb-4a24-9891-381ecf4f0f87
Response
Unique identifier for the user.Example: 0f4df2de-fffb-4a24-9891-381ecf4f0f87
The user’s username.Example: jdoe
The user’s email address.Example: jdoe@example.com
The user’s first name.Example: John
The user’s last name.Example: Doe
The user’s role.Example: USER
ISO 8601 timestamp when the user was created.Example: 2024-01-15T10:30:00
ISO 8601 timestamp when the user was last updated.Example: 2024-01-15T10:30:00
Whether the user account is active.Example: true
Status Codes
User retrieved successfully
User with the specified ID does not exist
An unexpected error occurred
Example Request
curl http://localhost:8080/api/v1/users/0f4df2de-fffb-4a24-9891-381ecf4f0f87
Example Response
{
"id": "0f4df2de-fffb-4a24-9891-381ecf4f0f87",
"username": "jdoe",
"email": "jdoe@example.com",
"firstName": "John",
"lastName": "Doe",
"role": "USER",
"createdAt": "2024-01-15T10:30:00",
"updatedAt": "2024-01-15T10:30:00",
"active": true
}
Error Response Example
User Not Found (404)
{
"type": "about:blank",
"title": "User Not Found",
"status": 404,
"detail": "User not found with id: 0f4df2de-fffb-4a24-9891-381ecf4f0f87",
"userId": "0f4df2de-fffb-4a24-9891-381ecf4f0f87",
"timestamp": "2024-01-15T10:30:00"
}