FastAPI User Management CRUD API is a high-performance, Python-based RESTful API built with FastAPI, offering full Create, Read, Update, Delete (CRUD) operations for managing users. It uses an in-memory database (Python dictionary) for lightweight and quick prototyping.
- ✅ Create a new user
- 🔍 Get all users
- 🔎 Get a specific user by ID
- ✏️ Update user details
- ❌ Delete a user by ID
- ⚡ FastAPI Swagger UI for interactive documentation at
/docs
- 📊 SQLite integration using SQLAlchemy ORM
- 🗂️ Modular project structure (models, database, main)
- Python 3
- FastAPI
- pydantic
- Uvicorn
Method | Endpoint | Description |
---|---|---|
GET | / |
Welcome message |
POST | /users/ |
Create a new user |
GET | /users/ |
Get all users |
GET | /users/{id} |
Get user by ID |
PUT | /users/{id} |
Update user by ID |
DELETE | /users/{id} |
Delete user by ID |
git clone https://github.com/Tirthraj1605/FastAPI-User-Management-CRUD-API.git
cd FastAPI-User-Management-CRUD-API
python -m venv venv
venv\Scripts\activate
source venv/bin/activate
pip install -r requirements.txt
uvicorn main:app --reload
- Tirthraj Bhalodiya
- tirthrajbhalodiya2003@gmail.com