View the spec in Swagger UI
When your InfraAudit server is running, open the interactive explorer in your browser:Download the raw spec
Download the OpenAPI JSON spec directly from the running server:docs/swagger.json in the backend repository (pratik-mahalle/infraudit-go).
Use with external tools
| Tool | How to use |
|---|---|
| Postman | File → Import → select swagger.json |
| Swagger Editor | Paste the contents into editor.swagger.io |
| OpenAPI Generator | openapi-generator generate -i swagger.json -g python -o ./client |
| Stoplight | Import swagger.json or swagger.yaml from the file picker |
Regenerate the spec
If you’re running a self-hosted deployment and have made changes to handler annotations, regenerate the spec: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:docs/README.md for the full annotation reference.