registry/docs/reference/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
..
CHANGELOG.md Introduce v0.1 version of the API (#658) 2025-10-14 11:04:48 +03:00
generic-registry-api.md Drop GET /v0/servers/{serverName} endpoint (#618) 2025-10-07 13:56:45 +03:00
official-registry-api.md Changes on the server.json format and the API (#562) 2025-09-29 23:30:35 +03:00
openapi.yaml feat: add OpenAPI tags for improved SDK generation and API organization (#655) 2025-10-14 14:30:36 +03:00