mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-29 23:24:55 +02:00

* common/s*: add and update Korean translation * scamper: fix typo * Update pages.ko/common/simplehttpserver.md Co-authored-by: Chooooo <contact@choo.ooo> * Update pages.ko/common/steamcmd.md Co-authored-by: Chooooo <contact@choo.ooo> --------- Co-authored-by: Sebastiaan Speck <shem.speck@gmail.com> Co-authored-by: Chooooo <contact@choo.ooo>
20 lines
699 B
Markdown
20 lines
699 B
Markdown
# swagger-codegen
|
|
|
|
> OpenAPI/swagger 정의에서 REST API에 대한 코드와 문서를 생성합니다.
|
|
> 더 많은 정보: <https://github.com/swagger-api/swagger-codegen>.
|
|
|
|
- OpenAPI/swagger 파일에서 문서와 코드 생성:
|
|
|
|
`swagger-codegen generate -i {{swagger_파일}} -l {{언어}}`
|
|
|
|
- 라이브러리 retrofit2와 옵션 useRxJava2를 사용하여 Java 코드 생성:
|
|
|
|
`swagger-codegen generate -i {{http://petstore.swagger.io/v2/swagger.json}} -l {{java}} --library {{retrofit2}} -D{{useRxJava2}}={{true}}`
|
|
|
|
- 사용 가능한 언어 나열:
|
|
|
|
`swagger-codegen langs`
|
|
|
|
- 특정 명령에 대한 도움말 표시:
|
|
|
|
`swagger-codegen {{generate|config-help|meta|langs|version}} --help`
|