mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-10-14 16:33:56 +00:00
* [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>
1019 B
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
Authorization
No authorization required
HTTP request headers
- Content-Type: Not defined
- Accept: application/json