This repository contains the API endpoints for managing notes.
Python 3.x
Django
Django REST Framework
Installation\
git clone <repository_url>
python -m venv venv
.\venv\Script\active.ps1
or for Mac
souce venv/bin/activate
pip install -r requirements.txt
python manage.py migrate
Start the Django development server:
python manage.py runserver
Access the API endpoints using a REST client like Postman or cURL.
GET /notes/{note_id}/
: Retrieves a single note object that has id=note_id.
PUT /notes/{note_id}/
: Updates a single note object that has id=note_id.
GET /notes/?title=example
: Retrieves a list of all notes. Optionally, accepts query parameters for filtering notes by title.
POST /notes/
: Creates a new note.
title
: required for POST
/optional for PUT
body
: required for POST
/optional for PUT