A simple REST TODO API developed in Go. The TODOs are persisted on mysql database. The program can be executed on Docker or as a Go application locally.
It provides an API for manager TODO Tasks.
These are the endpoints available:
Operation | Endpoint | HTTP Verb |
---|---|---|
List all Todos | /todos | GET |
Create Todo | /todos | POST |
Get Todo | /todos/{id} | GET |
Update Todo | /todos/{id} | PUT |
Delete Todo | /todos/{id} | DELETE |
$ go mod tidy
$ go run cmd/main.go
$ docker-compose up -d
$ curl http://localhost:8000/todos