Commit a49c659
committed
feat: Add OpenAPI/Swagger documentation
- Install swaggo dependencies for Swagger/OpenAPI generation
- Add comprehensive API annotations to all endpoints
- Refactor API handlers into named functions for better documentation
- Extract ActionEntity and EvaluationResponseContext as named types
- Add Swagger UI endpoint at /swagger/index.html
- Generate OpenAPI 2.0 specification (swagger.yaml, swagger.json)
- Add Makefile targets for swagger generation
- Document all endpoints: /health, /ready, /status, /info, /authzen/decision, /metrics
- Add API metadata: title, description, contact, license, tags
OpenAPI spec available at docs/swagger/
Swagger UI accessible at http://localhost:6001/swagger/index.html
Addresses Phase 4 Task #1: OpenAPI/Swagger documentation
Co-authored-by: GitHub Copilot1 parent 39a8889 commit a49c659
File tree
16 files changed
+1556
-315
lines changed- .github/workflows
- docs/swagger
- pkg
- api
- authzen
16 files changed
+1556
-315
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
136 | 136 | | |
137 | 137 | | |
138 | 138 | | |
139 | | - | |
140 | | - | |
| 139 | + | |
| 140 | + | |
141 | 141 | | |
142 | 142 | | |
143 | 143 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
62 | 72 | | |
63 | 73 | | |
64 | 74 | | |
| 75 | + | |
65 | 76 | | |
66 | 77 | | |
67 | 78 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
| 25 | + | |
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| |||
0 commit comments