All generated files (Go code, Swagger spec, documentation) are already stored in this repository.
Serve API documentation with nginx
:
make serve
-
Edit
.proto
files. Do not edit Swagger,.pb.go
,.pb.gw.go
. You can usemake clean
to remove all generated files. -
Install required tools (once):
make init
- Generate files:
make gen
alertmanager/openapi.yaml
is copied from https://github.com/prometheus/alertmanager/blob/master/api/v2/openapi.yaml.
Then Swagger client is generated using make gen-alertmanager
.