William Cheng 50ee574d1f
[kotlin] Escape dollar sign in baseName (#16266)
* escape dollar sign in baseName (kotlin)

* escape dollar sign in kotlin server jaxrs-spec template

* add new files

* update samples
2023-08-08 10:05:15 +08:00

3.0 KiB

DefaultApi

All URIs are relative to http://localhost

Method HTTP request Description
findPetsByStatus GET /test/parameters/{path_default}/{path_nullable} Finds Pets by status

findPetsByStatus

findPetsByStatus(pathDefault, pathNullable, queryDefault, headerDefault, cookieDefault, queryNullable, headerNullable, cookieNullable, dollarQueryDollarDollarSign)

Finds Pets by status

Multiple status values can be provided with comma separated strings

Example

// Import classes:
//import org.openapitools.client.infrastructure.*
//import org.openapitools.client.models.*

val apiInstance = DefaultApi()
val pathDefault : kotlin.String = pathDefault_example // kotlin.String | path default
val pathNullable : kotlin.String = pathNullable_example // kotlin.String | path_nullable
val queryDefault : kotlin.String = queryDefault_example // kotlin.String | query default
val headerDefault : kotlin.String = headerDefault_example // kotlin.String | header default
val cookieDefault : kotlin.String = cookieDefault_example // kotlin.String | cookie default
val queryNullable : kotlin.String = queryNullable_example // kotlin.String | query nullable
val headerNullable : kotlin.String = headerNullable_example // kotlin.String | header nullable
val cookieNullable : kotlin.String = cookieNullable_example // kotlin.String | cookie_nullable
val dollarQueryDollarDollarSign : kotlin.String = dollarQueryDollarDollarSign_example // kotlin.String | query parameter with dollar sign
try {
    apiInstance.findPetsByStatus(pathDefault, pathNullable, queryDefault, headerDefault, cookieDefault, queryNullable, headerNullable, cookieNullable, dollarQueryDollarDollarSign)
} catch (e: ClientException) {
    println("4xx response calling DefaultApi#findPetsByStatus")
    e.printStackTrace()
} catch (e: ServerException) {
    println("5xx response calling DefaultApi#findPetsByStatus")
    e.printStackTrace()
}

Parameters

Name Type Description Notes
pathDefault kotlin.String path default
pathNullable kotlin.String path_nullable
queryDefault kotlin.String query default [optional] [default to "available"]
headerDefault kotlin.String header default [optional] [default to "available"]
cookieDefault kotlin.String cookie default [optional] [default to "available"]
queryNullable kotlin.String query nullable [optional]
headerNullable kotlin.String header nullable [optional]
cookieNullable kotlin.String cookie_nullable [optional]
dollarQueryDollarDollarSign kotlin.String query parameter with dollar sign [optional]

Return type

null (empty response body)

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined