Skip to Content
Designing APIs with Swagger and OpenAPI
book

Designing APIs with Swagger and OpenAPI

by Lukas Rosenstock, Joshua Ponelat
June 2022
Intermediate to advanced
424 pages
11h 50m
English
Manning Publications
Content preview from Designing APIs with Swagger and OpenAPI

17 Scaling collection endpoints with filters and pagination

This chapter covers

  • Designing filters, pagination, and sorting for APIs
  • Enhancing the PetSitter OpenAPI definition with these features

As the PetSitter application grows, a lot of jobs will eventually be posted in the system at the same time. Pet sitters will have a hard time going through all the job postings to find those they are interested in. Also, the API response for listing all jobs may get too large to handle and slow down the app. The PetSitter team realized this during their sprint planning in chapter 16. At that time they decided to implement filters and pagination to solve the issue. While discussing these, we’re also going to look at a third related topic: sorting.

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Design and Build Great Web APIs

Design and Build Great Web APIs

Mike Amundsen
Mastering API Architecture

Mastering API Architecture

James Gough, Daniel Bryant, Matthew Auburn

Publisher Resources

ISBN: 9781617296284Supplemental ContentPublisher SupportOtherPublisher WebsiteSupplemental ContentErrata PagePurchase Link