RESTful api supporting creation and management of TODO Lists.
-
Get ALL Todo Lists -GET http://localhost:8080/api/todolists
-
Create NEW Todo List -POST http://localhost:8080/api/todolists {title:'My New Todo List'}
-
Get Specific Todo List -GET http://localhost:8080/api/todolists/:todoList_id, i.e. > http://localhost:8080/api/todolists/5867ba74660bc4250bb20026
-
Delete Todo List -DELETE http://localhost:8080/api/todolists/:todoList_id, e.g. > http://localhost:8080/api/todolists/5867ba89660bc4250bb20027
-
Add Todo to TodoList -PUT http://localhost:8080/api/todolists/:todoList_id/add {description : 'number 1 todo task'}
-
Togggle isCompleted status for a given Todo
-
Remove specific Todo from a given Todo List
To deploy
- navigate to db folder where we store mongo data
- start up mongo db using 'startmongo' (mongod --dbpath ./)
- do 'npm start'
Notes i. Be sure to perform POST/PUT with x-www-form-urlencoded.