William Cheng 886e4a6dd0
[kotlin] Test array integer (enum) with kotlin client generator (#22336)
* add tests for array of enum

* update
2025-11-12 16:39:01 +08:00

1.0 KiB

DefaultApi

All URIs are relative to http://localhost

Method HTTP request Description
operation GET /

operation

ModelWithIntArrayEnum operation()

Example

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

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

Parameters

This endpoint does not need any parameter.

Return type

ModelWithIntArrayEnum

Authorization

No authorization required

HTTP request headers

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