FastAPI and Pydantic - Model Classes and Nested Models

แชร์
ฝัง
  • เผยแพร่เมื่อ 11 ก.ย. 2024
  • ▶️ Playlist: • FastAPI - Complete Cou...
    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:
    ko-fi.com/bugb...
    ▶️ Full Playlist:
    • FastAPI - Complete Cou...
    𝗦𝗼𝗰𝗶𝗮𝗹 𝗠𝗲𝗱𝗶𝗮:
    📖 Blog: bugbytes.io/po...
    👾 Github: github.com/bug...
    🐦 Twitter: / bugbytesio
    📚 𝗙𝘂𝗿𝘁𝗵𝗲𝗿 𝗿𝗲𝗮𝗱𝗶𝗻𝗴 𝗮𝗻𝗱 𝗶𝗻𝗳𝗼𝗿𝗺𝗮𝘁𝗶𝗼𝗻:
    FastAPI + Pydantic: fastapi.tiango...
    #python #fastapi #webdevelopment

ความคิดเห็น • 18