Hey guys, In this I walk you through how to build a REST API with FastAPI and SQLModel. SQLModel is a library for interacting with SQL databases from Python code, with Python objects. It is designed to be intuitive, easy to use, highly compatible, and robust.
SQLModel is built to act as a combination of features in SQLAlchemy and Pydantic. This allows us to create one schema that can allow us to create the database table as well as validate our data.
UPDATED VIDEO:
• Building a REST API with FastAPI, Asy...
Timestamps:
0:00 Introduction
3:59 Setting Up
6:30 Create the CRUD endpoints
9:03 Install and run project with uvicorn
10:25 Create an SQLModel Model
14:52 Database setup
19:40 Creating the database
23:54 Get all items
29:56 Get one item
35:10 Create an item
39:28 Update a book
44:24 Delete a book
49:10 Wrapping Up
Please Like and Subscribe.
SOURCE CODE:
https://github.com/jod35/FastAPI-SQLM...
Twitter:
/ jod35_
Github:
https://github.com/jod35