- Windows 10
- Docker version 20.10.14, build a224086
- Docker Compose version v2.4.1
-
Download the repository
git clone https://github.com/alexjercan/go-todo-server.git cd go-todo-server
-
Run docker compose
docker-compose up
GET /api/items/
- Get all items in the database.
- Input: none
- Output:
[{"ID":number,"Description":string,"Done":boolean},...]
POST /api/items/
- Create a new item.
- Input:
{"Description":string}
- Output:
{"ID":number,"Description":string,"Done":boolean}
PUT /api/items/
- Update an item.
- Input:
{"ID":number,"Description":string,"Done":boolean}
- Output:
{"ID":number,"Description":string,"Done":boolean}
DELETE /api/items/
- Delete an item.
- Input:
{"ID":number}
- Output:
{"ID":number,"Description":string,"Done":boolean}