Update cheatsheets

This commit is contained in:
ivuorinen
2024-02-21 11:19:49 +00:00
parent 4e88a1b42f
commit 3d653cc7e6
4803 changed files with 127002 additions and 0 deletions

25
swagger-codegen Normal file
View File

@@ -0,0 +1,25 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# 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 for a specific command:
`swagger-codegen {{generate|config-help|meta|langs|version}} --help`