TODO-list REST API with CRUD operations, built with NodeJS, ExpressJS, and Lowdb as database. Tested with Mocha, Chai and SuperTest.
- Clone the repository:
git clone https://github.com/nhsz/restify-todo-list.git
cd lowdb-todo-list/
npm install [yarn install]
npm start
npm test
Method | Endpoint | Usage | Returns |
---|---|---|---|
POST | /tasks/ | Create a new task | New task |
GET | /tasks/ | List all tasks | TODO-list |
GET | /tasks/{id} | Get a specific task | Task |
PUT | /tasks/{id} | Update a specific task | Task |
DELETE | /tasks/{id} | Destroy a specific task | Task |