TODO-list REST API with CRUD operations, built with NodeJS, Restify, MongoDB and Mongoose (live API Endpoint).
- Clone the repository:
git clone https://github.com/nhsz/restify-todo-list.git
cd restify-todo-list/
npm install [yarn install]
- Set your own
MONGODB_URI
inconfig/db.js
npm start
You can try it online using Postman and the live API Endpoint.
Method | Endpoint | Usage | Returns |
---|---|---|---|
POST | /v1/todo/ | Create a new task | New task |
GET | /v1/todo/ | List all tasks | TODO-list |
GET | /v1/todo/{id} | Get a specific task | Task |
PUT | /v1/todo/{id} | Update a specific task | Task |
DELETE | /v1/todo/{id} | Destroy a specific task | Task |