Skip to content

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.

Terminal window
re-shell api --help
SubcommandAliasPurpose
openapispecAuto-generate OpenAPI specifications from code annotations.
swaggeruiGenerate Swagger UI documentation with custom branding.
versioningversionAPI versioning patterns and backwards-compatibility management.
validationvalidateRequest/response validation middleware for all frameworks.
testAPI testing suite: contract testing, mocking, and load testing.
docsInteractive API documentation with live examples and try-it.
gatewayAPI gateway integration for supported backend frameworks.
analyticsAPI analytics and monitoring.
clientGenerate type-safe API clients from OpenAPI specifications.
Terminal window
# Generate an OpenAPI spec from annotations
re-shell api openapi generate
# Generate branded Swagger UI
re-shell api swagger
# Generate a type-safe client from a spec
re-shell api client
# Add validation middleware and gateway integration
re-shell api validation
re-shell api gateway

Tip. Nested --version flags resolve correctly — for example re-shell api openapi generate --version 0.25.1 sets the spec version rather than printing the CLI banner.

Run re-shell api <subcommand> --help for the flags of any subcommand.