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

6 Building REST APIs with Python

This chapter covers

  • Adding URL query parameters to an endpoint using FastAPI
  • Disallowing the presence of unknown properties in a payload using pydantic and marshmallow
  • Implementing a REST API using flask-smorest
  • Defining validation schemas and URL query parameters using marshmallow

In previous chapters, you learned to design and document REST APIs. In this chapter, you’ll learn to implement REST APIs by working on two examples from the CoffeeMesh platform, the on-demand coffee delivery application that we introduced in chapter 1. We’ll build the APIs for the orders service and for the kitchen service. The orders service is the main gateway to CoffeeMesh for customers of the platform. Through it they can place ...

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