System Grab Bag

View all TLDR pages from common (or from all pages)

swagger-codegen

Generate code and documentation for your REST api from a OpenAPI/swagger definition. More information: https://github.com/swagger-api/swagger-codegen.
  • Generate documentation and code from an OpenAPI/swagger file:
    swagger-codegen generate -i {{swagger_file}} -l {{language}}
  • Generate Java code using the library retrofit2 and the option useRxJava2:
    swagger-codegen generate -i {{http://petstore.swagger.io/v2/swagger.json}} -l {{java}} --library {{retrofit2}} -D{{useRxJava2}}={{true}}
  • List available languages:
    swagger-codegen langs
  • Display help options for the generate command:
    swagger-codegen help {{generate}}

License and Disclaimer

The content on this page is copyright © 2014—present the tldr-pages team and contributors.
This page is used with permission under Creative Commons Attribution 4.0 International License.

While we do attempt to make sure content is accurate, there isn't a warranty of any kind.