Mathieu Lemoine 69b8831cbe [Kotlin] enumPropertyNaming UPPERCASE should separate words with _ (#4062)
* [Kotlin] enumPropertyNaming UPPERCASE should separate words with _

* Add unit cases for issue 4062

Co-authored-by: William Cheng <wing328hk@gmail.com>
2019-12-27 16:37:29 +08:00

983 B

EnumApi

All URIs are relative to http://petstore.swagger.io/v2

Method HTTP request Description
getEnum GET /enum Get enums

getEnum

PetEnum getEnum()

Get enums

Example

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

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

Parameters

This endpoint does not need any parameter.

Return type

PetEnum

Authorization

No authorization required

HTTP request headers

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