Overview

This is a collection of notes on how to apply some design concepts and patterns to create a FastAPI-based API. For those of you who don't know what FastAPI is, I invite you to visit their website.

FastAPI framework, high performance, easy to learn, fast to code, ready for production

So how are the notes organized? The notes have been written and inspired by TDD (Test-Driven Development), creating tests with the pytest package. What does it mean?

It means that first of all I defined a list of topics that I think are basic to any API. And for each topic, I created a single python file, started to define what needs to be tested, and then I coded the rest.

The list of notes is:

This series of notes will explain the things I have learned from composing some FastAPI backends.