Project Pomodoro
This is the API-Documentation for the final Technigo-project of Birgit Nehrwein, Darya Lapata and Rebecca Philipson.
We built an API for a combined tasklist and pomodoro-timer. We use MongoDB and mongoose to store data about the user, his/her tasks and the no. of pomodoros.
All vital endpoints demand user authorization.
GEThttps://final-project-pomodoro-api.herokuapp.com/tasks/:userId
https://final-project-pomodoro-api.herokuapp.com/tasks/620ca30582b589206c54130b
GET all tasks of a user
HEADERS
Authorization
Example Request
Get all the users' tasks
201 Created
Example Response
Server
Connection
X-Powered-By
Access-Control-Allow-Origin
Content-Type
Content-Length
Etag
Date
Via
POSThttps://final-project-pomodoro-api.herokuapp.com/tasks/
https://final-project-pomodoro-api.herokuapp.com/tasks/
POST a new task
HEADERS
Authorization
Bodyraw (json)
Example Request
Post a new task
201 Created
Example Response
Server
Connection
X-Powered-By
Access-Control-Allow-Origin
Content-Type
Content-Length
Etag
Date
Via
PATCHhttps://final-project-pomodoro-api.herokuapp.com/tasks/:taskId/complete
https://final-project-pomodoro-api.herokuapp.com/tasks/620dfb976f09250029dc73d6/complete
PATCH un/complete a task
HEADERS
Authorization
Bodyraw (json)
Example Request
Complete a task
200 OK
Example Response
Server
Connection
X-Powered-By
Access-Control-Allow-Origin
Content-Type
Content-Length
Etag
Date
Via
PATCHhttps://final-project-pomodoro-api.herokuapp.com/tasks/:taskId/update
http://localhost:8080/tasks/61fd058222e0ee221840282b/update
PATCH update task description
HEADERS
Authorization
Bodyraw (json)
Example Request
Update the task description
200 OK
Example Response
Server
Connection
X-Powered-By
Access-Control-Allow-Origin
Content-Type
Content-Length
Etag
Date
Via