Skip to content
GitLab
    • Explore Projects Groups Snippets
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • O openapi-generator
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 3,476
    • Issues 3,476
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 402
    • Merge requests 402
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • OpenAPI Tools
  • openapi-generator
  • Merge requests
  • !5697
An error occurred while fetching the assigned milestone of the selected merge_request.

Enhancement/kotlin/retrofit2

  • Review changes

  • Download
  • Email patches
  • Plain diff
Closed Administrator requested to merge github/fork/Dataport/enhancement/kotlin/retrofit2 into master 5 years ago
  • Overview 0
  • Commits 19
  • Pipelines 0
  • Changes 744

Created by: ch4rl3x

#5076

PR checklist

  • Read the contribution guidelines.
  • If contributing template-only or documentation-only changes which will change sample output, build the project before.
  • Run the shell script(s) under ./bin/ (or Windows batch scripts under.\bin\windows) to update Petstore samples related to your fix. This is important, as CI jobs will verify all generator outputs of your HEAD commit, and these must match the expectations made by your contribution. You only need to run ./bin/{LANG}-petstore.sh, ./bin/openapi3/{LANG}-petstore.sh if updating the code or mustache templates for a language ({LANG}) (e.g. php, ruby, python, etc).
  • File the PR against the correct branch: master, 4.3.x, 5.0.x. Default: master.
  • Copy the technical committee to review the pull request if your PR is targeting a particular programming language.

PR Description

This PR add the option to use koltin suspend functions combined with retrofit2. Also adds more complexity (authorization) and ability to customization to the ApiClient.

@jimschubert @dr4ke616 @karismann @Zomzog @andrewemery @4brunu

Compare
  • master (base)

and
  • latest version
    c83da46f
    19 commits, 2 years ago

744 files
+ 4871
- 3227

    Preferences

    File browser
    Compare changes
b‎in‎
win‎dows‎
kotlin-cli‎ent-all.bat‎ +6 -3
kotlin-clie‎nt-gson.bat‎ +1 -1
kotlin-clien‎t-jackson.bat‎ +11 -0
kotlin-client-json‎-request-string.bat‎ +1 -1
kotlin-client-m‎oshi-codegen.bat‎ +1 -1
kotlin-client‎-nonpublic.bat‎ +1 -1
kotlin-client‎-nullable.bat‎ +1 -1
kotlin-clien‎t-okhttp3.bat‎ +1 -1
kotlin-client-petsto‎re-multiplatform.bat‎ +1 -1
kotlin-client‎-petstore.bat‎ +1 -1
kotlin-client-ret‎rofit2-suspend.bat‎ +10 -0
kotlin-client‎-retrofit2.bat‎ +1 -1
kotlin-clien‎t-string.bat‎ +1 -1
kotlin-client-‎threetenbp.bat‎ +1 -1
kotlin-client-up‎percase-enum.bat‎ +10 -0
kotlin-cli‎ent-all.sh‎ +5 -3
kotlin-cli‎ent-gson.sh‎ +1 -1
kotlin-clien‎t-jackson.sh‎ +1 -1
kotlin-client-json‎-request-string.sh‎ +1 -1
kotlin-client-m‎oshi-codegen.sh‎ +1 -1
kotlin-client‎-nonpublic.sh‎ +1 -1
kotlin-clien‎t-nullable.sh‎ +1 -1
kotlin-clien‎t-okhttp3.sh‎ +1 -1
kotlin-client-petst‎ore-multiplatform.sh‎ +1 -1
kotlin-clien‎t-petstore.sh‎ +1 -1
kotlin-client-retr‎ofit2-coroutines.sh‎ +32 -0
kotlin-client‎-retrofit2.sh‎ +1 -1
kotlin-clie‎nt-string.sh‎ +1 -1
kotlin-client‎-threetenbp.sh‎ +1 -1
kotlin-client-u‎ppercase-enum.sh‎ +1 -1
modules/openapi-g‎enerator/src/main‎
java/org/opena‎pitools/codegen‎
lang‎uages‎
AbstractKotli‎nCodegen.java‎ +16 -0
KotlinClient‎Codegen.java‎ +26 -1
ut‎ils‎
ProcessU‎tils.java‎ +24 -0
CodegenCon‎stants.java‎ +3 -0
resources/k‎otlin-client‎
libraries/j‎vm-retrofit2‎
au‎th‎
ApiKeyAuth.‎kt.mustache‎ +50 -0
HttpBasicAut‎h.kt.mustache‎ +33 -0
HttpBearerAut‎h.kt.mustache‎ +39 -0
OAuth.kt‎.mustache‎ +151 -0
OAuthFlow.‎kt.mustache‎ +5 -0
OAuthOkHttpCli‎ent.kt.mustache‎ +61 -0
infrast‎ructure‎
ApiClient.‎kt.mustache‎ +263 -17
ResponseExt‎.kt.mustache‎ +35 -0
api.mu‎stache‎ +21 -1
api_doc.‎mustache‎ +83 -0
bodyParam‎s.mustache‎ +1 -1
README.‎mustache‎ +1 -1
build.grad‎le.mustache‎ +4 -0
samples/cli‎ent/petstore‎
ja‎va‎
retr‎ofit2‎
src/main/java/org/‎openapitools/client‎
ApiClie‎nt.java‎ +11 -20
local.pr‎operties‎ +8 -0
retrofit‎2-play24‎
local.pr‎operties‎ +8 -0
retrofit‎2-play26‎
local.pr‎operties‎ +8 -0
kot‎lin‎
bin/org/opena‎pitools/client‎
ap‎is‎
PetA‎pi.kt‎ +0 -278
Store‎Api.kt‎ +0 -146
UserA‎pi.kt‎ +0 -271
infrast‎ructure‎
ApiAbstra‎ctions.kt‎ +0 -20
ApiCli‎ent.kt‎ +0 -141
ApiInfrastruct‎ureResponse.kt‎ +0 -40
Erro‎rs.kt‎ +0 -42
RequestC‎onfig.kt‎ +0 -16
ResponseEx‎tensions.kt‎ +0 -23
gradle/‎wrapper‎
gradle-wr‎apper.jar‎ +0 -0
gs‎on‎
.openapi-‎generator‎
VER‎SION‎ +0 -0
do‎cs‎
ApiResp‎onse.md‎ +0 -0
Categ‎ory.md‎ +0 -0
Orde‎r.md‎ +0 -0
Pet‎.md‎ +0 -0
PetA‎pi.md‎ +0 -0
Store‎Api.md‎ +0 -0
Tag‎.md‎ +0 -0
Use‎r.md‎ +0 -0
UserA‎pi.md‎ +0 -0
src/main/kotlin/org‎/openapitools/client‎
ap‎is‎
PetA‎pi.kt‎ +0 -0
Store‎Api.kt‎ +0 -0
UserA‎pi.kt‎ +0 -0
infrast‎ructure‎
ApiAbstra‎ctions.kt‎ +0 -0
ApiCli‎ent.kt‎ +0 -0
ApiInfrastruct‎ureResponse.kt‎ +0 -0
Application‎Delegates.kt‎ +0 -0
ByteArray‎Adapter.kt‎ +0 -0
DateAda‎pter.kt‎ +0 -0
Erro‎rs.kt‎ +0 -0
LocalDate‎Adapter.kt‎ +0 -0
LocalDateTi‎meAdapter.kt‎ +0 -0
OffsetDateTi‎meAdapter.kt‎ +0 -0
RequestC‎onfig.kt‎ +0 -0
RequestM‎ethod.kt‎ +0 -0
ResponseEx‎tensions.kt‎ +0 -0
Serial‎izer.kt‎ +0 -0
mod‎els‎
ApiResp‎onse.kt‎ +0 -0
Categ‎ory.kt‎ +0 -0
Orde‎r.kt‎ +0 -0
Pet‎.kt‎ +0 -0
Tag‎.kt‎ +0 -0
Use‎r.kt‎ +0 -0
.openapi-gen‎erator-ignore‎ +0 -0
READ‎ME.md‎ +1 -1
build.‎gradle‎ +2 -0
setting‎s.gradle‎ +0 -0
jac‎kson‎
.openapi-‎generator‎
VER‎SION‎ +0 -0
do‎cs‎
ApiResp‎onse.md‎ +0 -0
Categ‎ory.md‎ +0 -0
Orde‎r.md‎ +0 -0
Pet‎.md‎ +0 -0
PetA‎pi.md‎ +0 -0
Store‎Api.md‎ +0 -0
Tag‎.md‎ +0 -0
Use‎r.md‎ +0 -0
UserA‎pi.md‎ +0 -0
src/main/kotlin/org‎/openapitools/client‎
ap‎is‎
PetA‎pi.kt‎ +0 -0
Store‎Api.kt‎ +0 -0
UserA‎pi.kt‎ +0 -0
infrast‎ructure‎
ApiAbstra‎ctions.kt‎ +0 -0
ApiCli‎ent.kt‎ +0 -0
ApiInfrastruct‎ureResponse.kt‎ +0 -0
Application‎Delegates.kt‎ +0 -0
ByteArray‎Adapter.kt‎ +0 -0
Erro‎rs.kt‎ +0 -0
RequestC‎onfig.kt‎ +0 -0
RequestM‎ethod.kt‎ +0 -0
ResponseEx‎tensions.kt‎ +0 -0
Serial‎izer.kt‎ +0 -0
mod‎els‎
ApiResp‎onse.kt‎ +0 -0
Categ‎ory.kt‎ +0 -0
Orde‎r.kt‎ +0 -0
Pet‎.kt‎ +0 -0
Tag‎.kt‎ +0 -0
Use‎r.kt‎ +0 -0
.openapi-gen‎erator-ignore‎ +0 -0
READ‎ME.md‎ +1 -1
build.‎gradle‎ +2 -0
setting‎s.gradle‎ +0 -0
json-requ‎est-string‎
.openapi-‎generator‎
VER‎SION‎ +0 -0
do‎cs‎
ApiResp‎onse.md‎ +0 -0
Categ‎ory.md‎ +0 -0
Orde‎r.md‎ +0 -0
Pet‎.md‎ +0 -0
PetA‎pi.md‎ +0 -0
Store‎Api.md‎ +0 -0
Tag‎.md‎ +0 -0
Use‎r.md‎ +0 -0
UserA‎pi.md‎ +0 -0
src/main/kotlin/org‎/openapitools/client‎
ap‎is‎
PetA‎pi.kt‎ +0 -0
Store‎Api.kt‎ +0 -0
UserA‎pi.kt‎ +0 -0
infrast‎ructure‎
ApiAbstra‎ctions.kt‎ +0 -0
ApiCli‎ent.kt‎ +0 -0
ApiInfrastruct‎ureResponse.kt‎ +0 -0
Application‎Delegates.kt‎ +0 -0
ByteArray‎Adapter.kt‎ +0 -0
Erro‎rs.kt‎ +0 -0
LocalDate‎Adapter.kt‎ +0 -0
LocalDateTi‎meAdapter.kt‎ +0 -0
OffsetDateTi‎meAdapter.kt‎ +0 -0
RequestC‎onfig.kt‎ +0 -0
RequestM‎ethod.kt‎ +0 -0
ResponseEx‎tensions.kt‎ +0 -0
Serial‎izer.kt‎ +0 -0
UUIDAda‎pter.kt‎ +0 -0
mod‎els‎
ApiResp‎onse.kt‎ +0 -0
Categ‎ory.kt‎ +0 -0
Orde‎r.kt‎ +0 -0
Pet‎.kt‎ +0 -0
Tag‎.kt‎ +0 -0
Use‎r.kt‎ +0 -0
.openapi-gen‎erator-ignore‎ +0 -0
READ‎ME.md‎ +1 -1
build.‎gradle‎ +2 -0
setting‎s.gradle‎ +0 -0
moshi-‎codegen‎
.openapi-‎generator‎
VER‎SION‎ +0 -0
do‎cs‎
ApiResp‎onse.md‎ +0 -0
Categ‎ory.md‎ +0 -0
Orde‎r.md‎ +0 -0
Pet‎.md‎ +0 -0
PetA‎pi.md‎ +0 -0
Store‎Api.md‎ +0 -0
Tag‎.md‎ +0 -0
Use‎r.md‎ +0 -0
UserA‎pi.md‎ +0 -0
src/main/kotlin/org‎/openapitools/client‎
ap‎is‎
PetA‎pi.kt‎ +0 -0
Store‎Api.kt‎ +0 -0
UserA‎pi.kt‎ +0 -0
infrast‎ructure‎
ApiAbstra‎ctions.kt‎ +0 -0
ApiCli‎ent.kt‎ +0 -0
ApiInfrastruct‎ureResponse.kt‎ +0 -0
Application‎Delegates.kt‎ +0 -0
ByteArray‎Adapter.kt‎ +0 -0
Erro‎rs.kt‎ +0 -0
LocalDate‎Adapter.kt‎ +0 -0
LocalDateTi‎meAdapter.kt‎ +0 -0
OffsetDateTi‎meAdapter.kt‎ +0 -0
RequestC‎onfig.kt‎ +0 -0
RequestM‎ethod.kt‎ +0 -0
ResponseEx‎tensions.kt‎ +0 -0
Serial‎izer.kt‎ +0 -0
UUIDAda‎pter.kt‎ +0 -0
mod‎els‎
ApiResp‎onse.kt‎ +0 -0
Categ‎ory.kt‎ +0 -0
Orde‎r.kt‎ +0 -0
Pet‎.kt‎ +0 -0
Tag‎.kt‎ +0 -0
Use‎r.kt‎ +0 -0
.openapi-gen‎erator-ignore‎ +0 -0
READ‎ME.md‎ +1 -1
build.‎gradle‎ +2 -0
setting‎s.gradle‎ +0 -0
multip‎latform‎
.openapi-‎generator‎
VER‎SION‎ +0 -0
do‎cs‎
ApiResp‎onse.md‎ +0 -0
Categ‎ory.md‎ +0 -0
Orde‎r.md‎ +0 -0
Pet‎.md‎ +0 -0
PetA‎pi.md‎ +0 -0
Store‎Api.md‎ +0 -0
Tag‎.md‎ +0 -0
Use‎r.md‎ +0 -0
UserA‎pi.md‎ +0 -0
gradle/‎wrapper‎
gradle-wr‎apper.jar‎ +0 -0
gradle-wrapp‎er.properties‎ +0 -0
s‎rc‎
commonMain/kotlin/…‎/openapitools/client‎
ap‎is‎
PetA‎pi.kt‎ +0 -0
Store‎Api.kt‎ +0 -0
UserA‎pi.kt‎ +0 -0
au‎th‎
ApiKey‎Auth.kt‎ +0 -0
Authenti‎cation.kt‎ +0 -0
HttpBasi‎cAuth.kt‎ +0 -0
HttpBear‎erAuth.kt‎ +0 -0
OAut‎h.kt‎ +0 -0
infrast‎ructure‎
ApiAbstra‎ctions.kt‎ +0 -0
ApiCli‎ent.kt‎ +0 -0
Base64Byt‎eArray.kt‎ +0 -0
Byte‎s.kt‎ +0 -0
HttpRes‎ponse.kt‎ +0 -0
OctetByt‎eArray.kt‎ +0 -0
RequestC‎onfig.kt‎ +0 -0
RequestM‎ethod.kt‎ +0 -0
mod‎els‎
ApiResp‎onse.kt‎ +0 -0
Categ‎ory.kt‎ +0 -0
Orde‎r.kt‎ +0 -0
Pet‎.kt‎ +0 -0
Tag‎.kt‎ +0 -0
Use‎r.kt‎ +0 -0
commonTest/‎kotlin/util‎
Corout‎ine.kt‎ +0 -0
iosTest/k‎otlin/util‎
Corout‎ine.kt‎ +0 -0
jsTest/ko‎tlin/util‎
Corout‎ine.kt‎ +0 -0
jvmTest/k‎otlin/util‎
Corout‎ine.kt‎ +0 -0
.openapi-gen‎erator-ignore‎ +0 -0
READ‎ME.md‎ +0 -0
build.‎gradle‎ +0 -0
gra‎dlew‎ +0 -0
gradl‎ew.bat‎ +0 -0
setting‎s.gradle‎ +0 -0
nonp‎ublic‎
.openapi-‎generator‎
VER‎SION‎ +0 -0
do‎cs‎
ApiResp‎onse.md‎ +0 -0
Categ‎ory.md‎ +0 -0
Orde‎r.md‎ +0 -0
Pet‎.md‎ +0 -0
PetA‎pi.md‎ +0 -0
Store‎Api.md‎ +0 -0
Tag‎.md‎ +0 -0
Use‎r.md‎ +0 -0
UserA‎pi.md‎ +0 -0
src/main/kotlin/org‎/openapitools/client‎
ap‎is‎
PetA‎pi.kt‎ +0 -0
Store‎Api.kt‎ +0 -0
UserA‎pi.kt‎ +0 -0
infrast‎ructure‎
ApiAbstra‎ctions.kt‎ +0 -0
ApiCli‎ent.kt‎ +0 -0
ApiInfrastruct‎ureResponse.kt‎ +0 -0
Application‎Delegates.kt‎ +0 -0
ByteArray‎Adapter.kt‎ +0 -0
Erro‎rs.kt‎ +0 -0
LocalDate‎Adapter.kt‎ +0 -0
LocalDateTi‎meAdapter.kt‎ +0 -0
OffsetDateTi‎meAdapter.kt‎ +0 -0
RequestC‎onfig.kt‎ +0 -0
RequestM‎ethod.kt‎ +0 -0
ResponseEx‎tensions.kt‎ +0 -0
Serial‎izer.kt‎ +0 -0
UUIDAda‎pter.kt‎ +0 -0
mod‎els‎
ApiResp‎onse.kt‎ +0 -0
Categ‎ory.kt‎ +0 -0
Orde‎r.kt‎ +0 -0
Pet‎.kt‎ +0 -0
Tag‎.kt‎ +0 -0
Use‎r.kt‎ +0 -0
.openapi-gen‎erator-ignore‎ +0 -0
READ‎ME.md‎ +1 -1
build.‎gradle‎ +2 -0
setting‎s.gradle‎ +0 -0
null‎able‎
.openapi-‎generator‎
VER‎SION‎ +0 -0
do‎cs‎
ApiResp‎onse.md‎ +0 -0
Categ‎ory.md‎ +0 -0
Orde‎r.md‎ +0 -0
Pet‎.md‎ +0 -0
PetA‎pi.md‎ +0 -0
Store‎Api.md‎ +0 -0
Tag‎.md‎ +0 -0
Use‎r.md‎ +0 -0
UserA‎pi.md‎ +0 -0
src/main/kotlin/org‎/openapitools/client‎
ap‎is‎
PetA‎pi.kt‎ +0 -0
Store‎Api.kt‎ +0 -0
UserA‎pi.kt‎ +0 -0
infrast‎ructure‎
ApiAbstra‎ctions.kt‎ +0 -0
ApiCli‎ent.kt‎ +0 -0
ApiInfrastruct‎ureResponse.kt‎ +0 -0
Application‎Delegates.kt‎ +0 -0
ByteArray‎Adapter.kt‎ +0 -0
Erro‎rs.kt‎ +0 -0
LocalDate‎Adapter.kt‎ +0 -0
LocalDateTi‎meAdapter.kt‎ +0 -0
OffsetDateTi‎meAdapter.kt‎ +0 -0
RequestC‎onfig.kt‎ +0 -0
RequestM‎ethod.kt‎ +0 -0
ResponseEx‎tensions.kt‎ +0 -0
Serial‎izer.kt‎ +0 -0
UUIDAda‎pter.kt‎ +0 -0
mod‎els‎
ApiResp‎onse.kt‎ +0 -0
Categ‎ory.kt‎ +0 -0
Orde‎r.kt‎ +0 -0
Pet‎.kt‎ +0 -0
Tag‎.kt‎ +0 -0
Use‎r.kt‎ +0 -0
.openapi-gen‎erator-ignore‎ +0 -0
READ‎ME.md‎ +90 -0
build.‎gradle‎ +2 -0
setting‎s.gradle‎ +0 -0
okh‎ttp3‎
.openapi-‎generator‎
VER‎SION‎ +0 -0
do‎cs‎
ApiResp‎onse.md‎ +0 -0
Categ‎ory.md‎ +0 -0
Orde‎r.md‎ +0 -0
Pet‎.md‎ +0 -0
PetA‎pi.md‎ +0 -0
Store‎Api.md‎ +0 -0
Tag‎.md‎ +0 -0
Use‎r.md‎ +0 -0
UserA‎pi.md‎ +0 -0
src/main/kotlin/org‎/openapitools/client‎
ap‎is‎
PetA‎pi.kt‎ +0 -0
Store‎Api.kt‎ +0 -0
UserA‎pi.kt‎ +0 -0
infrast‎ructure‎
ApiAbstra‎ctions.kt‎ +0 -0
ApiCli‎ent.kt‎ +0 -0
ApiInfrastruct‎ureResponse.kt‎ +0 -0
Application‎Delegates.kt‎ +0 -0
ByteArray‎Adapter.kt‎ +0 -0
Erro‎rs.kt‎ +0 -0
LocalDate‎Adapter.kt‎ +0 -0
LocalDateTi‎meAdapter.kt‎ +0 -0
OffsetDateTi‎meAdapter.kt‎ +0 -0
RequestC‎onfig.kt‎ +0 -0
RequestM‎ethod.kt‎ +0 -0
ResponseEx‎tensions.kt‎ +0 -0
Serial‎izer.kt‎ +0 -0
UUIDAda‎pter.kt‎ +0 -0
mod‎els‎
ApiResp‎onse.kt‎ +0 -0
Categ‎ory.kt‎ +0 -0
Orde‎r.kt‎ +0 -0
Pet‎.kt‎ +0 -0
Tag‎.kt‎ +0 -0
Use‎r.kt‎ +0 -0
.openapi-gen‎erator-ignore‎ +0 -0
READ‎ME.md‎ +90 -0
build.‎gradle‎ +1 -0
setting‎s.gradle‎ +0 -0
pets‎tore‎
.openapi-‎generator‎
VER‎SION‎ +0 -0
do‎cs‎
ApiResp‎onse.md‎ +0 -0
Categ‎ory.md‎ +0 -0
Orde‎r.md‎ +0 -0
Pet‎.md‎ +0 -0
PetA‎pi.md‎ +0 -0
Store‎Api.md‎ +0 -0
Tag‎.md‎ +0 -0
Use‎r.md‎ +0 -0
UserA‎pi.md‎ +0 -0
src/main/kotlin/org‎/openapitools/client‎
ap‎is‎
PetA‎pi.kt‎ +0 -0
Store‎Api.kt‎ +0 -0
UserA‎pi.kt‎ +0 -0
infrast‎ructure‎
ApiAbstra‎ctions.kt‎ +0 -0
ApiCli‎ent.kt‎ +0 -0
ApiInfrastruct‎ureResponse.kt‎ +0 -0
Application‎Delegates.kt‎ +0 -0
ByteArray‎Adapter.kt‎ +0 -0
Erro‎rs.kt‎ +0 -0
LocalDate‎Adapter.kt‎ +0 -0
LocalDateTi‎meAdapter.kt‎ +0 -0
OffsetDateTi‎meAdapter.kt‎ +0 -0
RequestC‎onfig.kt‎ +0 -0
RequestM‎ethod.kt‎ +0 -0
ResponseEx‎tensions.kt‎ +0 -0
Serial‎izer.kt‎ +0 -0
UUIDAda‎pter.kt‎ +0 -0
mod‎els‎
ApiResp‎onse.kt‎ +0 -0
Categ‎ory.kt‎ +0 -0
Orde‎r.kt‎ +0 -0
Pet‎.kt‎ +0 -0
Tag‎.kt‎ +0 -0
Use‎r.kt‎ +0 -0
.openapi-gen‎erator-ignore‎ +0 -0
READ‎ME.md‎ +90 -0
build.‎gradle‎ +39 -0
setting‎s.gradle‎ +0 -0
retr‎ofit2‎
.openapi-‎generator‎
VER‎SION‎ +0 -0
do‎cs‎
ApiResp‎onse.md‎ +0 -0
Categ‎ory.md‎ +0 -0
Orde‎r.md‎ +22 -0
Pet‎.md‎ +0 -0
PetA‎pi.md‎ +320 -0
Store‎Api.md‎ +158 -0
Tag‎.md‎ +0 -0
Use‎r.md‎ +0 -0
UserA‎pi.md‎ +310 -0
gradle/‎wrapper‎
gradle-wr‎apper.jar‎ +0 -0
gradle-wrapp‎er.properties‎ +2 -1
src/main/kotlin/org‎/openapitools/client‎
ap‎is‎
PetA‎pi.kt‎ +122 -0
Store‎Api.kt‎ +62 -0
UserA‎pi.kt‎ +113 -0
au‎th‎
ApiKey‎Auth.kt‎ +50 -0
HttpBasi‎cAuth.kt‎ +33 -0
HttpBear‎erAuth.kt‎ +39 -0
OAut‎h.kt‎ +151 -0
OAuthF‎low.kt‎ +5 -0
OAuthOkHtt‎pClient.kt‎ +61 -0
infrast‎ructure‎
ApiCli‎ent.kt‎ +198 -0
ByteArray‎Adapter.kt‎ +0 -0
Collection‎Formats.kt‎ +56 -0
LocalDate‎Adapter.kt‎ +0 -0
LocalDateTi‎meAdapter.kt‎ +0 -0
OffsetDateTi‎meAdapter.kt‎ +0 -0
Respons‎eExt.kt‎ +18 -0
Serial‎izer.kt‎ +0 -0
UUIDAda‎pter.kt‎ +0 -0
mod‎els‎
ApiResp‎onse.kt‎ +0 -0
Categ‎ory.kt‎ +0 -0
Orde‎r.kt‎ +10 -7
Pet‎.kt‎ +0 -0
Tag‎.kt‎ +0 -0
Use‎r.kt‎ +0 -0
.openapi-gen‎erator-ignore‎ +0 -0
READ‎ME.md‎ +90 -0
build.‎gradle‎ +41 -0
gra‎dlew‎ +3 -3
gradl‎ew.bat‎ +84 -84
local.pr‎operties‎ +8 -0
setting‎s.gradle‎ +0 -0
retrofit2-‎coroutines‎
.openapi-‎generator‎
VER‎SION‎ +0 -0
do‎cs‎
ApiResp‎onse.md‎ +0 -0
Categ‎ory.md‎ +0 -0
Orde‎r.md‎ +0 -0
Pet‎.md‎ +0 -0
PetA‎pi.md‎ +56 -125
Store‎Api.md‎ +28 -58
Tag‎.md‎ +0 -0
Use‎r.md‎ +0 -0
UserA‎pi.md‎ +56 -106
gradle/‎wrapper‎
gradle-wr‎apper.jar‎ +0 -0
gradle-wrapp‎er.properties‎ +2 -1
src/main/kotlin/org‎/openapitools/client‎
ap‎is‎
PetA‎pi.kt‎ +122 -0
Store‎Api.kt‎ +62 -0
UserA‎pi.kt‎ +113 -0
au‎th‎
ApiKey‎Auth.kt‎ +50 -0
HttpBasi‎cAuth.kt‎ +33 -0
HttpBear‎erAuth.kt‎ +39 -0
OAut‎h.kt‎ +151 -0
OAuthF‎low.kt‎ +5 -0
OAuthOkHtt‎pClient.kt‎ +61 -0
infrast‎ructure‎
ApiCli‎ent.kt‎ +198 -0
ByteArray‎Adapter.kt‎ +0 -0
Collection‎Formats.kt‎ +0 -0
LocalDate‎Adapter.kt‎ +0 -0
LocalDateTi‎meAdapter.kt‎ +0 -0
OffsetDateTi‎meAdapter.kt‎ +0 -0
Serial‎izer.kt‎ +23 -0
UUIDAda‎pter.kt‎ +0 -0
mod‎els‎
ApiResp‎onse.kt‎ +0 -0
Categ‎ory.kt‎ +0 -0
Orde‎r.kt‎ +0 -0
Pet‎.kt‎ +0 -0
Tag‎.kt‎ +0 -0
Use‎r.kt‎ +0 -0
.openapi-gen‎erator-ignore‎ +0 -0
READ‎ME.md‎ +90 -0
build.‎gradle‎ +1 -0
gra‎dlew‎ +1 -1
gradl‎ew.bat‎ +1 -1
local.pr‎operties‎ +8 -0
setting‎s.gradle‎ +2 -0
s‎rc‎
main/kotlin/org/…/c‎lient/infrastructure‎
Application‎Delegates.kt‎ +0 -29
RequestM‎ethod.kt‎ +0 -8
test/kotlin/org/o‎penapitools/client‎
PetApi‎Test.kt‎ +0 -104
StoreAp‎iTest.kt‎ +0 -48
str‎ing‎
.openapi-‎generator‎
VER‎SION‎ +0 -0
do‎cs‎
ApiResp‎onse.md‎ +0 -0
Categ‎ory.md‎ +0 -0
Orde‎r.md‎ +0 -0
Pet‎.md‎ +0 -0
PetA‎pi.md‎ +0 -0
Store‎Api.md‎ +0 -0
Tag‎.md‎ +0 -0
Use‎r.md‎ +0 -0
UserA‎pi.md‎ +0 -0
src/main/kotlin/org‎/openapitools/client‎
ap‎is‎
PetA‎pi.kt‎ +0 -0
Store‎Api.kt‎ +0 -0
UserA‎pi.kt‎ +0 -0
infrast‎ructure‎
ApiAbstra‎ctions.kt‎ +0 -0
ApiCli‎ent.kt‎ +0 -0
ApiInfrastruct‎ureResponse.kt‎ +0 -0
Application‎Delegates.kt‎ +0 -0
ByteArray‎Adapter.kt‎ +0 -0
Erro‎rs.kt‎ +0 -0
LocalDate‎Adapter.kt‎ +0 -0
LocalDateTi‎meAdapter.kt‎ +0 -0
OffsetDateTi‎meAdapter.kt‎ +0 -0
RequestC‎onfig.kt‎ +0 -0
RequestM‎ethod.kt‎ +0 -0
ResponseEx‎tensions.kt‎ +0 -0
Serial‎izer.kt‎ +0 -0
UUIDAda‎pter.kt‎ +0 -0
mod‎els‎
ApiResp‎onse.kt‎ +0 -0
Categ‎ory.kt‎ +0 -0
Orde‎r.kt‎ +0 -0
Pet‎.kt‎ +0 -0
Tag‎.kt‎ +0 -0
Use‎r.kt‎ +0 -0
.openapi-gen‎erator-ignore‎ +0 -0
READ‎ME.md‎ +90 -0
build.‎gradle‎ +39 -0
setting‎s.gradle‎ +0 -0
three‎tenbp‎
.openapi-‎generator‎
VER‎SION‎ +1 -0
do‎cs‎
ApiResp‎onse.md‎ +12 -0
Categ‎ory.md‎ +11 -0
Orde‎r.md‎ +0 -0
Pet‎.md‎ +22 -0
PetA‎pi.md‎ +0 -0
Store‎Api.md‎ +0 -0
Tag‎.md‎ +11 -0
Use‎r.md‎ +17 -0
UserA‎pi.md‎ +0 -0
src/main/kotlin/org‎/openapitools/client‎
ap‎is‎
PetA‎pi.kt‎ +0 -0
Store‎Api.kt‎ +0 -0
UserA‎pi.kt‎ +0 -0
infrast‎ructure‎
ApiAbstra‎ctions.kt‎ +0 -0
ApiCli‎ent.kt‎ +0 -0
ApiInfrastruct‎ureResponse.kt‎ +0 -0
Application‎Delegates.kt‎ +0 -0
ByteArray‎Adapter.kt‎ +0 -0
Erro‎rs.kt‎ +0 -0
LocalDate‎Adapter.kt‎ +0 -0
LocalDateTi‎meAdapter.kt‎ +0 -0
OffsetDateTi‎meAdapter.kt‎ +0 -0
RequestC‎onfig.kt‎ +0 -0
RequestM‎ethod.kt‎ +0 -0
ResponseEx‎tensions.kt‎ +0 -0
Serial‎izer.kt‎ +0 -0
UUIDAda‎pter.kt‎ +0 -0
mod‎els‎
ApiResp‎onse.kt‎ +7 -4
Categ‎ory.kt‎ +6 -4
Orde‎r.kt‎ +0 -0
Pet‎.kt‎ +11 -8
Tag‎.kt‎ +6 -4
Use‎r.kt‎ +12 -4
.openapi-gen‎erator-ignore‎ +0 -0
READ‎ME.md‎ +90 -0
build.‎gradle‎ +2 -0
setting‎s.gradle‎ +0 -0
upperca‎se-enum‎
.openapi-‎generator‎
VER‎SION‎ +1 -0
do‎cs‎
EnumA‎pi.md‎ +0 -0
PetEn‎um.md‎ +0 -0
src/main/kotlin/org‎/openapitools/client‎
ap‎is‎
EnumA‎pi.kt‎ +9 -3
infrast‎ructure‎
ApiAbstra‎ctions.kt‎ +0 -0
ApiCli‎ent.kt‎ +80 -6
ApiInfrastruct‎ureResponse.kt‎ +4 -1
Application‎Delegates.kt‎ +0 -0
ByteArray‎Adapter.kt‎ +1 -1
Erro‎rs.kt‎ +2 -2
LocalDate‎Adapter.kt‎ +19 -0
LocalDateTi‎meAdapter.kt‎ +19 -0
OffsetDateTi‎meAdapter.kt‎ +19 -0
RequestC‎onfig.kt‎ +0 -0
RequestM‎ethod.kt‎ +0 -0
ResponseEx‎tensions.kt‎ +0 -0
Serial‎izer.kt‎ +0 -0
UUIDAda‎pter.kt‎ +13 -0
mod‎els‎
PetEn‎um.kt‎ +8 -0
.openapi-gen‎erator-ignore‎ +23 -0
READ‎ME.md‎ +1 -1
build.‎gradle‎ +1 -0
setting‎s.gradle‎ +0 -0
.giti‎gnore‎ +0 -106
READ‎ME.md‎ +0 -90
build.‎gradle‎ +0 -37
pom‎.xml‎ +0 -46
kotli‎n-gson‎
pom‎.xml‎ +0 -46
kotlin-‎jackson‎
bu‎ild‎
classes/k‎otlin/main‎
META‎-INF‎
kotlin-petstore-ja‎ckson.kotlin_module‎ +0 -0
org/open‎apitools‎
cli‎ent‎
ap‎is‎
PetApi$WhenM‎appings.class‎ +0 -0
PetApi‎.class‎ +0 -0
StoreApi$When‎Mappings.class‎ +0 -0
StoreAp‎i.class‎ +0 -0
UserApi$WhenM‎appings.class‎ +0 -0
UserAp‎i.class‎ +0 -0
infrast‎ructure‎
ApiAbstractionsKt$defaultM‎ultiValueConverter$1.class‎ +0 -0
ApiAbstract‎ionsKt.class‎ +0 -0
ApiClient$Compani‎on$client$2.class‎ +0 -0
ApiClient$Co‎mpanion.class‎ +0 -0
ApiClient$When‎Mappings.class‎ +0 -0
ApiClie‎nt.class‎ +0 -0
ApiInfrastructu‎reResponse.class‎ +0 -0
ApplicationDelega‎tes$SetOnce.class‎ +0 -0
ApplicationDe‎legates.class‎ +0 -0
ClientEr‎ror.class‎ +0 -0
ClientException‎$Companion.class‎ +0 -0
ClientExce‎ption.class‎ +0 -0
Informati‎onal.class‎ +0 -0
Redirect‎ion.class‎ +0 -0
RequestCo‎nfig.class‎ +0 -0
RequestMe‎thod.class‎ +0 -0
ResponseExten‎sionsKt.class‎ +0 -0
ResponseT‎ype.class‎ +0 -0
Serializ‎er.class‎ +0 -0
ServerEr‎ror.class‎ +0 -0
ServerException‎$Companion.class‎ +0 -0
ServerExce‎ption.class‎ +0 -0
Succes‎s.class‎ +0 -0
mod‎els‎
ApiRespo‎nse.class‎ +0 -0
Categor‎y.class‎ +0 -0
Order$Sta‎tus.class‎ +0 -0
Order‎.class‎ +0 -0
Pet$Stat‎us.class‎ +0 -0
Pet.‎class‎ +0 -0
Tag.‎class‎ +0 -0
User.‎class‎ +0 -0
Applicati‎onKt.class‎ +0 -0
kotlin/com‎pileKotlin‎
cache‎s-jvm‎
inp‎uts‎
source-to-‎output.tab‎ +0 -0
source-to-outpu‎t.tab.keystream‎ +0 -0
source-to-output.‎tab.keystream.len‎ +0 -0
source-to-ou‎tput.tab.len‎ +0 -0
source-to-outpu‎t.tab.values.at‎ +0 -0
source-to-o‎utput.tab_i‎ +0 -0
source-to-out‎put.tab_i.len‎ +0 -0
jvm/k‎otlin‎
class-fq-name‎-to-source.tab‎ +0 -0
class-fq-name-to-s‎ource.tab.keystream‎ +0 -0
class-fq-name-to-sou‎rce.tab.keystream.len‎ +0 -0
class-fq-name-t‎o-source.tab.len‎ +0 -0
class-fq-name-to-s‎ource.tab.values.at‎ +0 -0
class-fq-name-‎to-source.tab_i‎ +0 -0
class-fq-name-to‎-source.tab_i.len‎ +0 -0
consta‎nts.tab‎ +0 -0
constants.t‎ab.keystream‎ +0 -0
constants.tab‎.keystream.len‎ +0 -0
constant‎s.tab.len‎ +0 -0
constants.t‎ab.values.at‎ +0 -0
constan‎ts.tab_i‎ +0 -0
constants‎.tab_i.len‎ +0 -0
inline-fun‎ctions.tab‎ +0 -0
inline-function‎s.tab.keystream‎ +0 -0
inline-functions.‎tab.keystream.len‎ +0 -0
inline-funct‎ions.tab.len‎ +0 -0
inline-function‎s.tab.values.at‎ +0 -0
inline-func‎tions.tab_i‎ +0 -0
inline-functi‎ons.tab_i.len‎ +0 -0
internal-name‎-to-source.tab‎ +0 -0
internal-name-to-s‎ource.tab.keystream‎ +0 -0
internal-name-to-sou‎rce.tab.keystream.len‎ +0 -0
internal-name-t‎o-source.tab.len‎ +0 -0
internal-name-to-s‎ource.tab.values.at‎ +0 -0
internal-name-‎to-source.tab_i‎ +0 -0
internal-name-to‎-source.tab_i.len‎ +0 -0
package-‎parts.tab‎ +0 -0
package-parts‎.tab.keystream‎ +0 -0
package-parts.t‎ab.keystream.len‎ +0 -0
package-pa‎rts.tab.len‎ +0 -0
package-parts‎.tab.values.at‎ +0 -0
package-p‎arts.tab_i‎ +0 -0
package-par‎ts.tab_i.len‎ +0 -0
prot‎o.tab‎ +0 -0
proto.tab‎.keystream‎ +0 -0
proto.tab.k‎eystream.len‎ +0 -0
proto.‎tab.len‎ +0 -0
proto.tab‎.values.at‎ +0 -0
proto‎.tab_i‎ +0 -0
proto.t‎ab_i.len‎ +0 -0
source-to-‎classes.tab‎ +0 -0
source-to-class‎es.tab.keystream‎ +0 -0
source-to-classes‎.tab.keystream.len‎ +0 -0
source-to-cl‎asses.tab.len‎ +0 -0
source-to-class‎es.tab.values.at‎ +0 -0
source-to-c‎lasses.tab_i‎ +0 -0
source-to-cla‎sses.tab_i.len‎ +0 -0
subtyp‎es.tab‎ +0 -0
subtypes.ta‎b.keystream‎ +0 -0
subtypes.tab.‎keystream.len‎ +0 -0
subtypes‎.tab.len‎ +0 -0
subtypes.ta‎b.values.at‎ +0 -0
subtype‎s.tab_i‎ +0 -0
subtypes.‎tab_i.len‎ +0 -0
superty‎pes.tab‎ +0 -0
supertypes.t‎ab.keystream‎ +0 -0
supertypes.tab‎.keystream.len‎ +0 -0
supertype‎s.tab.len‎ +0 -0
supertypes.t‎ab.values.at‎ +0 -0
supertyp‎es.tab_i‎ +0 -0
supertypes‎.tab_i.len‎ +0 -0
loo‎kups‎
counte‎rs.tab‎ +0 -2
file-to‎-id.tab‎ +0 -0
file-to-id.t‎ab.keystream‎ +0 -0
file-to-id.tab‎.keystream.len‎ +0 -0
file-to-i‎d.tab.len‎ +0 -0
file-to-id.t‎ab.values.at‎ +0 -0
file-to-‎id.tab_i‎ +0 -0
file-to-id‎.tab_i.len‎ +0 -0
id-to-f‎ile.tab‎ +0 -0
id-to-file.t‎ab.keystream‎ +0 -0
id-to-file.tab‎.keystream.len‎ +0 -0
id-to-fil‎e.tab.len‎ +0 -0
id-to-file.t‎ab.values.at‎ +0 -0
id-to-fi‎le.tab_i‎ +0 -0
id-to-file‎.tab_i.len‎ +0 -0
looku‎ps.tab‎ +0 -0
lookups.ta‎b.keystream‎ +0 -0
lookups.tab.‎keystream.len‎ +0 -0
lookups‎.tab.len‎ +0 -0
lookups.ta‎b.values.at‎ +0 -0
lookup‎s.tab_i‎ +0 -0
lookups.‎tab_i.len‎ +0 -0
build-hi‎story.bin‎ +0 -0
last-bu‎ild.bin‎ +0 -0
gradle/‎wrapper‎
gradle-wr‎apper.jar‎ +0 -0
src/main/kotlin/org‎/openapitools/client‎
Applica‎tion.kt‎ +0 -20
pom‎.xml‎ +0 -46
kotlin-json-r‎equest-string‎
pom‎.xml‎ +0 -46
kotlin-mos‎hi-codegen‎
pom‎.xml‎ +0 -46
kotlin-mul‎tiplatform‎
pom‎.xml‎ +0 -47
kotlin-n‎onpublic‎
pom‎.xml‎ +0 -46
kotlin-‎nullable‎
READ‎ME.md‎ +0 -90
pom‎.xml‎ +0 -46
kotlin-‎okhttp3‎
READ‎ME.md‎ +0 -90
pom‎.xml‎ +0 -46
kotlin-r‎etrofit2‎
src/main/kotlin/org‎/openapitools/client‎
ap‎is‎
Store‎Api.kt‎ +0 -25
UserA‎pi.kt‎ +0 -37
infrast‎ructure‎
ApiCli‎ent.kt‎ +0 -40
READ‎ME.md‎ +0 -90
kotlin‎-string‎
src/test/kotlin/org‎/openapitools/client‎
PetApi‎Test.kt‎ +0 -104
READ‎ME.md‎ +0 -90
pom‎.xml‎ +0 -46
kotlin-t‎hreetenbp‎
src/test/kotlin/org‎/openapitools/client‎
PetApi‎Test.kt‎ +0 -104
READ‎ME.md‎ +0 -90
pom‎.xml‎ +0 -46
kotlin-upp‎ercase-enum‎
.openapi-‎generator‎
VER‎SION‎ +0 -1
build.‎gradle‎ +0 -37
bin/windows/kotlin-client-all.bat
+ 6
- 3
  • View file @ c83da46f

call powershell -command "& '%~dp0\kotlin-client-gson.bat'"
call powershell -command "& '%~dp0\kotlin-client-jackson.bat'"
call powershell -command "& '%~dp0\kotlin-client-json-request-string.bat'"
call powershell -command "& '%~dp0\kotlin-client-moshi-codegen.bat'"
call powershell -command "& '%~dp0\kotlin-client-nonpublic.bat'"
call powershell -command "& '%~dp0\kotlin-client-nullable.bat'"
call powershell -command "& '%~dp0\kotlin-client-okhttp3.bat'"
call powershell -command "& '%~dp0\kotlin-client-petstore-multiplatform.bat'"
call powershell -command "& '%~dp0\kotlin-client-petstore.bat'"
call powershell -command "& '%~dp0\kotlin-client-retrofit2-suspend.bat'"
call powershell -command "& '%~dp0\kotlin-client-retrofit2.bat'"
call powershell -command "& '%~dp0\kotlin-client-string.bat'"
call powershell -command "& '%~dp0\kotlin-client-threetenbp.bat'"
call powershell -command "& '%~dp0\kotlin-client-nullable.bat'"
call powershell -command "& '%~dp0\kotlin-client-json-request-string.bat'"
call powershell -command "& '%~dp0\kotlin-client-retrofit2.bat'"
\ No newline at end of file
call powershell -command "& '%~dp0\kotlin-client-uppercase-enum.bat'"
bin/windows/kotlin-client-gson.bat
+ 1
- 1
  • View file @ c83da46f


@@ -5,6 +5,6 @@ If Not Exist %executable% (
)
REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M -DloggerPath=conf/log4j.properties
set ags=generate --artifact-id "kotlin-petstore-gson" -i modules\openapi-generator\src\test\resources\2_0\petstore.yaml -g kotlin --additional-properties serializationLibrary=gson -o samples\client\petstore\kotlin-gson
set ags=generate --artifact-id "kotlin-petstore-gson" -i modules\openapi-generator\src\test\resources\2_0\petstore.yaml -g kotlin --additional-properties serializationLibrary=gson -o samples\client\petstore\kotlin\gson
java %JAVA_OPTS% -jar %executable% %ags%
bin/windows/kotlin-client-jackson.bat 0 → 100644
+ 11
- 0
  • View file @ c83da46f

set executable=.\modules\openapi-generator-cli\target\openapi-generator-cli.jar
If Not Exist %executable% (
mvn clean package
)
REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M -DloggerPath=conf/log4j.properties
set ags=generate --artifact-id "kotlin-petstore-jackson" -i modules\openapi-generator\src\test\resources\2_0\petstore.yaml -g kotlin --additional-properties serializationLibrary=jackson,serializationLibrary=jackson -o samples\client\petstore\kotlin\jackson
java %JAVA_OPTS% -jar %executable% %ags%
bin/windows/kotlin-client-json-request-string.bat
+ 1
- 1
  • View file @ c83da46f


@@ -5,6 +5,6 @@ If Not Exist %executable% (
)
REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M -DloggerPath=conf/log4j.properties
set ags=generate --artifact-id "kotlin-petstore-json-request-string" -i modules\openapi-generator\src\test\resources\2_0\petstore-with-date-field.yaml -g kotlin --additional-properties requestDateConverter=toString -o samples\client\petstore\kotlin-json-request-string
set ags=generate --artifact-id "kotlin-petstore-json-request-string" -i modules\openapi-generator\src\test\resources\2_0\petstore-with-date-field.yaml -g kotlin --additional-properties requestDateConverter=toString -o samples\client\petstore\kotlin\json-request-string
java %JAVA_OPTS% -jar %executable% %ags%
bin/windows/kotlin-client-moshi-codegen.bat
+ 1
- 1
  • View file @ c83da46f


@@ -5,6 +5,6 @@ If Not Exist %executable% (
)
REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M -DloggerPath=conf/log4j.properties
set ags=generate --artifact-id "kotlin-petstore-moshi-codegen" -i modules\openapi-generator\src\test\resources\2_0\petstore.yaml -g kotlin --additional-properties serializationLibrary=moshi,moshiCodeGen=true -o samples\client\petstore\kotlin-moshi-codegen
set ags=generate --artifact-id "kotlin-petstore-moshi-codegen" -i modules\openapi-generator\src\test\resources\2_0\petstore.yaml -g kotlin --additional-properties serializationLibrary=moshi,moshiCodeGen=true -o samples\client\petstore\kotlin\moshi-codegen
java %JAVA_OPTS% -jar %executable% %ags%
bin/windows/kotlin-client-nonpublic.bat
+ 1
- 1
  • View file @ c83da46f


@@ -5,6 +5,6 @@ If Not Exist %executable% (
)
REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M -DloggerPath=conf/log4j.properties
set ags=generate --artifact-id "kotlin-petstore-nonpublic" -i modules\openapi-generator\src\test\resources\2_0\petstore.yaml -g kotlin --additional-properties nonPublicApi=true -o samples\client\petstore\kotlin-nonpublic
set ags=generate --artifact-id "kotlin-petstore-nonpublic" -i modules\openapi-generator\src\test\resources\2_0\petstore.yaml -g kotlin --additional-properties nonPublicApi=true -o samples\client\petstore\kotlin\nonpublic
java %JAVA_OPTS% -jar %executable% %ags%
bin/windows/kotlin-client-nullable.bat
+ 1
- 1
  • View file @ c83da46f


@@ -5,6 +5,6 @@ If Not Exist %executable% (
)
REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M -DloggerPath=conf/log4j.properties
set ags=generate -i modules\openapi-generator\src\test\resources\2_0\petstore.yaml -g kotlin --artifact-id "kotlin-petstore-nullable" --additional-properties nullableReturnType=true,serializableModel=true -o samples\client\petstore\kotlin-nullable
set ags=generate -i modules\openapi-generator\src\test\resources\2_0\petstore.yaml -g kotlin --artifact-id "kotlin-petstore-nullable" --additional-properties nullableReturnType=true,serializableModel=true -o samples\client\petstore\kotlin\nullable
java %JAVA_OPTS% -jar %executable% %ags%
bin/windows/kotlin-client-okhttp3.bat
+ 1
- 1
  • View file @ c83da46f


@@ -5,6 +5,6 @@ If Not Exist %executable% (
)
REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M -DloggerPath=conf/log4j.properties
set ags=generate --artifact-id "kotlin-petstore-okhttp3" -i modules\openapi-generator\src\test\resources\2_0\petstore.yaml -g kotlin --library jvm-okhttp3 -o samples\client\petstore\kotlin-okhttp3
set ags=generate --artifact-id "kotlin-petstore-okhttp3" -i modules\openapi-generator\src\test\resources\2_0\petstore.yaml -g kotlin --library jvm-okhttp3 -o samples\client\petstore\kotlin\okhttp3
java %JAVA_OPTS% -jar %executable% %ags%
bin/windows/kotlin-client-petstore-multiplatform.bat
+ 1
- 1
  • View file @ c83da46f


@@ -5,6 +5,6 @@ If Not Exist %executable% (
)
REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M -DloggerPath=conf/log4j.properties
set ags=generate --artifact-id "kotlin-client-petstore-multiplatform" -i modules\openapi-generator\src\test\resources\2_0\petstore.yaml -g kotlin --library multiplatform -o samples\client\petstore\kotlin-multiplatform
set ags=generate --artifact-id "kotlin-client-petstore-multiplatform" -i modules\openapi-generator\src\test\resources\2_0\petstore.yaml -g kotlin --library multiplatform -o samples\client\petstore\kotlin\multiplatform
java %JAVA_OPTS% -jar %executable% %ags%
bin/windows/kotlin-client-petstore.bat
+ 1
- 1
  • View file @ c83da46f


@@ -5,6 +5,6 @@ If Not Exist %executable% (
)
REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M -DloggerPath=conf/log4j.properties
set ags=generate --artifact-id "kotlin-petstore-client" -i modules\openapi-generator\src\test\resources\2_0\petstore.yaml -g kotlin -o samples\client\petstore\kotlin --additional-properties dateLibrary=java8,serializableModel=true
set ags=generate --artifact-id "kotlin-petstore-client" -i modules\openapi-generator\src\test\resources\2_0\petstore.yaml -g kotlin --additional-properties dateLibrary=java8,serializableModel=true -o samples\client\petstore\kotlin\petstore
java %JAVA_OPTS% -jar %executable% %ags%
bin/windows/kotlin-client-retrofit2-suspend.bat 0 → 100644
+ 10
- 0
  • View file @ c83da46f

set executable=.\modules\openapi-generator-cli\target\openapi-generator-cli.jar
If Not Exist %executable% (
mvn clean package
)
REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M -DloggerPath=conf/log4j.properties
set ags=generate --artifact-id "kotlin-petstore-retrofit2" -i modules\openapi-generator\src\test\resources\2_0\petstore.yaml -g kotlin --library jvm-retrofit2 --additional-properties useCoroutines=true -o samples\client\petstore\kotlin\retrofit2-coroutines
java %JAVA_OPTS% -jar %executable% %ags%
bin/windows/kotlin-client-retrofit2.bat
+ 1
- 1
  • View file @ c83da46f


@@ -5,6 +5,6 @@ If Not Exist %executable% (
)
REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M -DloggerPath=conf/log4j.properties
set ags=generate --artifact-id "kotlin-petstore-retrofit2" -i modules\openapi-generator\src\test\resources\2_0\petstore.yaml -g kotlin --library jvm-retrofit2 -o samples\client\petstore\kotlin-retrofit2
set ags=generate --artifact-id "kotlin-petstore-retrofit2" -i modules\openapi-generator\src\test\resources\2_0\petstore.yaml -g kotlin --library jvm-retrofit2 -o samples\client\petstore\kotlin\retrofit2
java %JAVA_OPTS% -jar %executable% %ags%
0 Assignees
None
Assign to
0 Reviewers
None
Request review from
Labels
0
None
0
None
    Assign labels
  • Manage project labels

Milestone
No milestone
None
None
Time tracking
No estimate or time spent
Lock merge request
Unlocked
1
1 participant
Administrator
Reference:
Source branch: github/fork/Dataport/enhancement/kotlin/retrofit2

Menu

Explore Projects Groups Snippets