Skip to main content
The InfraAudit Go backend auto-generates an OpenAPI 3.0 specification from handler annotations using swaggo/swag. You can explore the spec interactively in the browser or import it into your preferred tooling.

View the spec in Swagger UI

When your InfraAudit server is running, open the interactive explorer in your browser:
For SaaS, the Swagger UI is available at the same path on the API domain.

Download the raw spec

Download the OpenAPI JSON spec directly from the running server:
The generated spec file is also committed to source control at docs/swagger.json in the backend repository (pratik-mahalle/infraudit-go).

Use with external tools

Regenerate the spec

If you’re running a self-hosted deployment and have made changes to handler annotations, regenerate the spec:
The generated files in docs/ are committed to source control and validated in CI.

Handler annotation format

Each Go handler includes swag annotations that the tool uses to generate the spec. Example:
See the backend repo’s docs/README.md for the full annotation reference.