K
Kizspy.me
Zoom
Return a list of books with the following information: Bookld, Title, Publication Year, and the
number of available copies.
Support both JSON and XML response formats.
Detailed pagination:
0
0
Use query parameters:
page: Current page (starting from 1, default is 1).
pageSize: Number of books per page (default is 10).
Return the list of books for the requested page, along with pagination metadata:
TotalBooks: Total number of books in the database.
TotalPages: Total number of pages, calculated based on pageSize (e.g., 25 books
with pageSize=10 results in TotalPages=3).
•
Error handling:
о
•
o
CurrentPage: The current page.
PageSize: Number of books per page.
If page or pageSize is negative or invalid, return a 400 Bad Request error.
If page exceeds TotalPages, return an empty list with pagination metadata.
Examples:
Close
+ 96%