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

16 Designing schemas with composition in OpenAPI

This chapter covers

  • Updating the domain model with new concepts
  • Using subtypes and inheritance in the domain model
  • Creating composite JSON Schemas from the domain model

In the last chapter, José and his team identified new requirements from the initial user tests and planned a new development sprint. Part of that plan involved moving from a single Dog concept to multiple pets. This requirement implies changes to the domain model.

By going through the user stories, the PetSitter team realized that many parts of the domain model and, thus, the API description, can remain the same. The affected segment of the model is the Dog concept and its relationship with the Job concept, which we’ll now update. ...

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