10 Creating an API design using OpenAPI

This chapter covers

  • Creating reusable schemas in OpenAPI
  • Converting the PetSitter domain model into schemas
  • Designing an API following the CRUD approach
  • Creating paths and operations for the PetSitter API

In the previous chapter we got to know José and his team, who are building the PetSitter application. We accompanied them through their initial meeting, in which they created an action plan for building the application. We also joined their domain-modeling whiteboard session, in which they prepared a high-level domain model.

The domain-modeling session was the first item on their action plan, which leaves us with the following steps:

  1. Max, the frontend developer, will create the first draft of their ...

Get Designing APIs with Swagger and OpenAPI now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.