This is the API server for my project, To Do List application. Here you can find the different routes and controllers for the different functionalities of the application.
Reminder: This application is now hosted via Heroku.
Download the necessary packages
npm install
Run the API server
nodemon index
After downloading all the packages and initiating the hot reload for the server. You can now test the public routes using Postman. Some of the routes below will require either an Authentication Token or toDoId params in the URL. Sample params is provided but for the token, it is highly recommended that you use Postman.
Required: "email"
https://jp-to-do-list-app.herokuapp.com/api/users/email-exists
Required: "givenName"
, "familyName"
, "email"
, "password"
https://jp-to-do-list-app.herokuapp.com/api/users/register
Required: "email"
, "password"
https://jp-to-do-list-app.herokuapp.com/api/users/log-in
https://jp-to-do-list-app.herokuapp.com/api/users/details
Required: "givenName"
, "familyName"
https://jp-to-do-list-app.herokuapp.com/api/users/edit/names
Required: "givenName"
https://jp-to-do-list-app.herokuapp.com/api/users/edit/given-name
Required: "familyName"
https://jp-to-do-list-app.herokuapp.com/api/users/edit/fam-name
Required: "name"
, "description"
, "toDoDate"
https://jp-to-do-list-app.herokuapp.com/api/users/add-to-do
Required: "name"
, "description"
, "toDoDate"
Params: toDoID = 60d301995530ce667097e98e
https://jp-to-do-list-app.herokuapp.com/api/users/edit/to-do/:toDoId
Required: "name"
Params: toDoID = 60d301995530ce667097e98e
https://jp-to-do-list-app.herokuapp.com/api/users/edit/to-do-name/:toDoId
Required: "description"
Params: toDoID = 60d301995530ce667097e98e
https://jp-to-do-list-app.herokuapp.com/api/users/edit/to-do-desc/:toDoId
Required: "toDoDate"
Params: toDoID = 60d301995530ce667097e98e
https://jp-to-do-list-app.herokuapp.com/api/users/edit/to-do-date/:toDoId
To Do's have a default status of "pending"
and if the user wants to change it to "done"
, call this API.
Params: toDoID = 60d301995530ce667097e98e
https://jp-to-do-list-app.herokuapp.com/api/users/edit/to-do-status/:toDoId
Warning: This will permanently delete a to do from the user's list.
https://jp-to-do-list-app.herokuapp.com/api/users/delete-to-do/:toDoId
* Authentication Token required.