Simple to do list API with Gin and Gorm (with Postgres)
Clone this repository and run:
docker-compose up
You can then hit the following endpoints:
Method | Route | Body |
---|---|---|
GET | /tasks | |
POST | /tasks | {"title": "task title"} |
DELETE | /tasks/:id | |
PUT | /tasks/:id | {"title": "task title", "completed": true} |
I'm using dep
:
dep ensure
go run main.go