forked from loafle/openapi-generator-original
* add validteJsonElement * add oneOf support * various fixes, add tests * minor fixes * minor fixes * update data class * remove comments * array support, add test * update api client constructor * add anyOf support * add new files * fix merge * update * update * update * update
995 B
995 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
Authorization
No authorization required
HTTP request headers
- Content-Type: Not defined
- Accept: application/json