cURL
curl --request GET \ --url https://api.example.com/api/users/{id}
{ "404": {}, "id": 123, "username": "<string>", "email": "<string>", "password_hash": "<string>", "firstname": "<string>", "lastname": "<string>", "phone_number": "<string>", "role": "<string>", "is_active": true, "profileImage": "<string>", "created_at": {}, "updated_at": {} }
Retrieve a specific user by their ID
curl -X GET 'http://localhost:8080/api/users/1' \ -H 'Content-Type: application/json'
{ "id": 1, "username": "johndoe", "email": "[email protected]", "password_hash": "$2a$10$...", "firstname": "John", "lastname": "Doe", "phone_number": "+1234567890", "role": "USER", "is_active": true, "profileImage": "/images/profiles/johndoe.jpg", "created_at": "2024-01-15T10:30:00Z", "updated_at": "2024-01-20T14:45:00Z" }