A RESTful Notes API built with FastAPI, PostgreSQL, SQLAlchemy, and Alembic.
- Create notes
- Read notes
- Update notes
- Delete notes
- PostgreSQL integration
- Alembic migrations
- Pydantic validation
- FastAPI
- SQLAlchemy
- PostgreSQL
- Alembic
- Pydantic
git clone https://github.com/ankush-kash/notes-api-fastapi.git
python -m venv venv
venv\Scripts\activate
Install dependencies:
pip install -r requirements.txt
Run migrations:
alembic upgrade head
Start server:
uvicorn app.main:app --reload
API Endpoints :-
Method Endpoint Description
GET /notes Get all notes
POST /notes Create note
PUT /notes/{id} Update note
DELETE /notes/{id} Delete note