June 2022
Intermediate to advanced
424 pages
11h 50m
English
This chapter covers
In this chapter we’re going to describe a simple HTTP response with OpenAPI and add it to our FarmStall API definition. We’ll look at the components of an HTTP response, comprising three parts: a status code, a set of headers, and an optional body. We’re going to focus on the status code and body for now (see figure 5.1). Headers will be covered incrementally throughout the next chapters.

Figure 5.1 Where we are
Describing response bodies is an important ...
Read now
Unlock full access