Agenda Service
Build from source
To build the application, run the following command:
go build -o agenda-service cmd/main.go
OpenAPI documentation
We used oapi-codegen to generate all http.HandlerFunc
from the openapi.yaml file:
oapi-codegen -generate chi-server -package main docs/openapi.yaml > api/api.go
Execute the application:
./agenda-service
Open your browser and access the following URL:
http://localhost:8080/openapi/
Test
To execute all tests, run the following command:
go test ./... -v
To see the code coverage while running tests, execute the following command:
go test ./... -coverpkg=./... -coverprofile ./coverage.out
Create Container