registry/internal/api
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Aleksandr Beshkenadze cce5e5df46
feat: add OpenAPI tags for improved SDK generation and API organization (#655)
## Summary
Adds OpenAPI tags to improve SDK generation and API documentation
organization, as discussed in #644.

## Changes
- **Go Code**: Define tag metadata (name + description) in
`internal/api/router/router.go` using Huma's `api.OpenAPI().Tags`
- **Reference Spec**: Update `docs/reference/api/openapi.yaml` to match
the generated spec
- **Tags Added**: servers, publish, auth, admin, health, ping

## Benefits
- ✅ Improved SDK generation with proper service grouping (e.g.,
`serversService`, `publishService`)
- ✅ Better API documentation organization in Scalar UI, Swagger UI, and
other tools
- ✅ Code-first approach ensures reference spec stays in sync via
compliance tests

## Testing
- ✅ Compliance test passes: `go test -v ./internal/api -run
TestOpenAPIEndpointCompliance`
- ✅ All 4 reference endpoints verified as implemented
- ✅ TypeScript SDK regenerated successfully with proper tag-based
grouping

## Related
Closes #644
2025-10-14 14:30:36 +03:00
..
handlers/v0 Introduce v0.1 version of the API (#658) 2025-10-14 11:04:48 +03:00
router feat: add OpenAPI tags for improved SDK generation and API organization (#655) 2025-10-14 14:30:36 +03:00
openapi_compliance_test.go Ensure registry API implements the reference openapi schema (#568) 2025-09-29 13:53:54 -07:00
server.go Apply gofmt formatting to all Go files (#588) 2025-09-30 17:32:22 +03:00
server_test.go fix: add HTTP middleware to redirect trailing slash URLs to canonical form (#420) 2025-09-10 13:14:59 -07:00