Fancy Todo App is a database for todos
POST /todos
GET /todos
GET /todos/:id
PUT /todos/:id
PATCH /todos/:id
DELETE /todos/:id
Write a new Todo data to database
http://localhost:3000/todos/
POST
access token
: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwiZW1haWwiOiJhcmlmbXJAZ21haWwuY29tIiwiaWF0IjoxNjA2Mjg2MTYxfQ.B3k9TGGwy-y12hE1C9pYnobktmS3KiBl0DPPNit6ZEc
{ "id": 14, "title": "tesasd", "description": "testing validate", "status": "Not Done Yet", "due_date": "2020-11-29", "UserId": 1, "updatedAt": "2020-11-28T10:52:18.439Z", "createdAt": "2020-11-28T10:52:18.439Z", "status": "Not Done Yet" } ** Get Todo **
Write a new Todo data to database
http://localhost:3000/todos/
Get
access token
: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwiZW1haWwiOiJhcmlmbXJAZ21haWwuY29tIiwiaWF0IjoxNjA2Mjg2MTYxfQ.B3k9TGGwy-y12hE1C9pYnobktmS3KiBl0DPPNit6ZEc
[ { "id": 1, "title": "Makan", "description": "Makan Indomie", "status": "Not Done Yet", "due_date": "2020-11-24", "UserId": 1, "createdAt": "2020-11-23T11:01:44.574Z", "updatedAt": "2020-11-23T11:01:44.574Z" }, { "id": 5, "title": "Mandi", "description": "mandi biar wangi", "status": "Not Done Yet", "due_date": "2020-11-27", "UserId": 1, "createdAt": "2020-11-25T20:37:33.731Z", "updatedAt": "2020-11-25T20:37:33.731Z" }, { "id": 14, "title": "tesasd", "description": "testing validate", "status": "Not Done Yet", "due_date": "2020-11-29", "UserId": 1, "createdAt": "2020-11-28T10:52:18.439Z", "updatedAt": "2020-11-28T10:52:18.439Z" } ]
Write a new Todo data to database
http://localhost:3000/todos/:id
Get
access token
: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwiZW1haWwiOiJhcmlmbXJAZ21haWwuY29tIiwiaWF0IjoxNjA2Mjg2MTYxfQ.B3k9TGGwy-y12hE1C9pYnobktmS3KiBl0DPPNit6ZEc
{ "id": 1, "title": "Makan", "description": "Makan Indomie", "status": "belum", "due_date": "2020-11-24", "UserId": 1, "createdAt": "2020-11-23T11:01:44.574Z", "updatedAt": "2020-11-23T11:01:44.574Z" }
Write a new Todo data to database
http://localhost:3000/todos/:id
Put
access token
: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwiZW1haWwiOiJhcmlmbXJAZ21haWwuY29tIiwiaWF0IjoxNjA2Mjg2MTYxfQ.B3k9TGGwy-y12hE1C9pYnobktmS3KiBl0DPPNit6ZEc
[ { "id": 1, "title": "abisput", "description": "abisput", "status": "Not Done Yet", "due_date": "2020-11-28", "UserId": 1, "createdAt": "2020-11-23T11:01:44.574Z", "updatedAt": "2020-11-28T10:55:59.787Z" } ]
Write a new Todo data to database
http://localhost:3000/todos/:id
Delete
access token
: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwiZW1haWwiOiJhcmlmbXJAZ21haWwuY29tIiwiaWF0IjoxNjA2Mjg2MTYxfQ.B3k9TGGwy-y12hE1C9pYnobktmS3KiBl0DPPNit6ZEc
{ "message": "todo success to delete" }