Tasks API (REST) developed on node.js, express, typeorm and sqlite.
Sqlite3 must be in the system path
git clone https://github.com/tatusis/tasks-api-example-app.git
cd tasks-api-example-app
npm install
npm run build
npm start
GET http://localhost:3000/tasks
- Request example
POST http://localhost:3000/tasks
- Request body example
{
"name": "task name",
"description": "task description",
"isDone": false
}
- Request example
GET http://localhost:3000/tasks/1
- Request example
PUT http://localhost:3000/tasks/1
- Request body example
{
"isDone": true
}
- Request example
DELETE http://localhost:3000/tasks/1