FastAPI Python Tutorial - 6: Add users: Request body with Pydantic model

preview_player
Показать описание
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!

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
☑️ FastAPI
☑️ Pydantic

Рекомендации по теме
Комментарии
Автор

I love your tutorial. My question is: why you do not provide a simple frontend to send the request body. Everywhere I go no body address the FULL posting procedure and rely on docs/postman..etc; to do the posting. I want to see a FULL REAL posting operation. Can you help?

arishy
Автор

I clearly see, that 'username' and 'age' class attrs are descriptors.
Can I say the same about 'date_joined' and 'location'?

igornovichenko
Автор

Hello,
Thank's for the tutorial, I am trying to send data ( a file.txt) how can I do this using Pydantic ?

hamidfsian
welcome to shbcf.ru