Files
openapi-generator-original/samples/client/petstore/kotlin
Jim Schubert 23cf641e8a Kotlin client lists (#5729)
* [kotlin] array->List instead of Array

Serialization to/from primitive arrays can cause issues with valid
responses. This commit considers swagger 'array' types as 'List' which,
although not as memory efficient should provide a cleaner interface for
users (and avoid serialization issues).

Also, updates README.md to list new generator and excludes
folder at samples/client/kotlin/bin/, which is not used.

* [kotlin] Move sample under conventional directory

samples/client/kotlin/ -> samples/client/petstore/kotlin/

Updated new.sh to generate client/server/docs into similar structure.
Current documentation generators (cwiki, html, html.md, html2) aren't
following a convention like client/server generators.
2017-05-31 00:18:37 +08:00
..
2017-05-31 00:18:37 +08:00
2017-05-31 00:18:37 +08:00
2017-05-31 00:18:37 +08:00
2017-05-31 00:18:37 +08:00
2017-05-31 00:18:37 +08:00
2017-05-31 00:18:37 +08:00
2017-05-31 00:18:37 +08:00

Generated Kotlin Client library

Requires

  • Kotlin 1.1.2
  • Gradle 3.3

Build

First, create the gradle wrapper script:

gradle wrapper

Then, run:

./gradlew check assemble

This runs all tests and packages the library.

Notes

  • Supports JSON inputs/outputs, File inputs, and Form inputs.
  • Supports collection formats for query parameters: csv, tsv, ssv, pipes.
  • Some Kotlin and Java types are fully qualified to avoid conflicts with types defined in Swagger definitions.
  • Implementation of ApiClient is intended to reduce method counts, specifically to benefit Android targets.