mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-05-12 20:50:55 +00:00
* feat(issue-20231): add echo_api client for kotlin okhttp * build(issue-20231): sync files
2.4 KiB
2.4 KiB
PathApi
All URIs are relative to http://localhost:3000
Method | HTTP request | Description |
---|---|---|
testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPath | GET /path/string/{path_string}/integer/{path_integer}/{enum_nonref_string_path}/{enum_ref_string_path} | Test path parameter(s) |
testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPath
kotlin.String testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPath(pathString, pathInteger, enumNonrefStringPath, enumRefStringPath)
Test path parameter(s)
Test path parameter(s)
Example
// 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 : ApiStringEnumRef = // ApiStringEnumRef |
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
| pathString | kotlin.String| | | | pathInteger | kotlin.Int| | | | enumNonrefStringPath | kotlin.String| | [enum: success, failure, unclassified] |
Name | Type | Description | Notes |
---|---|---|---|
enumRefStringPath | ApiStringEnumRef | [enum: success, failure, unclassified] |
Return type
kotlin.String
Authorization
No authorization required
HTTP request headers
- Content-Type: Not defined
- Accept: text/plain