Skip to content

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

3 Commits

Folders and files

Repository files navigation

AI Notes API

A beginner-friendly FastAPI project for learning backend development. Notes are stored in a local notes.json file — no database required.

Live demo: https://ai-notes-fast-api-vlz0.onrender.com/docs

Features

  • Add a note (POST /notes)
  • View all notes (GET /notes)
  • View one note (GET /notes/{id})
  • Update a note (PUT /notes/{id})
  • Delete a note (DELETE /notes/{id})

Setup

  1. Create and activate a virtual environment (recommended):

    python -m venv venv
    venv\Scripts\activate      # Windows
    source venv/bin/activate   # macOS/Linux
  2. Install dependencies:

    pip install -r requirements.txt
  3. Run the server:

    uvicorn main:app --reload
  4. Open the interactive docs in your browser:

    http://127.0.0.1:8000/docs
    

Note: the live demo runs on Render's free tier, whose disk is ephemeral — notes may be wiped on redeploy or restart.

Project structure

AI-Notes-API/
├── main.py           # FastAPI app and all routes
├── notes.json        # Stores the notes (acts as a simple database)
├── requirements.txt  # Python dependencies
└── README.md

Example request

curl -X POST http://127.0.0.1:8000/notes \
  -H "Content-Type: application/json" \
  -d '{"title": "First note", "content": "Learning FastAPI!"}'

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages