FastAPI Python Tutorial - 6: Add users: Request body with Pydantic model
Welcome to our FastAPI Python Tutorial series. You’ll build a basic API using FastAPI as a practice project.
In this Part 6 video, you’ll learn:
✅What is the request body?
✅How to write post operations to create data?
✅How to use Pydantic models for data validation?
✅And more!
GitHub Repo with the final code:
Please see below the complete outline for this minicourse:
Part 1: What is FastAPI and How to get started
Part 2: Create the most basic API
Part 3: Set up the users’ path/endpoint
Part 4: Filter for specific users: Path parameter
Part 5: Query users based on criteria: Query parameter
▶️Part 6: Add users: Request body with Pydantic model
Part 7: Update and Delete users
Part 8: Raise error responses
Technologies that will be used:
☑️ PyCharm
☑️ Python
a