Talk Python To Me cover image

#284: Modern and fast APIs with FastAPI

Talk Python To Me

00:00

Is It a Good Idea to Define a Class?

The code inside of the function that will handle that request is going to be executed only after the data is validated. So if some one sendsy, i think that's miracle, because it saves, like, caronal, 20 50 lines of cold inside of each one of those functions. That cassa. The name benefit rianswer when that fails validation, what happens? Does the client get a 400 bad request with some kind of message about how it failed? Y exactly. But you have to be very careful and specific. And just if that could just go away like this, and somethone else handles it, it's beautiful, ye.

Transcript
Play full episode

The AI-powered Podcast Player

Save insights by tapping your headphones, chat with episodes, discover the best highlights - and more!
App store bannerPlay store banner
Get the app