The basics of Creating a Full CRUD API in Python (Flask and FastAPI)

Flask and FASTApi are two very popular Python frameworks for creating an API in python. In this tutorial, we will walk through making an API with both with full CRUD. We will not be using a database or ORM. Although using the patterns below you can adapt your preferred data layer into your API. So instead of a database we will define our model using a class and use a list to create, read, update and delete our data.

Before doing this tutorial make sure to have a recent version of Python 3 installed.