Fast API Tutorial, Part 5: Query Parameters and String Validation

preview_player
Показать описание
When passing data to the server via query parameters, data can very easily be passed in incorrectly.

In this video we discuss using some very cool functionality we get for validating strings by importing the Query class from FastAPI.

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

I truly appreciate that you leave in the challenges you encounter while filming tutorials. It not only makes your content more authentic, but it also helps me anticipate and learn from potential errors that might happen to me. Much love! <3

mohammedimohamed
Автор

Really enjoy the structure you put forward for this tutorial! keep it up, I trust you have inspired many people, including me.

philipwong
Автор

How do you change the FastAPI version on PyCharm to use max_lenght within the Query function? I read that 0.95 is necessary for that and I have 0.94.

GustavoKotelchuk
Автор

I don't get the constraints showing up the swagger UI even though the validation works ?!

clearthinking
Автор

Hi Jeffrey Pohlmeyer, Thanks for making these useful videos. I have a question that what is the use of "hidden query parameter" as we can do the same thing with "Optional query parameter" (example shown in the tutorial).

DeepakSaini-ppcd
Автор

Mate great videos but would be great if you could adjust the resolution otherwise is worth remove it do just a podcast, you cannot see anything

trozzonick
Автор

(1:58) for me, typing foobar in q Description returns: 200
Response body
[
{
"item_name": "Foo"
},
{
"item_name": "Bar"
},
{
"item_name": "Baz"
}
]

ram_qr
Автор

Please debug the codes before recording... And u not even explain the purpose of include_in_schema=False. Overrated tutorial.

coladock
join shbcf.ru