Just learning REST with Node and MongoDB
-
Clone/Download the repository
-
Open terminal inside the downloaded repository folder
-
Run
npm i && npm i --dev
-
Install and run
mongod
andmongo
-
Run
yarn start
Then the api server will be started on localhost:3000
/tasks
get
-> Show all of the taskspost
-> Create a task
/task/:taskId
get
-> Show the task with id of thetaskId
put
-> Update the taskdelete
-> Delete the task
- Single task
{ _id: "_id, auto generated", name: "String, required", status: "String", createdOn: "Date" }
- All task
[ {"Single Task"}, {"Single Task"}, {"Single Task"} ]