GaProgMan / bookApi

An API and UI for a fake book search engine - built entirely in the open, on Twitch
https://twitch.tv/gaprogman
MIT License
2 stars 0 forks source link

GET a paged set of book records #2

Closed GaProgMan closed 3 years ago

GaProgMan commented 3 years ago

Description

An overloaded version of the Get endpoint on the BooksController which takes a query string containing the following required fields:

These fields are then used to filter the number of returned records. As an example: if the user sends the following query string data pageNumber=1&perPage=15, then the first 15 records will be returned.

Similarly, if the user sends the following query string pageNumber=2&perPage=15, then the second 15 records will be returned - as it is requesting page 2.

The following fields can also be provided, but they will not be used by this piece of work:

High-Level Proposed Solution

Considerations

A number of new POCOs will be required:

Future versions of the API might require the PagedResponse POCO to be generic. However, this version of the API does not require that functionality.

It is recommended that this work is completed after #1, as this work is less trivial.

Requirements