Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Django Notes

Django Notes API with JWT auth and owner-scoped notes.

Stack

  • Django, DRF, simplejwt, Google Gemini API, SQLite

What's here

  • Django project setup
  • DRF ModelViewSet for full CRUD
  • Django admin panel
  • SQLite database
  • JWT auth with simplejwt
  • Protected endpoints

Run locally

git clone https://github.com/saadfarhan023/django-notes
cd django-notes
python -m venv venv
source venv/bin/activate
pip install -r requirements.txt
python manage.py migrate
python manage.py runserver

Endpoints

  • GET /api/notes/ — list notes
  • POST /api/notes/ — create note
  • GET /api/notes/{id}/ — get note
  • PUT /api/notes/{id}/ — update note
  • DELETE /api/notes/{id}/ — delete note
  • POST /api/notes/{id}/summarize/ — summarize note content using Gemini AI

Auth

  • POST /api/token/ — get access + refresh token
  • POST /api/token/refresh/ — refresh access token

Admin

python manage.py createsuperuser

Then visit http://127.0.0.1:8000/admin

About

Django Notes API with JWT auth and owner-scoped notes

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Contributors

Languages