Skip to content

yongliu1992/todo

Repository files navigation

todo-list-service

Build Status codecov Go Report Card Open Source Helpers Join the chat at https://gitter.im/go_do/community Go Report Card TODOs

Todo List Service is a GO API service which serves Todo data.

Requests

  • Add a Todo task
curl -X POST -H "Content-Type: application/json" -d '{                                                                                           
  "task": "Fix bug 130320",
  "endDate": "2020-03-20",
  "labels": "Dev",
  "comm": "In progress"
  "uid":1,
}' http://127.0.0.1:8080/api/v1/todo/
  • Update a Todo task
curl -X PUT -H "Content-Type: application/json" -d ~~'{~~
  "task": "Fix bug 130320",
  "endDate": "2020-03-20",
  "labels": "QA",
  "comments": "Verification"
}' http://127.0.0.1:8080/todo/{TID}
  • Read all Todo tasks
curl -X GET -H "Content-Type: application/json"     http://127.0.0.1:8080/todo/
  • Read a specific Todo task
curl -X GET -H "Content-Type: application/json"     http://127.0.0.1:8080/todo/{TID}
  • Delete a specific Todo task
curl -X DELETE -H "Content-Type: application/json"  http://127.0.0.1:8080/todo/{TID}

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published