API for streakapp
Streakapp is a useful tool for keeping track of your daily tasks and habits ensuring you stay motivated to achieve your goals.
- Clone the repo
git clone https://github.com/esmond-adjei/streaker.git
- create a virtual environment
- Install dependencies in a virtual environment
pip install -r requirements.txt
- change directory into the project
- Run the app
python manage.py runserver
Endpoint |
Method |
Description |
Status |
/api/task/ |
GET |
Get all tasks |
✔️ |
/api/task/{id} |
GET |
Get a task by id |
✔️ |
/api/task/{id} |
PUT |
Update a task by id |
✔️ |
/api/task/{id} |
DELETE |
Delete a task by id |
✔️ |
Endpoint |
Method |
Description |
Status |
/api/streak/ |
GET |
Get all streaks |
✔️ |
/api/streak/{id} |
GET |
Get a streak by id |
✔️ |
/api/streak/{id} |
PUT |
Update a streak by id |
✔️ |
/api/streak/{id} |
DELETE |
Delete a streak by id |
✔️ |
Endpoint |
Method |
Description |
Status |
/api/user/register |
POST |
Register a new user |
❌ |
/api/user/login |
POST |
Login a user |
❌ |
/api/user/logout |
POST |
Logout a user |
❌ |
/api/user/ |
GET |
Get all users |
❌ |
/api/user/{id} |
GET |
Get a user by id |
❌ |
/api/user/{id} |
PUT |
Update a user by id |
❌ |
/api/user/{id} |
DELETE |
Delete a user by id |
❌ |