cURL
curl --request GET \ --url https://api.example.com/api/users
{ "users": [ { "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 list of all users in the system
curl -X GET 'http://localhost:8080/api/users' \ -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" }, { "id": 2, "username": "janesmith", "email": "[email protected]", "password_hash": "$2a$10$...", "firstname": "Jane", "lastname": "Smith", "phone_number": "+1234567891", "role": "DRIVER", "is_active": true, "profileImage": "/images/profiles/janesmith.jpg", "created_at": "2024-01-16T09:20:00Z", "updated_at": "2024-01-22T11:30:00Z" } ]