Task manager example in Go
Go 1.11 Docker & Docker Compose to run it as a container
docker build -t taskm . && docker run taskm
docker-compose up
go build -o app cmd/main.go && ./app
* Add Task:
curl -d '{"Title":"t1"}' -H "Content-Type: application/json" -X POST http://localhost:8099/api/v1/tm/tasks/
- Get all Task:
curl -X GET http://localhost:8099/api/v1/tm/tasks
- Get one Task:
curl -X GET http://localhost:8099/api/v1/tm/tasks/{title}
- Remove Task:
curl -X DELETE http://localhost:8099/api/v1/tm/tasks/{title}
- Update Task:
curl -d '{"Title":"t2"}' -H "Content-Type: application/json" -X PUT http://localhost:8099/api/v1/tm/tasks/{title}