Skip to content

Latest commit

 

History

History
33 lines (29 loc) · 563 Bytes

README.md

File metadata and controls

33 lines (29 loc) · 563 Bytes

Run app

docker compose -f docker-compose.yaml up 

Test API

  • GET
curl -X GET http://localhost:3000/tasks
  • POST
curl -X POST http://localhost:3000/tasks \
-H "Content-Type: application/json" \
-d '{"task": "Deploy App", "status": "1"}'
  • GET Item
curl -X GET http://localhost:3000/tasks/1
  • PUT
curl -X PUT http://localhost:3000/tasks/1
-H "Content-Type: application/json" \
-d '{"task": "Deploy App Update", "status": "0"}'
  • DELETE
curl -X DELETE http://localhost:3000/tasks/3