forked from loafle/openapi-generator-original
Add test cases to cover different collection formats (#3640)
* add test cases to cover different collection format * add space params to retrofit 1.x * add space params to retrofit 2.x * rename url to localVarUrl * fix exception in haskell servant
This commit is contained in:
@@ -17,6 +17,7 @@ Method | HTTP request | Description
|
||||
[**testGroupParameters**](FakeApi.md#testGroupParameters) | **DELETE** /fake | Fake endpoint to test group parameters (optional)
|
||||
[**testInlineAdditionalProperties**](FakeApi.md#testInlineAdditionalProperties) | **POST** /fake/inline-additionalProperties | test inline additionalProperties
|
||||
[**testJsonFormData**](FakeApi.md#testJsonFormData) | **GET** /fake/jsonFormData | test json serialization of form data
|
||||
[**testQueryParameterCollectionFormat**](FakeApi.md#testQueryParameterCollectionFormat) | **PUT** /fake/test-query-paramters |
|
||||
|
||||
|
||||
|
||||
@@ -796,3 +797,66 @@ No authorization required
|
||||
[[Back to Model list]](../../README.md#documentation-for-models)
|
||||
[[Back to README]](../../README.md)
|
||||
|
||||
|
||||
## testQueryParameterCollectionFormat
|
||||
|
||||
> testQueryParameterCollectionFormat($pipe, $ioutil, $http, $url, $context)
|
||||
|
||||
|
||||
|
||||
To test the collection format in query parameters
|
||||
|
||||
### Example
|
||||
|
||||
```php
|
||||
<?php
|
||||
require_once(__DIR__ . '/vendor/autoload.php');
|
||||
|
||||
|
||||
$apiInstance = new OpenAPI\Client\Api\FakeApi(
|
||||
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
|
||||
// This is optional, `GuzzleHttp\Client` will be used as default.
|
||||
new GuzzleHttp\Client()
|
||||
);
|
||||
$pipe = array('pipe_example'); // string[] |
|
||||
$ioutil = array('ioutil_example'); // string[] |
|
||||
$http = array('http_example'); // string[] |
|
||||
$url = array('url_example'); // string[] |
|
||||
$context = array('context_example'); // string[] |
|
||||
|
||||
try {
|
||||
$apiInstance->testQueryParameterCollectionFormat($pipe, $ioutil, $http, $url, $context);
|
||||
} catch (Exception $e) {
|
||||
echo 'Exception when calling FakeApi->testQueryParameterCollectionFormat: ', $e->getMessage(), PHP_EOL;
|
||||
}
|
||||
?>
|
||||
```
|
||||
|
||||
### Parameters
|
||||
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**pipe** | [**string[]**](../Model/string.md)| |
|
||||
**ioutil** | [**string[]**](../Model/string.md)| |
|
||||
**http** | [**string[]**](../Model/string.md)| |
|
||||
**url** | [**string[]**](../Model/string.md)| |
|
||||
**context** | [**string[]**](../Model/string.md)| |
|
||||
|
||||
### Return type
|
||||
|
||||
void (empty response body)
|
||||
|
||||
### Authorization
|
||||
|
||||
No authorization required
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: Not defined
|
||||
- **Accept**: Not defined
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints)
|
||||
[[Back to Model list]](../../README.md#documentation-for-models)
|
||||
[[Back to README]](../../README.md)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user