Create an API in 20 MINUTES with FastAPI (2024 tutorial)

preview_player
Показать описание
Sign up for FREE with Oso today, and never have to worry about authorisation again!

FastAPI allows you to create comprehensive APIs in Python in no time at all. In fact, it took just 20 minutes to create the fully fledged API in this video! I guess the name's probably accurate then.

00:00 - Intro
02:04 - Installing FastAPI
03:29 - Creating our baseline app
05:59 - Modelling our fact structure
06:42 - Setting up the database
10:32 - Creating facts with POST requests
14:25 - Fetching facts with GET requests
17:19 - Deleting facts with DELETE requests
20:54 - Outro



If you enjoy my content, consider supporting me on Patreon or becoming a member!

Follow me elsewhere for even more Carberra!

I get a lot of people asking, so here's my setup!



If you have any questions, don't hesitate to ask in the comments! I'll try and answer as soon as I can, providing someone else hasn't already done so.

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

man authorization is one of the most painful parts bc it's so easy to get it wrong and the risks are so high lol

would love to see a quick demo of adding it as part of fastapi

_gwyneth
Автор

Shame that you don’t show SQLmodels usage, this package made by Fastapi dev, and eliminates duplication of validation&db schemas for models

oleksandr_korol
visit shbcf.ru