FastAPI and Pydantic - Model Classes and Nested Models

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

In this video, we'll see how we can use Pydantic models in a FastAPI app, and use these models as type-hints on our handler functions.

This allows us to validate data and to generate useful schemas in our API docs.

We'll also see how to work with nested data - by adding an Album model and a reference to a list of albums on the parent Band model.

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

▶️ Full Playlist:

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

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

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

That was very clean and incredibly helpful! Please keep this up!

NoLeftPeek
Автор

Thanks for another video of this series! I appreciate the effort put into making these

sebwylleman
Автор

Nice intro to pydantic - seems a lot more concise that the other validators I'm used to in other languages

rig-xfor
Автор

Thanks for the effort mate ! Another great one.

seydinaoumarsamabaly
Автор

Having come from a little C++ I found this exactly what I require because I understood everything you said. I'm going to follow your playlist for Pydantic, but base on this, and suggestions to reorder my pedagogical understanding?

matthewsputnick
Автор

Johnson Jose Garcia Patricia Martinez Brian

TerryKime
visit shbcf.ru