mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-05-12 20:50:55 +00:00
* add validteJsonElement * add oneOf support * various fixes, add tests * minor fixes * minor fixes * update data class * remove comments * array support, add test * update api client constructor * add anyOf support * add new files * fix merge * update * update * update * update
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 : 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
| pathString | kotlin.String| | | | pathInteger | kotlin.Int| | | | enumNonrefStringPath | kotlin.String| | [enum: success, failure, unclassified] |
Name | Type | Description | Notes |
---|---|---|---|
enumRefStringPath | StringEnumRef | [enum: success, failure, unclassified] |
Return type
kotlin.String
Authorization
No authorization required
HTTP request headers
- Content-Type: Not defined
- Accept: text/plain