Second checkpoint
This commit is contained in:
14
README.md
14
README.md
@@ -25,7 +25,7 @@ migrations/ embedded goose SQL migrations
|
||||
configs/ .env.example
|
||||
deployments/ docker-compose (postgres, minio, rabbitmq)
|
||||
build/package/ Dockerfile
|
||||
docs/ generated OpenAPI/Swagger spec (swaggo/swag)
|
||||
api/openapi.yaml OpenAPI 3.1.1 spec (embedded + served at /openapi.yaml)
|
||||
```
|
||||
|
||||
## Domain
|
||||
@@ -105,14 +105,10 @@ Health: `GET /healthz` (liveness), `GET /readyz` (DB + S3 + RabbitMQ).
|
||||
|
||||
### HTTP API
|
||||
|
||||
The API is documented with [swaggo/swag](https://github.com/swaggo/swag)
|
||||
annotations on the handlers. The generated spec lives in `docs/` and is served
|
||||
as interactive **Swagger UI** at `/swagger/index.html` while the server runs.
|
||||
Regenerate after changing annotations:
|
||||
|
||||
```sh
|
||||
make docs # go tool swag init -g cmd/gis/main.go --parseInternal --output docs
|
||||
```
|
||||
The API is described by an **OpenAPI 3.1.1** spec at
|
||||
[`api/openapi.yaml`](api/openapi.yaml), embedded into the binary. While the
|
||||
server runs it is served at `/openapi.yaml`, with an interactive **Redoc** UI at
|
||||
`/docs`.
|
||||
|
||||
| Method | Path | Description |
|
||||
|--------|----------------------------|--------------------------------------|
|
||||
|
||||
Reference in New Issue
Block a user