Just a simple Javascript back-end service that let you build a 'task manager' CRUD applications run on MongoDB easier with Read and Write API. It maintains your task with authentication so every single user has privacy on their tasks.
https://resqiar-task-manager-api.herokuapp.com/
1. Clone this repository anywhere on your machine git clone https://github.com/resqiar/Task-Manager-API.git
rename 'sample-dev.env' to 'dev.env' and simply enter the value of your MongoDB connection URL, and provide JWT token.
Routes has two relationship collections that provide User routes and Task routes. Remember to include user's token in request header, otherwise it would be unauthorized request. required authorization route marked as (*)
POST /user
GET /user/my
PATCH /user/my
DELETE /user/my
POST /user/login
POST /user/logout
POST /user/logoutAll
POST /user/my/avatar
GET /user/{ID}/avatar
POST /task
Delete /tasks
Additional parameters to filter tasks
- sortBy=
- limits=
- skip=
if none of these parameters were added, API will return all user's tasks
PATCH /task/{task id}
Delete /task/{task id}