swagger-codegen@2

Generate API clients, server stubs, and documentation from OpenAPI specs

brewmacoslinux
Try with needOr install directly
Source

About

Generate clients, server stubs, and docs from an OpenAPI spec

Commands

swagger-codegen

Examples

Generate a Python client from an OpenAPI specification$ swagger-codegen generate -i openapi.yaml -l python -o ./python-client
Generate a Java server stub from a Swagger/OpenAPI file$ swagger-codegen generate -i api.json -l spring -o ./java-server
Generate TypeScript client code with custom configuration$ swagger-codegen generate -i spec.yaml -l typescript-axios -o ./ts-client -c config.json