Skip to content
All repositories

github.com/Bloop31/fastapi-notes-api

FastAPI Notes API

A simple and efficient REST API built using FastAPI to manage notes with full CRUD functionality and database integration.

README

A simple and efficient REST API built using FastAPI to manage notes with full CRUD functionality and database integration.


🚀 Features

  • Create, read, update, and delete notes
  • FastAPI-based high-performance backend
  • SQLite database integration
  • Input validation using Pydantic
  • Clean and modular project structure

⚙️ Tech Stack

  • Backend: FastAPI
  • Language: Python
  • Database: SQLite
  • ORM: SQLAlchemy
  • Validation: Pydantic
  • Server: Uvicorn

📊 Usage in Data Science

  • Serves as a backend API for managing and storing datasets or experiment results
  • Useful for building data pipelines where models interact with databases
  • Can be extended to log model predictions, metrics, and analytics
  • Acts as a foundation for deploying machine learning models as APIs

📁 Project Structure

fastapi-notes-api/
│── main.py
│── models.py
│── schemas.py
│── crud.py
│── database.py
│── requirements.txt
│── .gitignore

▶️ Installation & Setup

  1. Clone the repository:
git clone https://github.com/YOUR_USERNAME/fastapi-notes-api.git
cd fastapi-notes-api
  1. Install dependencies:
pip install -r requirements.txt
  1. Run the server:
uvicorn main:app --reload
  1. Open in browser:
http://127.0.0.1:8000/docs

🔌 API Endpoints (Example)

  • GET /notes → Get all notes
  • POST /notes → Create a new note
  • PUT /notes/{id} → Update a note
  • DELETE /notes/{id} → Delete a note

🎯 Future Improvements

  • Add authentication (JWT)
  • Deploy on cloud (Render / AWS / Docker)
  • Integrate with ML models
  • Add pagination and filtering

👨‍💻 Author

Prajjit Basu