Build A REST API With FastAPI, Beanie and MongoDB
Ssali Jonathan Ssali Jonathan
9.94K subscribers
5,249 views
160

 Published On Jul 26, 2022

This video demonstrates how we can put together a REST API With FastAPI, Beanie, and MongoDB. Based on common Python type-hints, FastAPI is a cutting-edge, quick (high-performance), web framework for creating APIs using Python.

Based on Motor and Pydantic, Beanie is an asynchronous Python object-document mapper (ODM) for MongoDB.

We use the combination of these tools to build a simple CRUD API.
#python #mongodb #fastapi

SOURCE CODE:
https://github.com/jod35/Build-A-REST...

PLEASE BUY E A COFFEE
https://www.buymeacoffee.com/jod35

TIMESTAMP:
0:00 Introduction
5:08 Project set up
9:40 Creating a FastAPI server
13:40 Creating the API endpoints in a router
18:34 Including the router into the main application
19:32 Creating a Document model class
25:25 Connecting to MongoDB with FastAPI
31:30 Retrieving all resources
37:44 Creating resources
41:40 Retrieving a single task
45:52 Updating a resource
54:02 Deleting a resource
56:02 Setting response status codes
58:37 API Documentation with Swagger UI
59:29 Wrapping Up

show more

Share/Embed