June 2022
Intermediate to advanced
424 pages
11h 50m
English
This chapter covers
As we have designed and implemented the PetSitter API, we’ve mostly looked at the happy path, which is when everything works according to plan and things are 200 OK. Obviously we want the interactions between our API and its users to be on this path as often as possible, but we cannot always guarantee that. In this chapter we’ll look at the ways things can go wrong and how to handle those situations.
The OpenAPI definition of an API is a contract that both sides, client and server, have to ...