openapi-generator-original/samples/client/petstore/kotlin-multiplatform-allOf-discriminator
Yasuhiro SHIMIZU 2cdd9ae687
Kotlin Multiplatform polymorphism with custom discriminator support (#21772)
* Enable descriminator for kotlin-client multiplatform

* update template

* add sample

* update samples-kotlin-client workflow

* add missing JsonClassDiscriminator import

* fix gradlew permission

* update sample

* fix sample

* re-generate sample
2025-08-31 02:22:12 +08:00
..

org.openapitools.client - Kotlin client library for Example

An example

Overview

This API client was generated by the OpenAPI Generator project. By using the openapi-spec from a remote server, you can easily generate an API client.

  • API version: 0.1
  • Package version:
  • Generator version: 7.16.0-SNAPSHOT
  • Build package: org.openapitools.codegen.languages.KotlinClientCodegen For more information, please visit https://example.org

Requires

  • Kotlin 1.5.10

Build

./gradlew check assemble

This runs all tests and packages the library.

Features/Implementation 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 OpenAPI definitions.

Documentation for API Endpoints

All URIs are relative to http://example.org

Class Method HTTP request Description
BirdApi getBird GET /v1/bird/{id}

Documentation for Models

Documentation for Authorization

Endpoints do not require authorization.

Author

contact@example.org