FastAPI CRUD MongoDB is a clean, minimal REST API built with FastAPI and PyMongo. It exposes full Create, Read, Update, and Delete operations for two resources — Users and Tasks — backed by a local MongoDB database. Whether you’re learning FastAPI, exploring MongoDB integration, or using this as a starter template, you’ll find the codebase structured and easy to extend.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/tutosrive/fastapi-CRUD-MongoDB/llms.txt
Use this file to discover all available pages before exploring further.
Introduction
Understand the project, its architecture, and what it provides out of the box.
Quickstart
Install dependencies, connect MongoDB, and make your first API call in minutes.
API Reference
Explore every endpoint for Users and Tasks with request and response details.
Data Models
Review the Pydantic models that define Users and Tasks in this API.
What’s included
Users CRUD
List, get, create, update, and delete user records stored in MongoDB.
Tasks CRUD
Manage tasks with title, description, completion status, and creator reference.
Auto API Docs
FastAPI generates interactive Swagger UI and ReDoc documentation automatically at
/docs and /redoc.Quick look
Install MongoDB
Download and start MongoDB Community Edition. The API connects to
localhost by default.Explore the API
Open http://localhost:5000/docs for the interactive Swagger UI, or read the API Reference.