Talk Python To Me cover image

#284: Modern and fast APIs with FastAPI

Talk Python To Me

How to Extract JSON Data From a Request Object?

2min Snip

00:00
Play full episode
Fastapia predated the concept of type innitations y actually, like a lot of the things in fastapia were learnt from flask. And those whore my fairy tools like apuntil i built facipia to be able to have like that functionality that they provided. That is the same for all your functions. In faste pi, you can actually get the request and get the data by yourself,. if you want usalso is actually also available. But the main point of diraction was not getting a request object, but declaring the parimeters in the function. Those barometers will be extracted, validated and everything from the request and also documented.

Get the Snipd
podcast app

Unlock the knowledge in podcasts with the podcast player of the future.
App store bannerPlay store banner

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode

Save any
moment

Hear something you like? Tap your headphones to save it with AI-generated key takeaways

Share
& Export

Send highlights to Twitter, WhatsApp or export them to Notion, Readwise & more

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode