api
The api group provides API development tooling that works across all supported
backend frameworks: spec generation, documentation, versioning, validation,
testing, gateways, analytics, and type-safe client generation.
re-shell api --help| Subcommand | Alias | Purpose |
|---|---|---|
openapi | spec | Auto-generate OpenAPI specifications from code annotations. |
swagger | ui | Generate Swagger UI documentation with custom branding. |
versioning | version | API versioning patterns and backwards-compatibility management. |
validation | validate | Request/response validation middleware for all frameworks. |
test | API testing suite: contract testing, mocking, and load testing. | |
docs | Interactive API documentation with live examples and try-it. | |
gateway | API gateway integration for supported backend frameworks. | |
analytics | API analytics and monitoring. | |
client | Generate type-safe API clients from OpenAPI specifications. |
Examples
Section titled “Examples”# Generate an OpenAPI spec from annotationsre-shell api openapi generate
# Generate branded Swagger UIre-shell api swagger
# Generate a type-safe client from a specre-shell api client
# Add validation middleware and gateway integrationre-shell api validationre-shell api gatewayTip. Nested
--versionflags resolve correctly — for examplere-shell api openapi generate --version 0.25.1sets the spec version rather than printing the CLI banner.
Run re-shell api <subcommand> --help for the flags of any subcommand.
See also
Section titled “See also”- generate — scaffold the backend the API describes.
- service & bridge — typed cross-language clients.