Skip to Content
Microservice APIs
book

Microservice APIs

by Jose Haro
February 2023
Intermediate to advanced
440 pages
12h 20m
English
Manning Publications
Content preview from Microservice APIs

5 Documenting REST APIs with OpenAPI

This chapter covers

  • Using JSON Schema to create validation models for JSON documents
  • Describing REST APIs with the OpenAPI documentation standard
  • Modeling the payloads for API requests and responses
  • Creating reusable schemas in OpenAPI specifications

In this chapter, you’ll learn to document APIs using OpenAPI: the most popular standard for describing RESTful APIs, with a rich ecosystem of tools for testing, validating, and visualizing APIs. Most programming languages have libraries that support OpenAPI specifications, and in chapter 6 you’ll learn to use OpenAPI-compatible libraries from the Python ecosystem.

OpenAPI uses JSON Schema to describe an API’s structure and models, so we start by providing an ...

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

API Design Patterns

API Design Patterns

John J. Geewax
Designing APIs with Swagger and OpenAPI

Designing APIs with Swagger and OpenAPI

Lukas Rosenstock, Joshua Ponelat

Publisher Resources

ISBN: 9781617298417Supplemental ContentPublisher SupportOtherPublisher WebsiteSupplemental ContentPurchase Link