FastAPI - Request Body and POST requests | Pydantic pre-validators

preview_player
Показать описание

In this video, we'll see how to define POST requests and accept a request body sent from API clients. We'll learn how to use Pydantic to determine the structure of the data expected in our POST endpoints

☕️ 𝗕𝘂𝘆 𝗺𝗲 𝗮 𝗰𝗼𝗳𝗳𝗲𝗲:
To support the channel and encourage new videos, please consider buying me a coffee here:

📌 𝗖𝗵𝗮𝗽𝘁𝗲𝗿𝘀:
00:00 Intro
00:25 Request body in FastAPI
15:17 Transforming data in Pydantic pre-validator

▶️ Full Playlist:

𝗦𝗼𝗰𝗶𝗮𝗹 𝗠𝗲𝗱𝗶𝗮:

📚 𝗙𝘂𝗿𝘁𝗵𝗲𝗿 𝗿𝗲𝗮𝗱𝗶𝗻𝗴 𝗮𝗻𝗱 𝗶𝗻𝗳𝗼𝗿𝗺𝗮𝘁𝗶𝗼𝗻:

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

You are an excellent teacher and have an equally great taste in music. Love the Aphex Twin and Boards of Canada references. Cheers!

LucidProgramming
Автор

Thank you man for giving us our dose of week-end ! All clear.

seydinaoumarsamabaly
Автор

Very clear and concise at a pace that that is welcomed. Looking forward to when you get to PostgreSQL integration with particular interest in working with Enums with PostgreSQL as well as relationships and link tables. Thank you for taking the time to make this series, I am really enjoying your content.

photiosloupis
Автор

Great as always. Thanks very much for your time.

AmoahDevLabs
Автор

did you edit your video after recording? or just one shot and upload?

深夜酒吧
Автор

Is it safe to call model_dump directly on what we receive from the request with no validation?

farzadmf
Автор

isn't validator deprecated in Pydantic v2?

victorajayi