mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-12-06 07:26:12 +00:00
* Issue #10591 kotlin enum defaultValue * Updated sample * Register sample Co-authored-by: Eric Durand-Tremblay <etremblay@kronostechnologies.com>
This commit is contained in:
committed by
GitHub
parent
69452360ab
commit
11bfc66782
@@ -0,0 +1,50 @@
|
||||
# DefaultApi
|
||||
|
||||
All URIs are relative to *http://localhost*
|
||||
|
||||
Method | HTTP request | Description
|
||||
------------- | ------------- | -------------
|
||||
[**operation**](DefaultApi.md#operation) | **GET** / |
|
||||
|
||||
|
||||
<a name="operation"></a>
|
||||
# **operation**
|
||||
> ModelWithEnumPropertyHavingDefault operation()
|
||||
|
||||
|
||||
|
||||
### Example
|
||||
```kotlin
|
||||
// Import classes:
|
||||
//import org.openapitools.client.infrastructure.*
|
||||
//import org.openapitools.client.models.*
|
||||
|
||||
val apiInstance = DefaultApi()
|
||||
try {
|
||||
val result : ModelWithEnumPropertyHavingDefault = 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
|
||||
|
||||
[**ModelWithEnumPropertyHavingDefault**](ModelWithEnumPropertyHavingDefault.md)
|
||||
|
||||
### Authorization
|
||||
|
||||
No authorization required
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: Not defined
|
||||
- **Accept**: application/json
|
||||
|
||||
@@ -0,0 +1,17 @@
|
||||
|
||||
# ModelWithEnumPropertyHavingDefault
|
||||
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**propertyName** | [**inline**](#PropertyName) | |
|
||||
|
||||
|
||||
<a name="PropertyName"></a>
|
||||
## Enum: propertyName
|
||||
Name | Value
|
||||
---- | -----
|
||||
propertyName | VALUE
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user