How To Create a Python API With FastAPI - Full Tutorial

Опубликовано: 23 Май 2024
на канале: Tech With Tim
46,574
1.6k

Host your API with Hostinger by going to: https://hostinger.com/TechwithTim and using my code TECHWITHTIM

In today's video I'm going to be showing you guys how you can create your own API using Python for web applications. API (application programming interface) essentially allows one piece of software to request data from another and receive a response.

If you want to land a developer job: https://techwithtim.net/dev

🎞 Video Resources 🎞
How to host this FastAPI: https://fastapi.tiangolo.com/vi/deplo...
Finished Code: https://github.com/techwithtim/Fast-A...
Fix Pip (MacOS):    • How to Install Pygame on Mac OSX (Fas...  
Fix Pip (Windows):    • How to Install Pygame (Windows 8/10)  

⏳ Timestamps ⏳
00:00 | What is an API?
00:40 | CRUD
01:19 | Request/Response
01:38 | JSON
04:15 | FastAPI Overview
04:44 | Install/Setup
05:35 | Running FastAPI
09:00 | Pydantic Models
12:02 | Post Request
13:39 | Get Requests
15:57 | Path Parameters
17:45 | Put Requests
20:30 | Delete Requests
22:10 | Testing the API
23:41 | Small Fix To Delete Request

Hashtags
#api #pythonprogramming #techwithtim