William Cheng 3ebb299981
[kotlin-client] Support for integer enums with kotlinx with custom serializer (#21765)
* [kotlin-client] Add support for integer enums with custom serializer for kotlinx

* [kotlin-client] Fix @SerialName annotation being used on non-string enums

* Format samples

* remove blank line

* add tests for kotlin client with integer enum

* add folders

---------

Co-authored-by: CHervaudBetclic <c.hervaud@betclicgroup.com>
2025-08-18 00:11:43 +08:00

1019 B

DefaultApi

All URIs are relative to http://localhost

Method HTTP request Description
doGet GET /do Do something

doGet

DoGet200Response doGet()

Do something

Example

// Import classes:
//import org.openapitools.client.infrastructure.*
//import org.openapitools.client.models.*

val apiInstance = DefaultApi()
try {
    val result : DoGet200Response = apiInstance.doGet()
    println(result)
} catch (e: ClientException) {
    println("4xx response calling DefaultApi#doGet")
    e.printStackTrace()
} catch (e: ServerException) {
    println("5xx response calling DefaultApi#doGet")
    e.printStackTrace()
}

Parameters

This endpoint does not need any parameter.

Return type

DoGet200Response

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json