4

Getting Started with FastAPI

The application programming interface (API) is the cornerstone of your FARM stack, functioning as the brain of the system. It implements business logic that dictates how the data flows in and out of the system, but more importantly, how it relates to the business requirements inside your system.

Frameworks such as FastAPI are much easier to showcase through examples. In this chapter, you’ll explore some simple endpoints that make up for a minimal, self-contained REST API. These examples will help you understand how FastAPI handles requests and responses.

This chapter focuses on introducing the framework, along with the standard REST API practices and how they are implemented in FastAPI. You’ll learn how to send ...

Get Full Stack FastAPI, React, and MongoDB - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.