Skip to content

ngocHung2000/nodejs-api-demo

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published