curl --location 'https://api.maytravel.com/users/1' \
--header 'Content-Type: application/json'
[
{
"id": 1,
"username": "johndoe",
"email": "johndoe@example.com",
"password": "hashed_password",
"role": "user"
}
]
Retrieve a specific user by their ID
curl --location 'https://api.maytravel.com/users/1' \
--header 'Content-Type: application/json'
[
{
"id": 1,
"username": "johndoe",
"email": "johndoe@example.com",
"password": "hashed_password",
"role": "user"
}
]
curl --location 'https://api.maytravel.com/users/1' \
--header 'Content-Type: application/json'
[
{
"id": 1,
"username": "johndoe",
"email": "johndoe@example.com",
"password": "hashed_password",
"role": "user"
}
]
200 - Success: Returns array with user object404 - Not Found: User with specified ID does not exist500 - Server Error: Internal server error occurred