Retrieve a paginated list of all book rentals in the system.
curl -X GET "https://api.example.com/rentals?page=0&size=10&sort=loanDate,desc" \ -u "username:password" \ -H "Content-Type: application/json"
{ "content": [ { "id": 123, "user": { "id": 42, "firstname": "John", "lastname": "Doe", "email": "[email protected]", "displayPicture": "https://example.com/photos/john.jpg" }, "book": { "isbn": "978-0-12345-678-9", "title": "The Great Adventure", "stock": 4, "coverImage": "https://example.com/covers/great-adventure.jpg", "author": { "id": 7, "name": "Jane Smith", "age": 45 } }, "loanDate": "2026-03-04T10:30:00Z", "returnDate": "2026-03-18T10:30:00Z", "returned": false } ], "pageable": { "pageNumber": 0, "pageSize": 10, "sort": { "sorted": true, "unsorted": false, "empty": false }, "offset": 0, "paged": true, "unpaged": false }, "totalElements": 1, "totalPages": 1, "last": true, "first": true, "size": 10, "number": 0, "numberOfElements": 1, "empty": false }
loanDate,desc
id,asc