TO-DO_js is a simple to-do task app built with NodeJS.
API Key should be passed in header 'To-Do-Key' with every request
returns the tasks left to complete .
query sample
endpoint:- 'hostname:3000/api/getToDoList'
Add a task to the list
endpoint:- 'hostname:3000/api/addTask'
json raw request:-
{
"task" : "taskToBeAdded"
}
Removes a task from the list
endpoint:- 'hostname:3000/api/taskCompleted'
json raw request:-
{
"taskCompleted" : "taskToBeRemoved"
}
Query returns the individual list of api calls made
endpoint:- 'hostname:3000/api/getAPIcallCount'
On terminal type
node app.js
to get the server running
run
node client.js --help
for a simple api test client