mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-12-19 10:27:07 +00:00
[Kotlin] Fix default values (#17937)
* Fixed invalid extraction of response body in kotlin-client jvm-spring-* * Generated echo-api for kotlin-jvm-spring-3-restclient * Specific echo-api for Kotlin without allOf/anyOf * Specific echo-api for Kotlin without allOf/anyOf * Generated all samples * Added kotlin-jvm-spring-3-restclient sample to workflow * Fixed syntax problem * [kotlin] Fixed multiple problems with default values * [kotlin] Removed old commented code * [kotlin] Generated new samples after merge with master * [kotlin] ensure-up-to-date
This commit is contained in:
@@ -0,0 +1,62 @@
|
||||
# PathApi
|
||||
|
||||
All URIs are relative to *http://localhost:3000*
|
||||
|
||||
Method | HTTP request | Description
|
||||
------------- | ------------- | -------------
|
||||
[**testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPath**](PathApi.md#testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPath) | **GET** /path/string/{path_string}/integer/{path_integer}/{enum_nonref_string_path}/{enum_ref_string_path} | Test path parameter(s)
|
||||
|
||||
|
||||
<a id="testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPath"></a>
|
||||
# **testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPath**
|
||||
> kotlin.String testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPath(pathString, pathInteger, enumNonrefStringPath, enumRefStringPath)
|
||||
|
||||
Test path parameter(s)
|
||||
|
||||
Test path parameter(s)
|
||||
|
||||
### Example
|
||||
```kotlin
|
||||
// Import classes:
|
||||
//import org.openapitools.client.infrastructure.*
|
||||
//import org.openapitools.client.models.*
|
||||
|
||||
val apiInstance = PathApi()
|
||||
val pathString : kotlin.String = pathString_example // kotlin.String |
|
||||
val pathInteger : kotlin.Int = 56 // kotlin.Int |
|
||||
val enumNonrefStringPath : kotlin.String = enumNonrefStringPath_example // kotlin.String |
|
||||
val enumRefStringPath : StringEnumRef = // StringEnumRef |
|
||||
try {
|
||||
val result : kotlin.String = apiInstance.testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPath(pathString, pathInteger, enumNonrefStringPath, enumRefStringPath)
|
||||
println(result)
|
||||
} catch (e: ClientException) {
|
||||
println("4xx response calling PathApi#testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPath")
|
||||
e.printStackTrace()
|
||||
} catch (e: ServerException) {
|
||||
println("5xx response calling PathApi#testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPath")
|
||||
e.printStackTrace()
|
||||
}
|
||||
```
|
||||
|
||||
### Parameters
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**pathString** | **kotlin.String**| |
|
||||
**pathInteger** | **kotlin.Int**| |
|
||||
**enumNonrefStringPath** | **kotlin.String**| | [enum: success, failure, unclassified]
|
||||
**enumRefStringPath** | [**StringEnumRef**](.md)| | [enum: success, failure, unclassified]
|
||||
|
||||
### Return type
|
||||
|
||||
**kotlin.String**
|
||||
|
||||
### Authorization
|
||||
|
||||
No authorization required
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: Not defined
|
||||
- **Accept**: text/plain
|
||||
|
||||
Reference in New Issue
Block a user