forked from loafle/openapi-generator-original
[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
This commit is contained in:
@@ -0,0 +1,71 @@
|
||||
# DefaultApi
|
||||
|
||||
All URIs are relative to *http://localhost*
|
||||
|
||||
Method | HTTP request | Description
|
||||
------------- | ------------- | -------------
|
||||
[**findPetsByStatus**](DefaultApi.md#findPetsByStatus) | **GET** /test/parameters/{path_default}/{path_nullable} | Finds Pets by status
|
||||
|
||||
|
||||
<a id="findPetsByStatus"></a>
|
||||
# **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
|
||||
```kotlin
|
||||
// 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
|
||||
|
||||
Reference in New Issue
Block a user