FastAPI Fundamentals
This course will teach you how to develop and serve a REST API using FastAPI, a Python framework that is quickly becoming the most popular way to build REST API’s in the Python world.
What you'll learn
in this course I will teach you about creating web rest apis with FastAPI, a very popular and very modern framework that has taken the python world by storm. FastAPI takes advantage of many of the newest python features like type hints and async/await, and writing rest apis has never been faster or more fun. REST api’s written in fastapi tend to be very performant as well. In this course, we are going to build a Rest api with fastapi and along the way you will learn about all its major features. We will cover schemas and automatic data validation and conversion, persistence using sqlmodel, auto-generated documentation, authentication with oauth, and much more. By the end of this course you will have a firm understanding of all of these, and you’ll be ready to create your first rest api with fastapi. Before beginning the course you should be familiar with Python and the basics of rest API’s.
Table of contents
- Creating a Data Model with Pydantic 6m
- Loading Data from JSON 2m
- Using Pydantic Models in Read-only Operations 1m
- Recap: HTTP Methods 2m
- Adding New Objects with POST 3m
- The Need for Separate Input and Output Models 4m
- The Response Model 2m
- Implementing PUT and DELETE 3m
- Using the Openapi Schema with Postman 5m
- Adding Example Data 1m
- Nested Models 2m
- Review 9m