- Notifications
You must be signed in to change notification settings - Fork37
This article will teach you how to create a CRUD RESTful API with Python, FastAPI, PyMongo, MongoDB, and Docker-compose to perform the basic Create/Read/Update/Delete operations against a database.
wpcodevo/fastapi_mongodb
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
This article will teach you how to create a CRUD RESTful API with Python, FastAPI, PyMongo, MongoDB, and Docker-compose to perform the basic Create/Read/Update/Delete operations against a database.
- Python, FastAPI, MongoDB CRUD API Overview
- Setting up FastAPI with MongoDB
- Installing FastAPI
- Running the FastAPI Server
- Loading Environment Variables with Pydantic
- Connecting to the MongoDB Database Server
- Creating the Schemas with Pydantic
- Serializers for the MongoDB Documents
- Creating the API Route Controllers
- Get All Posts Controller
- Create New Post Controller
- Update Post Controller
- Get Single Post Controller
- Delete Post Controller
- Add the Routes to the FastAPI Middleware Stack
Read the entire article here:https://codevoweb.com/crud-restful-api-server-with-python-fastapi-and-mongodb
Articles in this series:
API with Python, FastAPI, and MongoDB: JWT Authentication
Build API with Python & FastAPI: SignUp User and Verify Email
About
This article will teach you how to create a CRUD RESTful API with Python, FastAPI, PyMongo, MongoDB, and Docker-compose to perform the basic Create/Read/Update/Delete operations against a database.
Topics
Resources
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Releases
Packages0
Uh oh!
There was an error while loading.Please reload this page.
