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.2 KiB
2.2 KiB
HeaderApi
All URIs are relative to http://localhost:3000
Method | HTTP request | Description |
---|---|---|
testHeaderIntegerBooleanStringEnums | GET /header/integer/boolean/string/enums | Test header parameter(s) |
testHeaderIntegerBooleanStringEnums
kotlin.String testHeaderIntegerBooleanStringEnums(integerHeader, booleanHeader, stringHeader, enumNonrefStringHeader, enumRefStringHeader)
Test header parameter(s)
Test header parameter(s)
Example
// Import classes:
//import org.openapitools.client.infrastructure.*
//import org.openapitools.client.models.*
val apiInstance = HeaderApi()
val integerHeader : kotlin.Int = 56 // kotlin.Int |
val booleanHeader : kotlin.Boolean = true // kotlin.Boolean |
val stringHeader : kotlin.String = stringHeader_example // kotlin.String |
val enumNonrefStringHeader : kotlin.String = enumNonrefStringHeader_example // kotlin.String |
val enumRefStringHeader : StringEnumRef = // StringEnumRef |
try {
val result : kotlin.String = apiInstance.testHeaderIntegerBooleanStringEnums(integerHeader, booleanHeader, stringHeader, enumNonrefStringHeader, enumRefStringHeader)
println(result)
} catch (e: ClientException) {
println("4xx response calling HeaderApi#testHeaderIntegerBooleanStringEnums")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling HeaderApi#testHeaderIntegerBooleanStringEnums")
e.printStackTrace()
}
Parameters
| integerHeader | kotlin.Int| | [optional] | | booleanHeader | kotlin.Boolean| | [optional] | | stringHeader | kotlin.String| | [optional] | | enumNonrefStringHeader | kotlin.String| | [optional] [enum: success, failure, unclassified] |
Name | Type | Description | Notes |
---|---|---|---|
enumRefStringHeader | StringEnumRef | [optional] [enum: success, failure, unclassified] |
Return type
kotlin.String
Authorization
No authorization required
HTTP request headers
- Content-Type: Not defined
- Accept: text/plain