forked from loafle/openapi-generator-original
[Kotlin] Add name, parameter mapping support (#16193)
* add name, parameter mapping support to abstract kotlin * remove files
This commit is contained in:
@@ -0,0 +1,59 @@
|
||||
# FakeApi
|
||||
|
||||
All URIs are relative to *http://localhost*
|
||||
|
||||
Method | HTTP request | Description
|
||||
------------- | ------------- | -------------
|
||||
[**getParameterNameMapping**](FakeApi.md#getParameterNameMapping) | **GET** /fake/parameter-name-mapping | parameter name mapping test
|
||||
|
||||
|
||||
<a id="getParameterNameMapping"></a>
|
||||
# **getParameterNameMapping**
|
||||
> getParameterNameMapping(underscoreType, type, typeWithUnderscore, httpDebugOption)
|
||||
|
||||
parameter name mapping test
|
||||
|
||||
### Example
|
||||
```kotlin
|
||||
// Import classes:
|
||||
//import org.openapitools.client.infrastructure.*
|
||||
//import org.openapitools.client.models.*
|
||||
|
||||
val apiInstance = FakeApi()
|
||||
val underscoreType : kotlin.Long = 789 // kotlin.Long | _type
|
||||
val type : kotlin.String = type_example // kotlin.String | type
|
||||
val typeWithUnderscore : kotlin.String = typeWithUnderscore_example // kotlin.String | type_
|
||||
val httpDebugOption : kotlin.String = httpDebugOption_example // kotlin.String | http debug option (to test parameter naming option)
|
||||
try {
|
||||
apiInstance.getParameterNameMapping(underscoreType, type, typeWithUnderscore, httpDebugOption)
|
||||
} catch (e: ClientException) {
|
||||
println("4xx response calling FakeApi#getParameterNameMapping")
|
||||
e.printStackTrace()
|
||||
} catch (e: ServerException) {
|
||||
println("5xx response calling FakeApi#getParameterNameMapping")
|
||||
e.printStackTrace()
|
||||
}
|
||||
```
|
||||
|
||||
### Parameters
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**underscoreType** | **kotlin.Long**| _type |
|
||||
**type** | **kotlin.String**| type |
|
||||
**typeWithUnderscore** | **kotlin.String**| type_ |
|
||||
**httpDebugOption** | **kotlin.String**| http debug option (to test parameter naming option) |
|
||||
|
||||
### Return type
|
||||
|
||||
null (empty response body)
|
||||
|
||||
### Authorization
|
||||
|
||||
No authorization required
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: Not defined
|
||||
- **Accept**: Not defined
|
||||
|
||||
Reference in New Issue
Block a user