cURL
curl --request GET \ --url https://api.example.com/users
{ "200": {}, "_embedded.users": [ { "id": 123, "name": "<string>", "email": "<string>", "role": {}, "createdAt": {}, "_links": { "self": { "href": "<string>" } } } ], "_links": { "self": { "href": "<string>" } } }
CollectionModel
EntityModel
CUSTOMER
ADMIN
PasswordEncoder
curl -X GET http://localhost:8080/users \ -H "Content-Type: application/json"
{ "_embedded": { "users": [ { "id": 1, "name": "John Doe", "email": "[email protected]", "role": "CUSTOMER", "createdAt": "2026-03-01T10:30:00", "_links": { "self": { "href": "http://localhost:8080/users/1" } } }, { "id": 2, "name": "Jane Smith", "email": "[email protected]", "role": "ADMIN", "createdAt": "2026-03-02T14:15:00", "_links": { "self": { "href": "http://localhost:8080/users/2" } } } ] }, "_links": { "self": { "href": "http://localhost:8080/users" } } }