mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-07-02 05:30:51 +00:00
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:
parent
286cdfdfa2
commit
c3535cf9ca
@ -1065,13 +1065,14 @@ public class HaskellHttpClientCodegen extends DefaultCodegen implements CodegenC
|
||||
case "tsv":
|
||||
return "TabSeparated";
|
||||
case "ssv":
|
||||
case "space":
|
||||
return "SpaceSeparated";
|
||||
case "pipes":
|
||||
return "PipeSeparated";
|
||||
case "multi":
|
||||
return "MultiParamArray";
|
||||
default:
|
||||
throw new UnsupportedOperationException();
|
||||
throw new UnsupportedOperationException(collectionFormat + " (collection format) not supported");
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -549,6 +549,7 @@ public class HaskellServantCodegen extends DefaultCodegen implements CodegenConf
|
||||
return "(QueryList 'CommaSeparated (" + type + "))";
|
||||
case "tsv":
|
||||
return "(QueryList 'TabSeparated (" + type + "))";
|
||||
case "space":
|
||||
case "ssv":
|
||||
return "(QueryList 'SpaceSeparated (" + type + "))";
|
||||
case "pipes":
|
||||
@ -556,7 +557,7 @@ public class HaskellServantCodegen extends DefaultCodegen implements CodegenConf
|
||||
case "multi":
|
||||
return "(QueryList 'MultiParamArray (" + type + "))";
|
||||
default:
|
||||
throw new UnsupportedOperationException();
|
||||
throw new UnsupportedOperationException(collectionFormat + " (collection format) not supported");
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -104,8 +104,8 @@ public class {{classname}} {
|
||||
}
|
||||
}{{/queryParams}}{{/hasQueryParams}}
|
||||
|
||||
String url = uriBuilder{{#hasPathParams}}.buildFromMap(uriVariables).toString();{{/hasPathParams}}{{^hasPathParams}}.build().toString();{{/hasPathParams}}
|
||||
GenericUrl genericUrl = new GenericUrl(url);
|
||||
String localVarUrl = uriBuilder{{#hasPathParams}}.buildFromMap(uriVariables).toString();{{/hasPathParams}}{{^hasPathParams}}.build().toString();{{/hasPathParams}}
|
||||
GenericUrl genericUrl = new GenericUrl(localVarUrl);
|
||||
|
||||
HttpContent content = {{#isBodyAllowed}}apiClient.new JacksonJsonHttpContent({{#bodyParam}}{{paramName}}{{/bodyParam}}{{^bodyParam}}null{{/bodyParam}}){{/isBodyAllowed}}{{^isBodyAllowed}}null{{/isBodyAllowed}};
|
||||
return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.{{httpMethod}}, genericUrl, content).execute();
|
||||
@ -135,8 +135,8 @@ public class {{classname}} {
|
||||
}
|
||||
}{{/queryParams}}{{/hasQueryParams}}
|
||||
|
||||
String url = uriBuilder{{#hasPathParams}}.buildFromMap(uriVariables).toString();{{/hasPathParams}}{{^hasPathParams}}.build().toString();{{/hasPathParams}}
|
||||
GenericUrl genericUrl = new GenericUrl(url);
|
||||
String localVarUrl = uriBuilder{{#hasPathParams}}.buildFromMap(uriVariables).toString();{{/hasPathParams}}{{^hasPathParams}}.build().toString();{{/hasPathParams}}
|
||||
GenericUrl genericUrl = new GenericUrl(localVarUrl);
|
||||
|
||||
HttpContent content = {{#bodyParam}}{{paramName}} == null ?
|
||||
apiClient.new JacksonJsonHttpContent(null) :
|
||||
@ -176,8 +176,8 @@ public class {{classname}} {
|
||||
}
|
||||
}
|
||||
|
||||
String url = uriBuilder{{#hasPathParams}}.buildFromMap(uriVariables).toString();{{/hasPathParams}}{{^hasPathParams}}.build().toString();{{/hasPathParams}}
|
||||
GenericUrl genericUrl = new GenericUrl(url);
|
||||
String localVarUrl = uriBuilder{{#hasPathParams}}.buildFromMap(uriVariables).toString();{{/hasPathParams}}{{^hasPathParams}}.build().toString();{{/hasPathParams}}
|
||||
GenericUrl genericUrl = new GenericUrl(localVarUrl);
|
||||
|
||||
HttpContent content = {{#isBodyAllowed}}apiClient.new JacksonJsonHttpContent({{#bodyParam}}{{paramName}}{{/bodyParam}}{{^bodyParam}}null{{/bodyParam}}){{/isBodyAllowed}}{{^isBodyAllowed}}null{{/isBodyAllowed}};
|
||||
return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.{{httpMethod}}, genericUrl, content).execute();
|
||||
|
@ -35,6 +35,10 @@ public class CollectionFormats {
|
||||
|
||||
}
|
||||
|
||||
public static class SPACEParams extends SSVParams {
|
||||
|
||||
}
|
||||
|
||||
public static class SSVParams extends CSVParams {
|
||||
|
||||
public SSVParams() {
|
||||
|
@ -35,6 +35,10 @@ public class CollectionFormats {
|
||||
|
||||
}
|
||||
|
||||
public static class SPACEParams extends SSVParams {
|
||||
|
||||
}
|
||||
|
||||
public static class SSVParams extends CSVParams {
|
||||
|
||||
public SSVParams() {
|
||||
|
@ -1041,6 +1041,53 @@ paths:
|
||||
responses:
|
||||
'200':
|
||||
description: Success
|
||||
/fake/test-query-paramters:
|
||||
put:
|
||||
tags:
|
||||
- fake
|
||||
description: 'To test the collection format in query parameters'
|
||||
operationId: testQueryParameterCollectionFormat
|
||||
parameters:
|
||||
- name: pipe
|
||||
in: query
|
||||
required: true
|
||||
type: array
|
||||
items:
|
||||
type: string
|
||||
collectionFormat: pipe
|
||||
- name: ioutil
|
||||
in: query
|
||||
required: true
|
||||
type: array
|
||||
items:
|
||||
type: string
|
||||
collectionFormat: tsv
|
||||
- name: http
|
||||
in: query
|
||||
required: true
|
||||
type: array
|
||||
items:
|
||||
type: string
|
||||
collectionFormat: ssv
|
||||
- name: url
|
||||
in: query
|
||||
required: true
|
||||
type: array
|
||||
items:
|
||||
type: string
|
||||
collectionFormat: csv
|
||||
- name: context
|
||||
in: query
|
||||
required: true
|
||||
type: array
|
||||
items:
|
||||
type: string
|
||||
collectionFormat: multi
|
||||
consumes:
|
||||
- application/json
|
||||
responses:
|
||||
'200':
|
||||
description: Success
|
||||
'/fake/{petId}/uploadImageWithRequiredFile':
|
||||
post:
|
||||
tags:
|
||||
|
@ -989,6 +989,57 @@ paths:
|
||||
schema:
|
||||
$ref: '#/components/schemas/FileSchemaTestClass'
|
||||
required: true
|
||||
/fake/test-query-paramters:
|
||||
put:
|
||||
tags:
|
||||
- fake
|
||||
description: To test the collection format in query parameters
|
||||
operationId: testQueryParameterCollectionFormat
|
||||
parameters:
|
||||
- name: pipe
|
||||
in: query
|
||||
required: true
|
||||
schema:
|
||||
type: array
|
||||
items:
|
||||
type: string
|
||||
- name: ioutil
|
||||
in: query
|
||||
required: true
|
||||
style: form
|
||||
explode: false
|
||||
schema:
|
||||
type: array
|
||||
items:
|
||||
type: string
|
||||
- name: http
|
||||
in: query
|
||||
required: true
|
||||
style: spaceDelimited
|
||||
schema:
|
||||
type: array
|
||||
items:
|
||||
type: string
|
||||
- name: url
|
||||
in: query
|
||||
required: true
|
||||
style: form
|
||||
explode: false
|
||||
schema:
|
||||
type: array
|
||||
items:
|
||||
type: string
|
||||
- name: context
|
||||
in: query
|
||||
required: true
|
||||
explode: true
|
||||
schema:
|
||||
type: array
|
||||
items:
|
||||
type: string
|
||||
responses:
|
||||
"200":
|
||||
description: Success
|
||||
'/fake/{petId}/uploadImageWithRequiredFile':
|
||||
post:
|
||||
tags:
|
||||
|
@ -104,6 +104,7 @@ Class | Method | HTTP request | Description
|
||||
*FakeApi* | [**TestGroupParameters**](docs/FakeApi.md#testgroupparameters) | **DELETE** /fake | Fake endpoint to test group parameters (optional)
|
||||
*FakeApi* | [**TestInlineAdditionalProperties**](docs/FakeApi.md#testinlineadditionalproperties) | **POST** /fake/inline-additionalProperties | test inline additionalProperties
|
||||
*FakeApi* | [**TestJsonFormData**](docs/FakeApi.md#testjsonformdata) | **GET** /fake/jsonFormData | test json serialization of form data
|
||||
*FakeApi* | [**TestQueryParameterCollectionFormat**](docs/FakeApi.md#testqueryparametercollectionformat) | **PUT** /fake/test-query-paramters |
|
||||
*FakeClassnameTags123Api* | [**TestClassname**](docs/FakeClassnameTags123Api.md#testclassname) | **PATCH** /fake_classname_test | To test class name in snake case
|
||||
*PetApi* | [**AddPet**](docs/PetApi.md#addpet) | **POST** /pet | Add a new pet to the store
|
||||
*PetApi* | [**DeletePet**](docs/PetApi.md#deletepet) | **DELETE** /pet/{petId} | Deletes a pet
|
||||
|
@ -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 |
|
||||
|
||||
|
||||
<a name="createxmlitem"></a>
|
||||
@ -956,3 +957,78 @@ No authorization required
|
||||
|
||||
[[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)
|
||||
|
||||
<a name="testqueryparametercollectionformat"></a>
|
||||
# **TestQueryParameterCollectionFormat**
|
||||
> void TestQueryParameterCollectionFormat (List<string> pipe, List<string> ioutil, List<string> http, List<string> url, List<string> context)
|
||||
|
||||
|
||||
|
||||
To test the collection format in query parameters
|
||||
|
||||
### Example
|
||||
```csharp
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
using Org.OpenAPITools.Api;
|
||||
using Org.OpenAPITools.Client;
|
||||
using Org.OpenAPITools.Model;
|
||||
|
||||
namespace Example
|
||||
{
|
||||
public class TestQueryParameterCollectionFormatExample
|
||||
{
|
||||
public static void Main()
|
||||
{
|
||||
Configuration.Default.BasePath = "http://petstore.swagger.io:80/v2";
|
||||
var apiInstance = new FakeApi(Configuration.Default);
|
||||
var pipe = new List<string>(); // List<string> |
|
||||
var ioutil = new List<string>(); // List<string> |
|
||||
var http = new List<string>(); // List<string> |
|
||||
var url = new List<string>(); // List<string> |
|
||||
var context = new List<string>(); // List<string> |
|
||||
|
||||
try
|
||||
{
|
||||
apiInstance.TestQueryParameterCollectionFormat(pipe, ioutil, http, url, context);
|
||||
}
|
||||
catch (ApiException e)
|
||||
{
|
||||
Debug.Print("Exception when calling FakeApi.TestQueryParameterCollectionFormat: " + e.Message );
|
||||
Debug.Print("Status Code: "+ e.ErrorCode);
|
||||
Debug.Print(e.StackTrace);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
### Parameters
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**pipe** | [**List<string>**](string.md)| |
|
||||
**ioutil** | [**List<string>**](string.md)| |
|
||||
**http** | [**List<string>**](string.md)| |
|
||||
**url** | [**List<string>**](string.md)| |
|
||||
**context** | [**List<string>**](string.md)| |
|
||||
|
||||
### Return type
|
||||
|
||||
void (empty response body)
|
||||
|
||||
### Authorization
|
||||
|
||||
No authorization required
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: Not defined
|
||||
- **Accept**: Not defined
|
||||
|
||||
### HTTP response details
|
||||
| Status code | Description | Response headers |
|
||||
|-------------|-------------|------------------|
|
||||
| **200** | Success | - |
|
||||
|
||||
[[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)
|
||||
|
||||
|
@ -354,6 +354,35 @@ namespace Org.OpenAPITools.Api
|
||||
/// <param name="param2">field2</param>
|
||||
/// <returns>ApiResponse of Object(void)</returns>
|
||||
ApiResponse<Object> TestJsonFormDataWithHttpInfo (string param, string param2);
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// To test the collection format in query parameters
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="pipe"></param>
|
||||
/// <param name="ioutil"></param>
|
||||
/// <param name="http"></param>
|
||||
/// <param name="url"></param>
|
||||
/// <param name="context"></param>
|
||||
/// <returns></returns>
|
||||
void TestQueryParameterCollectionFormat (List<string> pipe, List<string> ioutil, List<string> http, List<string> url, List<string> context);
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// To test the collection format in query parameters
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="pipe"></param>
|
||||
/// <param name="ioutil"></param>
|
||||
/// <param name="http"></param>
|
||||
/// <param name="url"></param>
|
||||
/// <param name="context"></param>
|
||||
/// <returns>ApiResponse of Object(void)</returns>
|
||||
ApiResponse<Object> TestQueryParameterCollectionFormatWithHttpInfo (List<string> pipe, List<string> ioutil, List<string> http, List<string> url, List<string> context);
|
||||
#endregion Synchronous Operations
|
||||
}
|
||||
|
||||
@ -690,6 +719,35 @@ namespace Org.OpenAPITools.Api
|
||||
/// <param name="param2">field2</param>
|
||||
/// <returns>Task of ApiResponse</returns>
|
||||
System.Threading.Tasks.Task<ApiResponse<Object>> TestJsonFormDataAsyncWithHttpInfo (string param, string param2);
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// To test the collection format in query parameters
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="pipe"></param>
|
||||
/// <param name="ioutil"></param>
|
||||
/// <param name="http"></param>
|
||||
/// <param name="url"></param>
|
||||
/// <param name="context"></param>
|
||||
/// <returns>Task of void</returns>
|
||||
System.Threading.Tasks.Task TestQueryParameterCollectionFormatAsync (List<string> pipe, List<string> ioutil, List<string> http, List<string> url, List<string> context);
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// To test the collection format in query parameters
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="pipe"></param>
|
||||
/// <param name="ioutil"></param>
|
||||
/// <param name="http"></param>
|
||||
/// <param name="url"></param>
|
||||
/// <param name="context"></param>
|
||||
/// <returns>Task of ApiResponse</returns>
|
||||
System.Threading.Tasks.Task<ApiResponse<Object>> TestQueryParameterCollectionFormatAsyncWithHttpInfo (List<string> pipe, List<string> ioutil, List<string> http, List<string> url, List<string> context);
|
||||
#endregion Asynchronous Operations
|
||||
}
|
||||
|
||||
@ -2754,5 +2812,261 @@ namespace Org.OpenAPITools.Api
|
||||
return response;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To test the collection format in query parameters
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="pipe"></param>
|
||||
/// <param name="ioutil"></param>
|
||||
/// <param name="http"></param>
|
||||
/// <param name="url"></param>
|
||||
/// <param name="context"></param>
|
||||
/// <returns></returns>
|
||||
public void TestQueryParameterCollectionFormat (List<string> pipe, List<string> ioutil, List<string> http, List<string> url, List<string> context)
|
||||
{
|
||||
TestQueryParameterCollectionFormatWithHttpInfo(pipe, ioutil, http, url, context);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To test the collection format in query parameters
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="pipe"></param>
|
||||
/// <param name="ioutil"></param>
|
||||
/// <param name="http"></param>
|
||||
/// <param name="url"></param>
|
||||
/// <param name="context"></param>
|
||||
/// <returns>ApiResponse of Object(void)</returns>
|
||||
public Org.OpenAPITools.Client.ApiResponse<Object> TestQueryParameterCollectionFormatWithHttpInfo (List<string> pipe, List<string> ioutil, List<string> http, List<string> url, List<string> context)
|
||||
{
|
||||
// verify the required parameter 'pipe' is set
|
||||
if (pipe == null)
|
||||
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'pipe' when calling FakeApi->TestQueryParameterCollectionFormat");
|
||||
|
||||
// verify the required parameter 'ioutil' is set
|
||||
if (ioutil == null)
|
||||
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'ioutil' when calling FakeApi->TestQueryParameterCollectionFormat");
|
||||
|
||||
// verify the required parameter 'http' is set
|
||||
if (http == null)
|
||||
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'http' when calling FakeApi->TestQueryParameterCollectionFormat");
|
||||
|
||||
// verify the required parameter 'url' is set
|
||||
if (url == null)
|
||||
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'url' when calling FakeApi->TestQueryParameterCollectionFormat");
|
||||
|
||||
// verify the required parameter 'context' is set
|
||||
if (context == null)
|
||||
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'context' when calling FakeApi->TestQueryParameterCollectionFormat");
|
||||
|
||||
Org.OpenAPITools.Client.RequestOptions requestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
|
||||
String[] @contentTypes = new String[] {
|
||||
};
|
||||
|
||||
// to determine the Accept header
|
||||
String[] @accepts = new String[] {
|
||||
};
|
||||
|
||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(@contentTypes);
|
||||
if (localVarContentType != null) requestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
|
||||
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(@accepts);
|
||||
if (localVarAccept != null) requestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
|
||||
if (pipe != null)
|
||||
{
|
||||
foreach (var kvp in Org.OpenAPITools.Client.ClientUtils.ParameterToMultiMap("csv", "pipe", pipe))
|
||||
{
|
||||
foreach (var value in kvp.Value)
|
||||
{
|
||||
requestOptions.QueryParameters.Add(kvp.Key, value);
|
||||
}
|
||||
}
|
||||
}
|
||||
if (ioutil != null)
|
||||
{
|
||||
foreach (var kvp in Org.OpenAPITools.Client.ClientUtils.ParameterToMultiMap("csv", "ioutil", ioutil))
|
||||
{
|
||||
foreach (var value in kvp.Value)
|
||||
{
|
||||
requestOptions.QueryParameters.Add(kvp.Key, value);
|
||||
}
|
||||
}
|
||||
}
|
||||
if (http != null)
|
||||
{
|
||||
foreach (var kvp in Org.OpenAPITools.Client.ClientUtils.ParameterToMultiMap("space", "http", http))
|
||||
{
|
||||
foreach (var value in kvp.Value)
|
||||
{
|
||||
requestOptions.QueryParameters.Add(kvp.Key, value);
|
||||
}
|
||||
}
|
||||
}
|
||||
if (url != null)
|
||||
{
|
||||
foreach (var kvp in Org.OpenAPITools.Client.ClientUtils.ParameterToMultiMap("csv", "url", url))
|
||||
{
|
||||
foreach (var value in kvp.Value)
|
||||
{
|
||||
requestOptions.QueryParameters.Add(kvp.Key, value);
|
||||
}
|
||||
}
|
||||
}
|
||||
if (context != null)
|
||||
{
|
||||
foreach (var kvp in Org.OpenAPITools.Client.ClientUtils.ParameterToMultiMap("multi", "context", context))
|
||||
{
|
||||
foreach (var value in kvp.Value)
|
||||
{
|
||||
requestOptions.QueryParameters.Add(kvp.Key, value);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// make the HTTP request
|
||||
|
||||
var response = this.Client.Put<Object>("/fake/test-query-paramters", requestOptions, this.Configuration);
|
||||
|
||||
if (this.ExceptionFactory != null)
|
||||
{
|
||||
Exception exception = this.ExceptionFactory("TestQueryParameterCollectionFormat", response);
|
||||
if (exception != null) throw exception;
|
||||
}
|
||||
|
||||
return response;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To test the collection format in query parameters
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="pipe"></param>
|
||||
/// <param name="ioutil"></param>
|
||||
/// <param name="http"></param>
|
||||
/// <param name="url"></param>
|
||||
/// <param name="context"></param>
|
||||
/// <returns>Task of void</returns>
|
||||
public async System.Threading.Tasks.Task TestQueryParameterCollectionFormatAsync (List<string> pipe, List<string> ioutil, List<string> http, List<string> url, List<string> context)
|
||||
{
|
||||
await TestQueryParameterCollectionFormatAsyncWithHttpInfo(pipe, ioutil, http, url, context);
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To test the collection format in query parameters
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="pipe"></param>
|
||||
/// <param name="ioutil"></param>
|
||||
/// <param name="http"></param>
|
||||
/// <param name="url"></param>
|
||||
/// <param name="context"></param>
|
||||
/// <returns>Task of ApiResponse</returns>
|
||||
public async System.Threading.Tasks.Task<Org.OpenAPITools.Client.ApiResponse<Object>> TestQueryParameterCollectionFormatAsyncWithHttpInfo (List<string> pipe, List<string> ioutil, List<string> http, List<string> url, List<string> context)
|
||||
{
|
||||
// verify the required parameter 'pipe' is set
|
||||
if (pipe == null)
|
||||
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'pipe' when calling FakeApi->TestQueryParameterCollectionFormat");
|
||||
|
||||
// verify the required parameter 'ioutil' is set
|
||||
if (ioutil == null)
|
||||
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'ioutil' when calling FakeApi->TestQueryParameterCollectionFormat");
|
||||
|
||||
// verify the required parameter 'http' is set
|
||||
if (http == null)
|
||||
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'http' when calling FakeApi->TestQueryParameterCollectionFormat");
|
||||
|
||||
// verify the required parameter 'url' is set
|
||||
if (url == null)
|
||||
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'url' when calling FakeApi->TestQueryParameterCollectionFormat");
|
||||
|
||||
// verify the required parameter 'context' is set
|
||||
if (context == null)
|
||||
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'context' when calling FakeApi->TestQueryParameterCollectionFormat");
|
||||
|
||||
|
||||
Org.OpenAPITools.Client.RequestOptions requestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
|
||||
String[] @contentTypes = new String[] {
|
||||
};
|
||||
|
||||
// to determine the Accept header
|
||||
String[] @accepts = new String[] {
|
||||
};
|
||||
|
||||
foreach (var contentType in @contentTypes)
|
||||
requestOptions.HeaderParameters.Add("Content-Type", contentType);
|
||||
|
||||
foreach (var accept in @accepts)
|
||||
requestOptions.HeaderParameters.Add("Accept", accept);
|
||||
|
||||
if (pipe != null)
|
||||
{
|
||||
foreach (var kvp in Org.OpenAPITools.Client.ClientUtils.ParameterToMultiMap("csv", "pipe", pipe))
|
||||
{
|
||||
foreach (var value in kvp.Value)
|
||||
{
|
||||
requestOptions.QueryParameters.Add(kvp.Key, value);
|
||||
}
|
||||
}
|
||||
}
|
||||
if (ioutil != null)
|
||||
{
|
||||
foreach (var kvp in Org.OpenAPITools.Client.ClientUtils.ParameterToMultiMap("csv", "ioutil", ioutil))
|
||||
{
|
||||
foreach (var value in kvp.Value)
|
||||
{
|
||||
requestOptions.QueryParameters.Add(kvp.Key, value);
|
||||
}
|
||||
}
|
||||
}
|
||||
if (http != null)
|
||||
{
|
||||
foreach (var kvp in Org.OpenAPITools.Client.ClientUtils.ParameterToMultiMap("space", "http", http))
|
||||
{
|
||||
foreach (var value in kvp.Value)
|
||||
{
|
||||
requestOptions.QueryParameters.Add(kvp.Key, value);
|
||||
}
|
||||
}
|
||||
}
|
||||
if (url != null)
|
||||
{
|
||||
foreach (var kvp in Org.OpenAPITools.Client.ClientUtils.ParameterToMultiMap("csv", "url", url))
|
||||
{
|
||||
foreach (var value in kvp.Value)
|
||||
{
|
||||
requestOptions.QueryParameters.Add(kvp.Key, value);
|
||||
}
|
||||
}
|
||||
}
|
||||
if (context != null)
|
||||
{
|
||||
foreach (var kvp in Org.OpenAPITools.Client.ClientUtils.ParameterToMultiMap("multi", "context", context))
|
||||
{
|
||||
foreach (var value in kvp.Value)
|
||||
{
|
||||
requestOptions.QueryParameters.Add(kvp.Key, value);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// make the HTTP request
|
||||
|
||||
var response = await this.AsynchronousClient.PutAsync<Object>("/fake/test-query-paramters", requestOptions, this.Configuration);
|
||||
|
||||
if (this.ExceptionFactory != null)
|
||||
{
|
||||
Exception exception = this.ExceptionFactory("TestQueryParameterCollectionFormat", response);
|
||||
if (exception != null) throw exception;
|
||||
}
|
||||
|
||||
return response;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -116,6 +116,7 @@ Class | Method | HTTP request | Description
|
||||
*FakeApi* | [**TestGroupParameters**](docs/FakeApi.md#testgroupparameters) | **DELETE** /fake | Fake endpoint to test group parameters (optional)
|
||||
*FakeApi* | [**TestInlineAdditionalProperties**](docs/FakeApi.md#testinlineadditionalproperties) | **POST** /fake/inline-additionalProperties | test inline additionalProperties
|
||||
*FakeApi* | [**TestJsonFormData**](docs/FakeApi.md#testjsonformdata) | **GET** /fake/jsonFormData | test json serialization of form data
|
||||
*FakeApi* | [**TestQueryParameterCollectionFormat**](docs/FakeApi.md#testqueryparametercollectionformat) | **PUT** /fake/test-query-paramters |
|
||||
*FakeClassnameTags123Api* | [**TestClassname**](docs/FakeClassnameTags123Api.md#testclassname) | **PATCH** /fake_classname_test | To test class name in snake case
|
||||
*PetApi* | [**AddPet**](docs/PetApi.md#addpet) | **POST** /pet | Add a new pet to the store
|
||||
*PetApi* | [**DeletePet**](docs/PetApi.md#deletepet) | **DELETE** /pet/{petId} | Deletes a pet
|
||||
|
@ -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 |
|
||||
|
||||
|
||||
<a name="createxmlitem"></a>
|
||||
@ -956,3 +957,78 @@ No authorization required
|
||||
|
||||
[[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)
|
||||
|
||||
<a name="testqueryparametercollectionformat"></a>
|
||||
# **TestQueryParameterCollectionFormat**
|
||||
> void TestQueryParameterCollectionFormat (List<string> pipe, List<string> ioutil, List<string> http, List<string> url, List<string> context)
|
||||
|
||||
|
||||
|
||||
To test the collection format in query parameters
|
||||
|
||||
### Example
|
||||
```csharp
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
using Org.OpenAPITools.Api;
|
||||
using Org.OpenAPITools.Client;
|
||||
using Org.OpenAPITools.Model;
|
||||
|
||||
namespace Example
|
||||
{
|
||||
public class TestQueryParameterCollectionFormatExample
|
||||
{
|
||||
public static void Main()
|
||||
{
|
||||
Configuration.Default.BasePath = "http://petstore.swagger.io:80/v2";
|
||||
var apiInstance = new FakeApi(Configuration.Default);
|
||||
var pipe = new List<string>(); // List<string> |
|
||||
var ioutil = new List<string>(); // List<string> |
|
||||
var http = new List<string>(); // List<string> |
|
||||
var url = new List<string>(); // List<string> |
|
||||
var context = new List<string>(); // List<string> |
|
||||
|
||||
try
|
||||
{
|
||||
apiInstance.TestQueryParameterCollectionFormat(pipe, ioutil, http, url, context);
|
||||
}
|
||||
catch (ApiException e)
|
||||
{
|
||||
Debug.Print("Exception when calling FakeApi.TestQueryParameterCollectionFormat: " + e.Message );
|
||||
Debug.Print("Status Code: "+ e.ErrorCode);
|
||||
Debug.Print(e.StackTrace);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
### Parameters
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**pipe** | [**List<string>**](string.md)| |
|
||||
**ioutil** | [**List<string>**](string.md)| |
|
||||
**http** | [**List<string>**](string.md)| |
|
||||
**url** | [**List<string>**](string.md)| |
|
||||
**context** | [**List<string>**](string.md)| |
|
||||
|
||||
### Return type
|
||||
|
||||
void (empty response body)
|
||||
|
||||
### Authorization
|
||||
|
||||
No authorization required
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: Not defined
|
||||
- **Accept**: Not defined
|
||||
|
||||
### HTTP response details
|
||||
| Status code | Description | Response headers |
|
||||
|-------------|-------------|------------------|
|
||||
| **200** | Success | - |
|
||||
|
||||
[[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)
|
||||
|
||||
|
@ -354,6 +354,35 @@ namespace Org.OpenAPITools.Api
|
||||
/// <param name="param2">field2</param>
|
||||
/// <returns>ApiResponse of Object(void)</returns>
|
||||
ApiResponse<Object> TestJsonFormDataWithHttpInfo (string param, string param2);
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// To test the collection format in query parameters
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="pipe"></param>
|
||||
/// <param name="ioutil"></param>
|
||||
/// <param name="http"></param>
|
||||
/// <param name="url"></param>
|
||||
/// <param name="context"></param>
|
||||
/// <returns></returns>
|
||||
void TestQueryParameterCollectionFormat (List<string> pipe, List<string> ioutil, List<string> http, List<string> url, List<string> context);
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// To test the collection format in query parameters
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="pipe"></param>
|
||||
/// <param name="ioutil"></param>
|
||||
/// <param name="http"></param>
|
||||
/// <param name="url"></param>
|
||||
/// <param name="context"></param>
|
||||
/// <returns>ApiResponse of Object(void)</returns>
|
||||
ApiResponse<Object> TestQueryParameterCollectionFormatWithHttpInfo (List<string> pipe, List<string> ioutil, List<string> http, List<string> url, List<string> context);
|
||||
#endregion Synchronous Operations
|
||||
}
|
||||
|
||||
@ -690,6 +719,35 @@ namespace Org.OpenAPITools.Api
|
||||
/// <param name="param2">field2</param>
|
||||
/// <returns>Task of ApiResponse</returns>
|
||||
System.Threading.Tasks.Task<ApiResponse<Object>> TestJsonFormDataAsyncWithHttpInfo (string param, string param2);
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// To test the collection format in query parameters
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="pipe"></param>
|
||||
/// <param name="ioutil"></param>
|
||||
/// <param name="http"></param>
|
||||
/// <param name="url"></param>
|
||||
/// <param name="context"></param>
|
||||
/// <returns>Task of void</returns>
|
||||
System.Threading.Tasks.Task TestQueryParameterCollectionFormatAsync (List<string> pipe, List<string> ioutil, List<string> http, List<string> url, List<string> context);
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// To test the collection format in query parameters
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="pipe"></param>
|
||||
/// <param name="ioutil"></param>
|
||||
/// <param name="http"></param>
|
||||
/// <param name="url"></param>
|
||||
/// <param name="context"></param>
|
||||
/// <returns>Task of ApiResponse</returns>
|
||||
System.Threading.Tasks.Task<ApiResponse<Object>> TestQueryParameterCollectionFormatAsyncWithHttpInfo (List<string> pipe, List<string> ioutil, List<string> http, List<string> url, List<string> context);
|
||||
#endregion Asynchronous Operations
|
||||
}
|
||||
|
||||
@ -2754,5 +2812,261 @@ namespace Org.OpenAPITools.Api
|
||||
return response;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To test the collection format in query parameters
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="pipe"></param>
|
||||
/// <param name="ioutil"></param>
|
||||
/// <param name="http"></param>
|
||||
/// <param name="url"></param>
|
||||
/// <param name="context"></param>
|
||||
/// <returns></returns>
|
||||
public void TestQueryParameterCollectionFormat (List<string> pipe, List<string> ioutil, List<string> http, List<string> url, List<string> context)
|
||||
{
|
||||
TestQueryParameterCollectionFormatWithHttpInfo(pipe, ioutil, http, url, context);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To test the collection format in query parameters
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="pipe"></param>
|
||||
/// <param name="ioutil"></param>
|
||||
/// <param name="http"></param>
|
||||
/// <param name="url"></param>
|
||||
/// <param name="context"></param>
|
||||
/// <returns>ApiResponse of Object(void)</returns>
|
||||
public Org.OpenAPITools.Client.ApiResponse<Object> TestQueryParameterCollectionFormatWithHttpInfo (List<string> pipe, List<string> ioutil, List<string> http, List<string> url, List<string> context)
|
||||
{
|
||||
// verify the required parameter 'pipe' is set
|
||||
if (pipe == null)
|
||||
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'pipe' when calling FakeApi->TestQueryParameterCollectionFormat");
|
||||
|
||||
// verify the required parameter 'ioutil' is set
|
||||
if (ioutil == null)
|
||||
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'ioutil' when calling FakeApi->TestQueryParameterCollectionFormat");
|
||||
|
||||
// verify the required parameter 'http' is set
|
||||
if (http == null)
|
||||
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'http' when calling FakeApi->TestQueryParameterCollectionFormat");
|
||||
|
||||
// verify the required parameter 'url' is set
|
||||
if (url == null)
|
||||
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'url' when calling FakeApi->TestQueryParameterCollectionFormat");
|
||||
|
||||
// verify the required parameter 'context' is set
|
||||
if (context == null)
|
||||
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'context' when calling FakeApi->TestQueryParameterCollectionFormat");
|
||||
|
||||
Org.OpenAPITools.Client.RequestOptions requestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
|
||||
String[] @contentTypes = new String[] {
|
||||
};
|
||||
|
||||
// to determine the Accept header
|
||||
String[] @accepts = new String[] {
|
||||
};
|
||||
|
||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(@contentTypes);
|
||||
if (localVarContentType != null) requestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
|
||||
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(@accepts);
|
||||
if (localVarAccept != null) requestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
|
||||
if (pipe != null)
|
||||
{
|
||||
foreach (var kvp in Org.OpenAPITools.Client.ClientUtils.ParameterToMultiMap("csv", "pipe", pipe))
|
||||
{
|
||||
foreach (var value in kvp.Value)
|
||||
{
|
||||
requestOptions.QueryParameters.Add(kvp.Key, value);
|
||||
}
|
||||
}
|
||||
}
|
||||
if (ioutil != null)
|
||||
{
|
||||
foreach (var kvp in Org.OpenAPITools.Client.ClientUtils.ParameterToMultiMap("csv", "ioutil", ioutil))
|
||||
{
|
||||
foreach (var value in kvp.Value)
|
||||
{
|
||||
requestOptions.QueryParameters.Add(kvp.Key, value);
|
||||
}
|
||||
}
|
||||
}
|
||||
if (http != null)
|
||||
{
|
||||
foreach (var kvp in Org.OpenAPITools.Client.ClientUtils.ParameterToMultiMap("space", "http", http))
|
||||
{
|
||||
foreach (var value in kvp.Value)
|
||||
{
|
||||
requestOptions.QueryParameters.Add(kvp.Key, value);
|
||||
}
|
||||
}
|
||||
}
|
||||
if (url != null)
|
||||
{
|
||||
foreach (var kvp in Org.OpenAPITools.Client.ClientUtils.ParameterToMultiMap("csv", "url", url))
|
||||
{
|
||||
foreach (var value in kvp.Value)
|
||||
{
|
||||
requestOptions.QueryParameters.Add(kvp.Key, value);
|
||||
}
|
||||
}
|
||||
}
|
||||
if (context != null)
|
||||
{
|
||||
foreach (var kvp in Org.OpenAPITools.Client.ClientUtils.ParameterToMultiMap("multi", "context", context))
|
||||
{
|
||||
foreach (var value in kvp.Value)
|
||||
{
|
||||
requestOptions.QueryParameters.Add(kvp.Key, value);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// make the HTTP request
|
||||
|
||||
var response = this.Client.Put<Object>("/fake/test-query-paramters", requestOptions, this.Configuration);
|
||||
|
||||
if (this.ExceptionFactory != null)
|
||||
{
|
||||
Exception exception = this.ExceptionFactory("TestQueryParameterCollectionFormat", response);
|
||||
if (exception != null) throw exception;
|
||||
}
|
||||
|
||||
return response;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To test the collection format in query parameters
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="pipe"></param>
|
||||
/// <param name="ioutil"></param>
|
||||
/// <param name="http"></param>
|
||||
/// <param name="url"></param>
|
||||
/// <param name="context"></param>
|
||||
/// <returns>Task of void</returns>
|
||||
public async System.Threading.Tasks.Task TestQueryParameterCollectionFormatAsync (List<string> pipe, List<string> ioutil, List<string> http, List<string> url, List<string> context)
|
||||
{
|
||||
await TestQueryParameterCollectionFormatAsyncWithHttpInfo(pipe, ioutil, http, url, context);
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To test the collection format in query parameters
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="pipe"></param>
|
||||
/// <param name="ioutil"></param>
|
||||
/// <param name="http"></param>
|
||||
/// <param name="url"></param>
|
||||
/// <param name="context"></param>
|
||||
/// <returns>Task of ApiResponse</returns>
|
||||
public async System.Threading.Tasks.Task<Org.OpenAPITools.Client.ApiResponse<Object>> TestQueryParameterCollectionFormatAsyncWithHttpInfo (List<string> pipe, List<string> ioutil, List<string> http, List<string> url, List<string> context)
|
||||
{
|
||||
// verify the required parameter 'pipe' is set
|
||||
if (pipe == null)
|
||||
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'pipe' when calling FakeApi->TestQueryParameterCollectionFormat");
|
||||
|
||||
// verify the required parameter 'ioutil' is set
|
||||
if (ioutil == null)
|
||||
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'ioutil' when calling FakeApi->TestQueryParameterCollectionFormat");
|
||||
|
||||
// verify the required parameter 'http' is set
|
||||
if (http == null)
|
||||
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'http' when calling FakeApi->TestQueryParameterCollectionFormat");
|
||||
|
||||
// verify the required parameter 'url' is set
|
||||
if (url == null)
|
||||
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'url' when calling FakeApi->TestQueryParameterCollectionFormat");
|
||||
|
||||
// verify the required parameter 'context' is set
|
||||
if (context == null)
|
||||
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'context' when calling FakeApi->TestQueryParameterCollectionFormat");
|
||||
|
||||
|
||||
Org.OpenAPITools.Client.RequestOptions requestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
|
||||
String[] @contentTypes = new String[] {
|
||||
};
|
||||
|
||||
// to determine the Accept header
|
||||
String[] @accepts = new String[] {
|
||||
};
|
||||
|
||||
foreach (var contentType in @contentTypes)
|
||||
requestOptions.HeaderParameters.Add("Content-Type", contentType);
|
||||
|
||||
foreach (var accept in @accepts)
|
||||
requestOptions.HeaderParameters.Add("Accept", accept);
|
||||
|
||||
if (pipe != null)
|
||||
{
|
||||
foreach (var kvp in Org.OpenAPITools.Client.ClientUtils.ParameterToMultiMap("csv", "pipe", pipe))
|
||||
{
|
||||
foreach (var value in kvp.Value)
|
||||
{
|
||||
requestOptions.QueryParameters.Add(kvp.Key, value);
|
||||
}
|
||||
}
|
||||
}
|
||||
if (ioutil != null)
|
||||
{
|
||||
foreach (var kvp in Org.OpenAPITools.Client.ClientUtils.ParameterToMultiMap("csv", "ioutil", ioutil))
|
||||
{
|
||||
foreach (var value in kvp.Value)
|
||||
{
|
||||
requestOptions.QueryParameters.Add(kvp.Key, value);
|
||||
}
|
||||
}
|
||||
}
|
||||
if (http != null)
|
||||
{
|
||||
foreach (var kvp in Org.OpenAPITools.Client.ClientUtils.ParameterToMultiMap("space", "http", http))
|
||||
{
|
||||
foreach (var value in kvp.Value)
|
||||
{
|
||||
requestOptions.QueryParameters.Add(kvp.Key, value);
|
||||
}
|
||||
}
|
||||
}
|
||||
if (url != null)
|
||||
{
|
||||
foreach (var kvp in Org.OpenAPITools.Client.ClientUtils.ParameterToMultiMap("csv", "url", url))
|
||||
{
|
||||
foreach (var value in kvp.Value)
|
||||
{
|
||||
requestOptions.QueryParameters.Add(kvp.Key, value);
|
||||
}
|
||||
}
|
||||
}
|
||||
if (context != null)
|
||||
{
|
||||
foreach (var kvp in Org.OpenAPITools.Client.ClientUtils.ParameterToMultiMap("multi", "context", context))
|
||||
{
|
||||
foreach (var value in kvp.Value)
|
||||
{
|
||||
requestOptions.QueryParameters.Add(kvp.Key, value);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// make the HTTP request
|
||||
|
||||
var response = await this.AsynchronousClient.PutAsync<Object>("/fake/test-query-paramters", requestOptions, this.Configuration);
|
||||
|
||||
if (this.ExceptionFactory != null)
|
||||
{
|
||||
Exception exception = this.ExceptionFactory("TestQueryParameterCollectionFormat", response);
|
||||
if (exception != null) throw exception;
|
||||
}
|
||||
|
||||
return response;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -119,6 +119,7 @@ Class | Method | HTTP request | Description
|
||||
*FakeApi* | [**TestGroupParameters**](docs/FakeApi.md#testgroupparameters) | **DELETE** /fake | Fake endpoint to test group parameters (optional)
|
||||
*FakeApi* | [**TestInlineAdditionalProperties**](docs/FakeApi.md#testinlineadditionalproperties) | **POST** /fake/inline-additionalProperties | test inline additionalProperties
|
||||
*FakeApi* | [**TestJsonFormData**](docs/FakeApi.md#testjsonformdata) | **GET** /fake/jsonFormData | test json serialization of form data
|
||||
*FakeApi* | [**TestQueryParameterCollectionFormat**](docs/FakeApi.md#testqueryparametercollectionformat) | **PUT** /fake/test-query-paramters |
|
||||
*FakeClassnameTags123Api* | [**TestClassname**](docs/FakeClassnameTags123Api.md#testclassname) | **PATCH** /fake_classname_test | To test class name in snake case
|
||||
*PetApi* | [**AddPet**](docs/PetApi.md#addpet) | **POST** /pet | Add a new pet to the store
|
||||
*PetApi* | [**DeletePet**](docs/PetApi.md#deletepet) | **DELETE** /pet/{petId} | Deletes a pet
|
||||
|
@ -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 |
|
||||
|
||||
|
||||
|
||||
@ -1034,3 +1035,84 @@ No authorization required
|
||||
[[Back to Model list]](../README.md#documentation-for-models)
|
||||
[[Back to README]](../README.md)
|
||||
|
||||
|
||||
## TestQueryParameterCollectionFormat
|
||||
|
||||
> void TestQueryParameterCollectionFormat (List<string> pipe, List<string> ioutil, List<string> http, List<string> url, List<string> context)
|
||||
|
||||
|
||||
|
||||
To test the collection format in query parameters
|
||||
|
||||
### Example
|
||||
|
||||
```csharp
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
using Org.OpenAPITools.Api;
|
||||
using Org.OpenAPITools.Client;
|
||||
using Org.OpenAPITools.Model;
|
||||
|
||||
namespace Example
|
||||
{
|
||||
public class TestQueryParameterCollectionFormatExample
|
||||
{
|
||||
public static void Main()
|
||||
{
|
||||
Configuration.Default.BasePath = "http://petstore.swagger.io:80/v2";
|
||||
var apiInstance = new FakeApi(Configuration.Default);
|
||||
var pipe = new List<string>(); // List<string> |
|
||||
var ioutil = new List<string>(); // List<string> |
|
||||
var http = new List<string>(); // List<string> |
|
||||
var url = new List<string>(); // List<string> |
|
||||
var context = new List<string>(); // List<string> |
|
||||
|
||||
try
|
||||
{
|
||||
apiInstance.TestQueryParameterCollectionFormat(pipe, ioutil, http, url, context);
|
||||
}
|
||||
catch (ApiException e)
|
||||
{
|
||||
Debug.Print("Exception when calling FakeApi.TestQueryParameterCollectionFormat: " + e.Message );
|
||||
Debug.Print("Status Code: "+ e.ErrorCode);
|
||||
Debug.Print(e.StackTrace);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
### Parameters
|
||||
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**pipe** | [**List<string>**](string.md)| |
|
||||
**ioutil** | [**List<string>**](string.md)| |
|
||||
**http** | [**List<string>**](string.md)| |
|
||||
**url** | [**List<string>**](string.md)| |
|
||||
**context** | [**List<string>**](string.md)| |
|
||||
|
||||
### Return type
|
||||
|
||||
void (empty response body)
|
||||
|
||||
### Authorization
|
||||
|
||||
No authorization required
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: Not defined
|
||||
- **Accept**: Not defined
|
||||
|
||||
### HTTP response details
|
||||
| Status code | Description | Response headers |
|
||||
|-------------|-------------|------------------|
|
||||
| **200** | Success | - |
|
||||
|
||||
[[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)
|
||||
|
||||
|
@ -351,6 +351,35 @@ namespace Org.OpenAPITools.Api
|
||||
/// <param name="param2">field2</param>
|
||||
/// <returns>ApiResponse of Object(void)</returns>
|
||||
ApiResponse<Object> TestJsonFormDataWithHttpInfo (string param, string param2);
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// To test the collection format in query parameters
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="pipe"></param>
|
||||
/// <param name="ioutil"></param>
|
||||
/// <param name="http"></param>
|
||||
/// <param name="url"></param>
|
||||
/// <param name="context"></param>
|
||||
/// <returns></returns>
|
||||
void TestQueryParameterCollectionFormat (List<string> pipe, List<string> ioutil, List<string> http, List<string> url, List<string> context);
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// To test the collection format in query parameters
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="pipe"></param>
|
||||
/// <param name="ioutil"></param>
|
||||
/// <param name="http"></param>
|
||||
/// <param name="url"></param>
|
||||
/// <param name="context"></param>
|
||||
/// <returns>ApiResponse of Object(void)</returns>
|
||||
ApiResponse<Object> TestQueryParameterCollectionFormatWithHttpInfo (List<string> pipe, List<string> ioutil, List<string> http, List<string> url, List<string> context);
|
||||
#endregion Synchronous Operations
|
||||
#region Asynchronous Operations
|
||||
/// <summary>
|
||||
@ -680,6 +709,35 @@ namespace Org.OpenAPITools.Api
|
||||
/// <param name="param2">field2</param>
|
||||
/// <returns>Task of ApiResponse</returns>
|
||||
System.Threading.Tasks.Task<ApiResponse<Object>> TestJsonFormDataAsyncWithHttpInfo (string param, string param2);
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// To test the collection format in query parameters
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="pipe"></param>
|
||||
/// <param name="ioutil"></param>
|
||||
/// <param name="http"></param>
|
||||
/// <param name="url"></param>
|
||||
/// <param name="context"></param>
|
||||
/// <returns>Task of void</returns>
|
||||
System.Threading.Tasks.Task TestQueryParameterCollectionFormatAsync (List<string> pipe, List<string> ioutil, List<string> http, List<string> url, List<string> context);
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// To test the collection format in query parameters
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="pipe"></param>
|
||||
/// <param name="ioutil"></param>
|
||||
/// <param name="http"></param>
|
||||
/// <param name="url"></param>
|
||||
/// <param name="context"></param>
|
||||
/// <returns>Task of ApiResponse</returns>
|
||||
System.Threading.Tasks.Task<ApiResponse<Object>> TestQueryParameterCollectionFormatAsyncWithHttpInfo (List<string> pipe, List<string> ioutil, List<string> http, List<string> url, List<string> context);
|
||||
#endregion Asynchronous Operations
|
||||
}
|
||||
|
||||
@ -2826,5 +2884,182 @@ namespace Org.OpenAPITools.Api
|
||||
null);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To test the collection format in query parameters
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="pipe"></param>
|
||||
/// <param name="ioutil"></param>
|
||||
/// <param name="http"></param>
|
||||
/// <param name="url"></param>
|
||||
/// <param name="context"></param>
|
||||
/// <returns></returns>
|
||||
public void TestQueryParameterCollectionFormat (List<string> pipe, List<string> ioutil, List<string> http, List<string> url, List<string> context)
|
||||
{
|
||||
TestQueryParameterCollectionFormatWithHttpInfo(pipe, ioutil, http, url, context);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To test the collection format in query parameters
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="pipe"></param>
|
||||
/// <param name="ioutil"></param>
|
||||
/// <param name="http"></param>
|
||||
/// <param name="url"></param>
|
||||
/// <param name="context"></param>
|
||||
/// <returns>ApiResponse of Object(void)</returns>
|
||||
public ApiResponse<Object> TestQueryParameterCollectionFormatWithHttpInfo (List<string> pipe, List<string> ioutil, List<string> http, List<string> url, List<string> context)
|
||||
{
|
||||
// verify the required parameter 'pipe' is set
|
||||
if (pipe == null)
|
||||
throw new ApiException(400, "Missing required parameter 'pipe' when calling FakeApi->TestQueryParameterCollectionFormat");
|
||||
// verify the required parameter 'ioutil' is set
|
||||
if (ioutil == null)
|
||||
throw new ApiException(400, "Missing required parameter 'ioutil' when calling FakeApi->TestQueryParameterCollectionFormat");
|
||||
// verify the required parameter 'http' is set
|
||||
if (http == null)
|
||||
throw new ApiException(400, "Missing required parameter 'http' when calling FakeApi->TestQueryParameterCollectionFormat");
|
||||
// verify the required parameter 'url' is set
|
||||
if (url == null)
|
||||
throw new ApiException(400, "Missing required parameter 'url' when calling FakeApi->TestQueryParameterCollectionFormat");
|
||||
// verify the required parameter 'context' is set
|
||||
if (context == null)
|
||||
throw new ApiException(400, "Missing required parameter 'context' when calling FakeApi->TestQueryParameterCollectionFormat");
|
||||
|
||||
var localVarPath = "/fake/test-query-paramters";
|
||||
var localVarPathParams = new Dictionary<String, String>();
|
||||
var localVarQueryParams = new List<KeyValuePair<String, String>>();
|
||||
var localVarHeaderParams = new Dictionary<String, String>(this.Configuration.DefaultHeader);
|
||||
var localVarFormParams = new Dictionary<String, String>();
|
||||
var localVarFileParams = new Dictionary<String, FileParameter>();
|
||||
Object localVarPostBody = null;
|
||||
|
||||
// to determine the Content-Type header
|
||||
String[] localVarHttpContentTypes = new String[] {
|
||||
};
|
||||
String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes);
|
||||
|
||||
// to determine the Accept header
|
||||
String[] localVarHttpHeaderAccepts = new String[] {
|
||||
};
|
||||
String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);
|
||||
if (localVarHttpHeaderAccept != null)
|
||||
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
|
||||
|
||||
if (pipe != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("csv", "pipe", pipe)); // query parameter
|
||||
if (ioutil != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("csv", "ioutil", ioutil)); // query parameter
|
||||
if (http != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("space", "http", http)); // query parameter
|
||||
if (url != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("csv", "url", url)); // query parameter
|
||||
if (context != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("multi", "context", context)); // query parameter
|
||||
|
||||
|
||||
// make the HTTP request
|
||||
IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath,
|
||||
Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
|
||||
localVarPathParams, localVarHttpContentType);
|
||||
|
||||
int localVarStatusCode = (int) localVarResponse.StatusCode;
|
||||
|
||||
if (ExceptionFactory != null)
|
||||
{
|
||||
Exception exception = ExceptionFactory("TestQueryParameterCollectionFormat", localVarResponse);
|
||||
if (exception != null) throw exception;
|
||||
}
|
||||
|
||||
return new ApiResponse<Object>(localVarStatusCode,
|
||||
localVarResponse.Headers.ToDictionary(x => x.Name, x => string.Join(",", x.Value)),
|
||||
null);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To test the collection format in query parameters
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="pipe"></param>
|
||||
/// <param name="ioutil"></param>
|
||||
/// <param name="http"></param>
|
||||
/// <param name="url"></param>
|
||||
/// <param name="context"></param>
|
||||
/// <returns>Task of void</returns>
|
||||
public async System.Threading.Tasks.Task TestQueryParameterCollectionFormatAsync (List<string> pipe, List<string> ioutil, List<string> http, List<string> url, List<string> context)
|
||||
{
|
||||
await TestQueryParameterCollectionFormatAsyncWithHttpInfo(pipe, ioutil, http, url, context);
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To test the collection format in query parameters
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="pipe"></param>
|
||||
/// <param name="ioutil"></param>
|
||||
/// <param name="http"></param>
|
||||
/// <param name="url"></param>
|
||||
/// <param name="context"></param>
|
||||
/// <returns>Task of ApiResponse</returns>
|
||||
public async System.Threading.Tasks.Task<ApiResponse<Object>> TestQueryParameterCollectionFormatAsyncWithHttpInfo (List<string> pipe, List<string> ioutil, List<string> http, List<string> url, List<string> context)
|
||||
{
|
||||
// verify the required parameter 'pipe' is set
|
||||
if (pipe == null)
|
||||
throw new ApiException(400, "Missing required parameter 'pipe' when calling FakeApi->TestQueryParameterCollectionFormat");
|
||||
// verify the required parameter 'ioutil' is set
|
||||
if (ioutil == null)
|
||||
throw new ApiException(400, "Missing required parameter 'ioutil' when calling FakeApi->TestQueryParameterCollectionFormat");
|
||||
// verify the required parameter 'http' is set
|
||||
if (http == null)
|
||||
throw new ApiException(400, "Missing required parameter 'http' when calling FakeApi->TestQueryParameterCollectionFormat");
|
||||
// verify the required parameter 'url' is set
|
||||
if (url == null)
|
||||
throw new ApiException(400, "Missing required parameter 'url' when calling FakeApi->TestQueryParameterCollectionFormat");
|
||||
// verify the required parameter 'context' is set
|
||||
if (context == null)
|
||||
throw new ApiException(400, "Missing required parameter 'context' when calling FakeApi->TestQueryParameterCollectionFormat");
|
||||
|
||||
var localVarPath = "/fake/test-query-paramters";
|
||||
var localVarPathParams = new Dictionary<String, String>();
|
||||
var localVarQueryParams = new List<KeyValuePair<String, String>>();
|
||||
var localVarHeaderParams = new Dictionary<String, String>(this.Configuration.DefaultHeader);
|
||||
var localVarFormParams = new Dictionary<String, String>();
|
||||
var localVarFileParams = new Dictionary<String, FileParameter>();
|
||||
Object localVarPostBody = null;
|
||||
|
||||
// to determine the Content-Type header
|
||||
String[] localVarHttpContentTypes = new String[] {
|
||||
};
|
||||
String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes);
|
||||
|
||||
// to determine the Accept header
|
||||
String[] localVarHttpHeaderAccepts = new String[] {
|
||||
};
|
||||
String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);
|
||||
if (localVarHttpHeaderAccept != null)
|
||||
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
|
||||
|
||||
if (pipe != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("csv", "pipe", pipe)); // query parameter
|
||||
if (ioutil != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("csv", "ioutil", ioutil)); // query parameter
|
||||
if (http != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("space", "http", http)); // query parameter
|
||||
if (url != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("csv", "url", url)); // query parameter
|
||||
if (context != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("multi", "context", context)); // query parameter
|
||||
|
||||
|
||||
// make the HTTP request
|
||||
IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath,
|
||||
Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
|
||||
localVarPathParams, localVarHttpContentType);
|
||||
|
||||
int localVarStatusCode = (int) localVarResponse.StatusCode;
|
||||
|
||||
if (ExceptionFactory != null)
|
||||
{
|
||||
Exception exception = ExceptionFactory("TestQueryParameterCollectionFormat", localVarResponse);
|
||||
if (exception != null) throw exception;
|
||||
}
|
||||
|
||||
return new ApiResponse<Object>(localVarStatusCode,
|
||||
localVarResponse.Headers.ToDictionary(x => x.Name, x => string.Join(",", x.Value)),
|
||||
null);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -429,4 +429,38 @@ defmodule OpenapiPetstore.Api.Fake do
|
||||
{ 200, false}
|
||||
])
|
||||
end
|
||||
|
||||
@doc """
|
||||
To test the collection format in query parameters
|
||||
|
||||
## Parameters
|
||||
|
||||
- connection (OpenapiPetstore.Connection): Connection to server
|
||||
- pipe ([String.t]):
|
||||
- ioutil ([String.t]):
|
||||
- http ([String.t]):
|
||||
- url ([String.t]):
|
||||
- context ([String.t]):
|
||||
- opts (KeywordList): [optional] Optional parameters
|
||||
## Returns
|
||||
|
||||
{:ok, %{}} on success
|
||||
{:error, info} on failure
|
||||
"""
|
||||
@spec test_query_parameter_collection_format(Tesla.Env.client, list(String.t), list(String.t), list(String.t), list(String.t), list(String.t), keyword()) :: {:ok, nil} | {:error, Tesla.Env.t}
|
||||
def test_query_parameter_collection_format(connection, pipe, ioutil, http, url, context, _opts \\ []) do
|
||||
%{}
|
||||
|> method(:put)
|
||||
|> url("/fake/test-query-paramters")
|
||||
|> add_param(:query, :"pipe", pipe)
|
||||
|> add_param(:query, :"ioutil", ioutil)
|
||||
|> add_param(:query, :"http", http)
|
||||
|> add_param(:query, :"url", url)
|
||||
|> add_param(:query, :"context", context)
|
||||
|> Enum.into([])
|
||||
|> (&Connection.request(connection, &1)).()
|
||||
|> evaluate_response([
|
||||
{ 200, false}
|
||||
])
|
||||
end
|
||||
end
|
||||
|
@ -46,6 +46,7 @@ Class | Method | HTTP request | Description
|
||||
*FakeApi* | [**TestGroupParameters**](docs/FakeApi.md#testgroupparameters) | **Delete** /fake | Fake endpoint to test group parameters (optional)
|
||||
*FakeApi* | [**TestInlineAdditionalProperties**](docs/FakeApi.md#testinlineadditionalproperties) | **Post** /fake/inline-additionalProperties | test inline additionalProperties
|
||||
*FakeApi* | [**TestJsonFormData**](docs/FakeApi.md#testjsonformdata) | **Get** /fake/jsonFormData | test json serialization of form data
|
||||
*FakeApi* | [**TestQueryParameterCollectionFormat**](docs/FakeApi.md#testqueryparametercollectionformat) | **Put** /fake/test-query-paramters |
|
||||
*FakeClassnameTags123Api* | [**TestClassname**](docs/FakeClassnameTags123Api.md#testclassname) | **Patch** /fake_classname_test | To test class name in snake case
|
||||
*PetApi* | [**AddPet**](docs/PetApi.md#addpet) | **Post** /pet | Add a new pet to the store
|
||||
*PetApi* | [**DeletePet**](docs/PetApi.md#deletepet) | **Delete** /pet/{petId} | Deletes a pet
|
||||
|
@ -1100,6 +1100,59 @@ paths:
|
||||
tags:
|
||||
- fake
|
||||
x-codegen-request-body-name: body
|
||||
/fake/test-query-paramters:
|
||||
put:
|
||||
description: To test the collection format in query parameters
|
||||
operationId: testQueryParameterCollectionFormat
|
||||
parameters:
|
||||
- explode: false
|
||||
in: query
|
||||
name: pipe
|
||||
required: true
|
||||
schema:
|
||||
items:
|
||||
type: string
|
||||
type: array
|
||||
style: form
|
||||
- in: query
|
||||
name: ioutil
|
||||
required: true
|
||||
schema:
|
||||
items:
|
||||
type: string
|
||||
type: array
|
||||
- in: query
|
||||
name: http
|
||||
required: true
|
||||
schema:
|
||||
items:
|
||||
type: string
|
||||
type: array
|
||||
style: spaceDelimited
|
||||
- explode: false
|
||||
in: query
|
||||
name: url
|
||||
required: true
|
||||
schema:
|
||||
items:
|
||||
type: string
|
||||
type: array
|
||||
style: form
|
||||
- explode: true
|
||||
in: query
|
||||
name: context
|
||||
required: true
|
||||
schema:
|
||||
items:
|
||||
type: string
|
||||
type: array
|
||||
style: form
|
||||
responses:
|
||||
200:
|
||||
content: {}
|
||||
description: Success
|
||||
tags:
|
||||
- fake
|
||||
/fake/{petId}/uploadImageWithRequiredFile:
|
||||
post:
|
||||
operationId: uploadFileWithRequiredFile
|
||||
|
@ -17,6 +17,7 @@ import (
|
||||
_neturl "net/url"
|
||||
"github.com/antihax/optional"
|
||||
"os"
|
||||
"reflect"
|
||||
)
|
||||
|
||||
// Linger please
|
||||
@ -1207,3 +1208,86 @@ func (a *FakeApiService) TestJsonFormData(ctx _context.Context, param string, pa
|
||||
|
||||
return localVarHttpResponse, nil
|
||||
}
|
||||
|
||||
/*
|
||||
FakeApiService
|
||||
To test the collection format in query parameters
|
||||
* @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||
* @param pipe
|
||||
* @param ioutil
|
||||
* @param http
|
||||
* @param url
|
||||
* @param context
|
||||
*/
|
||||
func (a *FakeApiService) TestQueryParameterCollectionFormat(ctx _context.Context, pipe []string, ioutil []string, http []string, url []string, context []string) (*_nethttp.Response, error) {
|
||||
var (
|
||||
localVarHttpMethod = _nethttp.MethodPut
|
||||
localVarPostBody interface{}
|
||||
localVarFormFileName string
|
||||
localVarFileName string
|
||||
localVarFileBytes []byte
|
||||
)
|
||||
|
||||
// create path and map variables
|
||||
localVarPath := a.client.cfg.BasePath + "/fake/test-query-paramters"
|
||||
|
||||
localVarHeaderParams := make(map[string]string)
|
||||
localVarQueryParams := _neturl.Values{}
|
||||
localVarFormParams := _neturl.Values{}
|
||||
|
||||
localVarQueryParams.Add("pipe", parameterToString(pipe, "csv"))
|
||||
localVarQueryParams.Add("ioutil", parameterToString(ioutil, "csv"))
|
||||
localVarQueryParams.Add("http", parameterToString(http, "space"))
|
||||
localVarQueryParams.Add("url", parameterToString(url, "csv"))
|
||||
t:=context
|
||||
if reflect.TypeOf(t).Kind() == reflect.Slice {
|
||||
s := reflect.ValueOf(t)
|
||||
for i := 0; i < s.Len(); i++ {
|
||||
localVarQueryParams.Add("context", parameterToString(s.Index(i), "multi"))
|
||||
}
|
||||
} else {
|
||||
localVarQueryParams.Add("context", parameterToString(t, "multi"))
|
||||
}
|
||||
// to determine the Content-Type header
|
||||
localVarHttpContentTypes := []string{}
|
||||
|
||||
// set Content-Type header
|
||||
localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes)
|
||||
if localVarHttpContentType != "" {
|
||||
localVarHeaderParams["Content-Type"] = localVarHttpContentType
|
||||
}
|
||||
|
||||
// to determine the Accept header
|
||||
localVarHttpHeaderAccepts := []string{}
|
||||
|
||||
// set Accept header
|
||||
localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts)
|
||||
if localVarHttpHeaderAccept != "" {
|
||||
localVarHeaderParams["Accept"] = localVarHttpHeaderAccept
|
||||
}
|
||||
r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
localVarHttpResponse, err := a.client.callAPI(r)
|
||||
if err != nil || localVarHttpResponse == nil {
|
||||
return localVarHttpResponse, err
|
||||
}
|
||||
|
||||
localVarBody, err := _ioutil.ReadAll(localVarHttpResponse.Body)
|
||||
localVarHttpResponse.Body.Close()
|
||||
if err != nil {
|
||||
return localVarHttpResponse, err
|
||||
}
|
||||
|
||||
if localVarHttpResponse.StatusCode >= 300 {
|
||||
newErr := GenericOpenAPIError{
|
||||
body: localVarBody,
|
||||
error: localVarHttpResponse.Status,
|
||||
}
|
||||
return localVarHttpResponse, newErr
|
||||
}
|
||||
|
||||
return localVarHttpResponse, nil
|
||||
}
|
||||
|
@ -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 |
|
||||
|
||||
|
||||
|
||||
@ -539,3 +540,40 @@ No authorization required
|
||||
[[Back to Model list]](../README.md#documentation-for-models)
|
||||
[[Back to README]](../README.md)
|
||||
|
||||
|
||||
## TestQueryParameterCollectionFormat
|
||||
|
||||
> TestQueryParameterCollectionFormat(ctx, pipe, ioutil, http, url, context)
|
||||
|
||||
|
||||
To test the collection format in query parameters
|
||||
|
||||
### Required Parameters
|
||||
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
|
||||
**pipe** | [**[]string**](string.md)| |
|
||||
**ioutil** | [**[]string**](string.md)| |
|
||||
**http** | [**[]string**](string.md)| |
|
||||
**url** | [**[]string**](string.md)| |
|
||||
**context** | [**[]string**](string.md)| |
|
||||
|
||||
### Return type
|
||||
|
||||
(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)
|
||||
|
||||
|
@ -46,6 +46,7 @@ Class | Method | HTTP request | Description
|
||||
*FakeApi* | [**TestGroupParameters**](docs/FakeApi.md#testgroupparameters) | **Delete** /fake | Fake endpoint to test group parameters (optional)
|
||||
*FakeApi* | [**TestInlineAdditionalProperties**](docs/FakeApi.md#testinlineadditionalproperties) | **Post** /fake/inline-additionalProperties | test inline additionalProperties
|
||||
*FakeApi* | [**TestJsonFormData**](docs/FakeApi.md#testjsonformdata) | **Get** /fake/jsonFormData | test json serialization of form data
|
||||
*FakeApi* | [**TestQueryParameterCollectionFormat**](docs/FakeApi.md#testqueryparametercollectionformat) | **Put** /fake/test-query-paramters |
|
||||
*FakeClassnameTags123Api* | [**TestClassname**](docs/FakeClassnameTags123Api.md#testclassname) | **Patch** /fake_classname_test | To test class name in snake case
|
||||
*PetApi* | [**AddPet**](docs/PetApi.md#addpet) | **Post** /pet | Add a new pet to the store
|
||||
*PetApi* | [**DeletePet**](docs/PetApi.md#deletepet) | **Delete** /pet/{petId} | Deletes a pet
|
||||
|
@ -1100,6 +1100,59 @@ paths:
|
||||
tags:
|
||||
- fake
|
||||
x-codegen-request-body-name: body
|
||||
/fake/test-query-paramters:
|
||||
put:
|
||||
description: To test the collection format in query parameters
|
||||
operationId: testQueryParameterCollectionFormat
|
||||
parameters:
|
||||
- explode: false
|
||||
in: query
|
||||
name: pipe
|
||||
required: true
|
||||
schema:
|
||||
items:
|
||||
type: string
|
||||
type: array
|
||||
style: form
|
||||
- in: query
|
||||
name: ioutil
|
||||
required: true
|
||||
schema:
|
||||
items:
|
||||
type: string
|
||||
type: array
|
||||
- in: query
|
||||
name: http
|
||||
required: true
|
||||
schema:
|
||||
items:
|
||||
type: string
|
||||
type: array
|
||||
style: spaceDelimited
|
||||
- explode: false
|
||||
in: query
|
||||
name: url
|
||||
required: true
|
||||
schema:
|
||||
items:
|
||||
type: string
|
||||
type: array
|
||||
style: form
|
||||
- explode: true
|
||||
in: query
|
||||
name: context
|
||||
required: true
|
||||
schema:
|
||||
items:
|
||||
type: string
|
||||
type: array
|
||||
style: form
|
||||
responses:
|
||||
200:
|
||||
content: {}
|
||||
description: Success
|
||||
tags:
|
||||
- fake
|
||||
/fake/{petId}/uploadImageWithRequiredFile:
|
||||
post:
|
||||
operationId: uploadFileWithRequiredFile
|
||||
|
@ -16,6 +16,7 @@ import (
|
||||
_neturl "net/url"
|
||||
"github.com/antihax/optional"
|
||||
"os"
|
||||
"reflect"
|
||||
)
|
||||
|
||||
// Linger please
|
||||
@ -1206,3 +1207,86 @@ func (a *FakeApiService) TestJsonFormData(ctx _context.Context, param string, pa
|
||||
|
||||
return localVarHttpResponse, nil
|
||||
}
|
||||
|
||||
/*
|
||||
FakeApiService
|
||||
To test the collection format in query parameters
|
||||
* @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||
* @param pipe
|
||||
* @param ioutil
|
||||
* @param http
|
||||
* @param url
|
||||
* @param context
|
||||
*/
|
||||
func (a *FakeApiService) TestQueryParameterCollectionFormat(ctx _context.Context, pipe []string, ioutil []string, http []string, url []string, context []string) (*_nethttp.Response, error) {
|
||||
var (
|
||||
localVarHttpMethod = _nethttp.MethodPut
|
||||
localVarPostBody interface{}
|
||||
localVarFormFileName string
|
||||
localVarFileName string
|
||||
localVarFileBytes []byte
|
||||
)
|
||||
|
||||
// create path and map variables
|
||||
localVarPath := a.client.cfg.BasePath + "/fake/test-query-paramters"
|
||||
|
||||
localVarHeaderParams := make(map[string]string)
|
||||
localVarQueryParams := _neturl.Values{}
|
||||
localVarFormParams := _neturl.Values{}
|
||||
|
||||
localVarQueryParams.Add("pipe", parameterToString(pipe, "csv"))
|
||||
localVarQueryParams.Add("ioutil", parameterToString(ioutil, "csv"))
|
||||
localVarQueryParams.Add("http", parameterToString(http, "space"))
|
||||
localVarQueryParams.Add("url", parameterToString(url, "csv"))
|
||||
t:=context
|
||||
if reflect.TypeOf(t).Kind() == reflect.Slice {
|
||||
s := reflect.ValueOf(t)
|
||||
for i := 0; i < s.Len(); i++ {
|
||||
localVarQueryParams.Add("context", parameterToString(s.Index(i), "multi"))
|
||||
}
|
||||
} else {
|
||||
localVarQueryParams.Add("context", parameterToString(t, "multi"))
|
||||
}
|
||||
// to determine the Content-Type header
|
||||
localVarHttpContentTypes := []string{}
|
||||
|
||||
// set Content-Type header
|
||||
localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes)
|
||||
if localVarHttpContentType != "" {
|
||||
localVarHeaderParams["Content-Type"] = localVarHttpContentType
|
||||
}
|
||||
|
||||
// to determine the Accept header
|
||||
localVarHttpHeaderAccepts := []string{}
|
||||
|
||||
// set Accept header
|
||||
localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts)
|
||||
if localVarHttpHeaderAccept != "" {
|
||||
localVarHeaderParams["Accept"] = localVarHttpHeaderAccept
|
||||
}
|
||||
r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
localVarHttpResponse, err := a.client.callAPI(r)
|
||||
if err != nil || localVarHttpResponse == nil {
|
||||
return localVarHttpResponse, err
|
||||
}
|
||||
|
||||
localVarBody, err := _ioutil.ReadAll(localVarHttpResponse.Body)
|
||||
localVarHttpResponse.Body.Close()
|
||||
if err != nil {
|
||||
return localVarHttpResponse, err
|
||||
}
|
||||
|
||||
if localVarHttpResponse.StatusCode >= 300 {
|
||||
newErr := GenericOpenAPIError{
|
||||
body: localVarBody,
|
||||
error: localVarHttpResponse.Status,
|
||||
}
|
||||
return localVarHttpResponse, newErr
|
||||
}
|
||||
|
||||
return localVarHttpResponse, nil
|
||||
}
|
||||
|
@ -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 |
|
||||
|
||||
|
||||
|
||||
@ -539,3 +540,40 @@ No authorization required
|
||||
[[Back to Model list]](../README.md#documentation-for-models)
|
||||
[[Back to README]](../README.md)
|
||||
|
||||
|
||||
## TestQueryParameterCollectionFormat
|
||||
|
||||
> TestQueryParameterCollectionFormat(ctx, pipe, ioutil, http, url, context)
|
||||
|
||||
|
||||
To test the collection format in query parameters
|
||||
|
||||
### Required Parameters
|
||||
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
|
||||
**pipe** | [**[]string**](string.md)| |
|
||||
**ioutil** | [**[]string**](string.md)| |
|
||||
**http** | [**[]string**](string.md)| |
|
||||
**url** | [**[]string**](string.md)| |
|
||||
**context** | [**[]string**](string.md)| |
|
||||
|
||||
### Return type
|
||||
|
||||
(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)
|
||||
|
||||
|
@ -504,3 +504,28 @@ instance Consumes TestJsonFormData MimeFormUrlEncoded
|
||||
|
||||
instance Produces TestJsonFormData MimeNoContent
|
||||
|
||||
|
||||
-- *** testQueryParameterCollectionFormat
|
||||
|
||||
-- | @PUT \/fake\/test-query-paramters@
|
||||
--
|
||||
-- To test the collection format in query parameters
|
||||
--
|
||||
testQueryParameterCollectionFormat
|
||||
:: Pipe -- ^ "pipe"
|
||||
-> Ioutil -- ^ "ioutil"
|
||||
-> Http -- ^ "http"
|
||||
-> Url -- ^ "url"
|
||||
-> Context -- ^ "context"
|
||||
-> OpenAPIPetstoreRequest TestQueryParameterCollectionFormat MimeNoContent NoContent MimeNoContent
|
||||
testQueryParameterCollectionFormat (Pipe pipe) (Ioutil ioutil) (Http http) (Url url) (Context context) =
|
||||
_mkRequest "PUT" ["/fake/test-query-paramters"]
|
||||
`setQuery` toQueryColl CommaSeparated ("pipe", Just pipe)
|
||||
`setQuery` toQueryColl CommaSeparated ("ioutil", Just ioutil)
|
||||
`setQuery` toQueryColl SpaceSeparated ("http", Just http)
|
||||
`setQuery` toQueryColl CommaSeparated ("url", Just url)
|
||||
`setQuery` toQueryColl MultiParamArray ("context", Just context)
|
||||
|
||||
data TestQueryParameterCollectionFormat
|
||||
instance Produces TestQueryParameterCollectionFormat MimeNoContent
|
||||
|
||||
|
@ -93,6 +93,9 @@ newtype Byte = Byte { unByte :: ByteArray } deriving (P.Eq, P.Show)
|
||||
-- ** Callback
|
||||
newtype Callback = Callback { unCallback :: Text } deriving (P.Eq, P.Show)
|
||||
|
||||
-- ** Context
|
||||
newtype Context = Context { unContext :: [Text] } deriving (P.Eq, P.Show)
|
||||
|
||||
-- ** EnumFormString
|
||||
newtype EnumFormString = EnumFormString { unEnumFormString :: E'EnumFormString } deriving (P.Eq, P.Show)
|
||||
|
||||
@ -120,6 +123,9 @@ newtype EnumQueryStringArray = EnumQueryStringArray { unEnumQueryStringArray ::
|
||||
-- ** File2
|
||||
newtype File2 = File2 { unFile2 :: FilePath } deriving (P.Eq, P.Show)
|
||||
|
||||
-- ** Http
|
||||
newtype Http = Http { unHttp :: [Text] } deriving (P.Eq, P.Show)
|
||||
|
||||
-- ** Int32
|
||||
newtype Int32 = Int32 { unInt32 :: Int } deriving (P.Eq, P.Show)
|
||||
|
||||
@ -129,6 +135,9 @@ newtype Int64 = Int64 { unInt64 :: Integer } deriving (P.Eq, P.Show)
|
||||
-- ** Int64Group
|
||||
newtype Int64Group = Int64Group { unInt64Group :: Integer } deriving (P.Eq, P.Show)
|
||||
|
||||
-- ** Ioutil
|
||||
newtype Ioutil = Ioutil { unIoutil :: [Text] } deriving (P.Eq, P.Show)
|
||||
|
||||
-- ** Name2
|
||||
newtype Name2 = Name2 { unName2 :: Text } deriving (P.Eq, P.Show)
|
||||
|
||||
@ -180,6 +189,9 @@ newtype PatternWithoutDelimiter = PatternWithoutDelimiter { unPatternWithoutDeli
|
||||
-- ** PetId
|
||||
newtype PetId = PetId { unPetId :: Integer } deriving (P.Eq, P.Show)
|
||||
|
||||
-- ** Pipe
|
||||
newtype Pipe = Pipe { unPipe :: [Text] } deriving (P.Eq, P.Show)
|
||||
|
||||
-- ** Query
|
||||
newtype Query = Query { unQuery :: Text } deriving (P.Eq, P.Show)
|
||||
|
||||
@ -207,6 +219,9 @@ newtype StringGroup = StringGroup { unStringGroup :: Int } deriving (P.Eq, P.Sho
|
||||
-- ** Tags
|
||||
newtype Tags = Tags { unTags :: [Text] } deriving (P.Eq, P.Show)
|
||||
|
||||
-- ** Url
|
||||
newtype Url = Url { unUrl :: [Text] } deriving (P.Eq, P.Show)
|
||||
|
||||
-- ** Username
|
||||
newtype Username = Username { unUsername :: Text } deriving (P.Eq, P.Show)
|
||||
|
||||
|
@ -1100,6 +1100,59 @@ paths:
|
||||
tags:
|
||||
- fake
|
||||
x-codegen-request-body-name: body
|
||||
/fake/test-query-paramters:
|
||||
put:
|
||||
description: To test the collection format in query parameters
|
||||
operationId: testQueryParameterCollectionFormat
|
||||
parameters:
|
||||
- explode: false
|
||||
in: query
|
||||
name: pipe
|
||||
required: true
|
||||
schema:
|
||||
items:
|
||||
type: string
|
||||
type: array
|
||||
style: form
|
||||
- in: query
|
||||
name: ioutil
|
||||
required: true
|
||||
schema:
|
||||
items:
|
||||
type: string
|
||||
type: array
|
||||
- in: query
|
||||
name: http
|
||||
required: true
|
||||
schema:
|
||||
items:
|
||||
type: string
|
||||
type: array
|
||||
style: spaceDelimited
|
||||
- explode: false
|
||||
in: query
|
||||
name: url
|
||||
required: true
|
||||
schema:
|
||||
items:
|
||||
type: string
|
||||
type: array
|
||||
style: form
|
||||
- explode: true
|
||||
in: query
|
||||
name: context
|
||||
required: true
|
||||
schema:
|
||||
items:
|
||||
type: string
|
||||
type: array
|
||||
style: form
|
||||
responses:
|
||||
200:
|
||||
content: {}
|
||||
description: Success
|
||||
tags:
|
||||
- fake
|
||||
/fake/{petId}/uploadImageWithRequiredFile:
|
||||
post:
|
||||
operationId: uploadFileWithRequiredFile
|
||||
|
@ -353,4 +353,70 @@ public interface FakeApi extends ApiClient.Api {
|
||||
"Accept: application/json",
|
||||
})
|
||||
void testJsonFormData(@Param("param") String param, @Param("param2") String param2);
|
||||
|
||||
/**
|
||||
*
|
||||
* To test the collection format in query parameters
|
||||
* @param pipe (required)
|
||||
* @param ioutil (required)
|
||||
* @param http (required)
|
||||
* @param url (required)
|
||||
* @param context (required)
|
||||
*/
|
||||
@RequestLine("PUT /fake/test-query-paramters?pipe={pipe}&ioutil={ioutil}&http={http}&url={url}&context={context}")
|
||||
@Headers({
|
||||
"Accept: application/json",
|
||||
})
|
||||
void testQueryParameterCollectionFormat(@Param("pipe") List<String> pipe, @Param("ioutil") List<String> ioutil, @Param("http") List<String> http, @Param("url") List<String> url, @Param("context") List<String> context);
|
||||
|
||||
/**
|
||||
*
|
||||
* To test the collection format in query parameters
|
||||
* Note, this is equivalent to the other <code>testQueryParameterCollectionFormat</code> method,
|
||||
* but with the query parameters collected into a single Map parameter. This
|
||||
* is convenient for services with optional query parameters, especially when
|
||||
* used with the {@link TestQueryParameterCollectionFormatQueryParams} class that allows for
|
||||
* building up this map in a fluent style.
|
||||
* @param queryParams Map of query parameters as name-value pairs
|
||||
* <p>The following elements may be specified in the query map:</p>
|
||||
* <ul>
|
||||
* <li>pipe - (required)</li>
|
||||
* <li>ioutil - (required)</li>
|
||||
* <li>http - (required)</li>
|
||||
* <li>url - (required)</li>
|
||||
* <li>context - (required)</li>
|
||||
* </ul>
|
||||
*/
|
||||
@RequestLine("PUT /fake/test-query-paramters?pipe={pipe}&ioutil={ioutil}&http={http}&url={url}&context={context}")
|
||||
@Headers({
|
||||
"Accept: application/json",
|
||||
})
|
||||
void testQueryParameterCollectionFormat(@QueryMap(encoded=true) Map<String, Object> queryParams);
|
||||
|
||||
/**
|
||||
* A convenience class for generating query parameters for the
|
||||
* <code>testQueryParameterCollectionFormat</code> method in a fluent style.
|
||||
*/
|
||||
public static class TestQueryParameterCollectionFormatQueryParams extends HashMap<String, Object> {
|
||||
public TestQueryParameterCollectionFormatQueryParams pipe(final List<String> value) {
|
||||
put("pipe", EncodingUtils.encodeCollection(value, "csv"));
|
||||
return this;
|
||||
}
|
||||
public TestQueryParameterCollectionFormatQueryParams ioutil(final List<String> value) {
|
||||
put("ioutil", EncodingUtils.encodeCollection(value, "csv"));
|
||||
return this;
|
||||
}
|
||||
public TestQueryParameterCollectionFormatQueryParams http(final List<String> value) {
|
||||
put("http", EncodingUtils.encodeCollection(value, "space"));
|
||||
return this;
|
||||
}
|
||||
public TestQueryParameterCollectionFormatQueryParams url(final List<String> value) {
|
||||
put("url", EncodingUtils.encodeCollection(value, "csv"));
|
||||
return this;
|
||||
}
|
||||
public TestQueryParameterCollectionFormatQueryParams context(final List<String> value) {
|
||||
put("context", EncodingUtils.encodeCollection(value, "multi"));
|
||||
return this;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -353,4 +353,70 @@ public interface FakeApi extends ApiClient.Api {
|
||||
"Accept: application/json",
|
||||
})
|
||||
void testJsonFormData(@Param("param") String param, @Param("param2") String param2);
|
||||
|
||||
/**
|
||||
*
|
||||
* To test the collection format in query parameters
|
||||
* @param pipe (required)
|
||||
* @param ioutil (required)
|
||||
* @param http (required)
|
||||
* @param url (required)
|
||||
* @param context (required)
|
||||
*/
|
||||
@RequestLine("PUT /fake/test-query-paramters?pipe={pipe}&ioutil={ioutil}&http={http}&url={url}&context={context}")
|
||||
@Headers({
|
||||
"Accept: application/json",
|
||||
})
|
||||
void testQueryParameterCollectionFormat(@Param("pipe") List<String> pipe, @Param("ioutil") List<String> ioutil, @Param("http") List<String> http, @Param("url") List<String> url, @Param("context") List<String> context);
|
||||
|
||||
/**
|
||||
*
|
||||
* To test the collection format in query parameters
|
||||
* Note, this is equivalent to the other <code>testQueryParameterCollectionFormat</code> method,
|
||||
* but with the query parameters collected into a single Map parameter. This
|
||||
* is convenient for services with optional query parameters, especially when
|
||||
* used with the {@link TestQueryParameterCollectionFormatQueryParams} class that allows for
|
||||
* building up this map in a fluent style.
|
||||
* @param queryParams Map of query parameters as name-value pairs
|
||||
* <p>The following elements may be specified in the query map:</p>
|
||||
* <ul>
|
||||
* <li>pipe - (required)</li>
|
||||
* <li>ioutil - (required)</li>
|
||||
* <li>http - (required)</li>
|
||||
* <li>url - (required)</li>
|
||||
* <li>context - (required)</li>
|
||||
* </ul>
|
||||
*/
|
||||
@RequestLine("PUT /fake/test-query-paramters?pipe={pipe}&ioutil={ioutil}&http={http}&url={url}&context={context}")
|
||||
@Headers({
|
||||
"Accept: application/json",
|
||||
})
|
||||
void testQueryParameterCollectionFormat(@QueryMap(encoded=true) Map<String, Object> queryParams);
|
||||
|
||||
/**
|
||||
* A convenience class for generating query parameters for the
|
||||
* <code>testQueryParameterCollectionFormat</code> method in a fluent style.
|
||||
*/
|
||||
public static class TestQueryParameterCollectionFormatQueryParams extends HashMap<String, Object> {
|
||||
public TestQueryParameterCollectionFormatQueryParams pipe(final List<String> value) {
|
||||
put("pipe", EncodingUtils.encodeCollection(value, "csv"));
|
||||
return this;
|
||||
}
|
||||
public TestQueryParameterCollectionFormatQueryParams ioutil(final List<String> value) {
|
||||
put("ioutil", EncodingUtils.encodeCollection(value, "csv"));
|
||||
return this;
|
||||
}
|
||||
public TestQueryParameterCollectionFormatQueryParams http(final List<String> value) {
|
||||
put("http", EncodingUtils.encodeCollection(value, "space"));
|
||||
return this;
|
||||
}
|
||||
public TestQueryParameterCollectionFormatQueryParams url(final List<String> value) {
|
||||
put("url", EncodingUtils.encodeCollection(value, "csv"));
|
||||
return this;
|
||||
}
|
||||
public TestQueryParameterCollectionFormatQueryParams context(final List<String> value) {
|
||||
put("context", EncodingUtils.encodeCollection(value, "multi"));
|
||||
return this;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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 |
|
||||
|
||||
|
||||
|
||||
@ -912,3 +913,75 @@ No authorization required
|
||||
|-------------|-------------|------------------|
|
||||
| **200** | successful operation | - |
|
||||
|
||||
|
||||
## testQueryParameterCollectionFormat
|
||||
|
||||
> testQueryParameterCollectionFormat(pipe, ioutil, http, url, context)
|
||||
|
||||
|
||||
|
||||
To test the collection format in query parameters
|
||||
|
||||
### Example
|
||||
|
||||
```java
|
||||
// Import classes:
|
||||
import org.openapitools.client.ApiClient;
|
||||
import org.openapitools.client.ApiException;
|
||||
import org.openapitools.client.Configuration;
|
||||
import org.openapitools.client.models.*;
|
||||
import org.openapitools.client.api.FakeApi;
|
||||
|
||||
public class Example {
|
||||
public static void main(String[] args) {
|
||||
ApiClient defaultClient = Configuration.getDefaultApiClient();
|
||||
defaultClient.setBasePath("http://petstore.swagger.io:80/v2");
|
||||
|
||||
FakeApi apiInstance = new FakeApi(defaultClient);
|
||||
List<String> pipe = Arrays.asList(); // List<String> |
|
||||
List<String> ioutil = Arrays.asList(); // List<String> |
|
||||
List<String> http = Arrays.asList(); // List<String> |
|
||||
List<String> url = Arrays.asList(); // List<String> |
|
||||
List<String> context = Arrays.asList(); // List<String> |
|
||||
try {
|
||||
apiInstance.testQueryParameterCollectionFormat(pipe, ioutil, http, url, context);
|
||||
} catch (ApiException e) {
|
||||
System.err.println("Exception when calling FakeApi#testQueryParameterCollectionFormat");
|
||||
System.err.println("Status code: " + e.getCode());
|
||||
System.err.println("Reason: " + e.getResponseBody());
|
||||
System.err.println("Response headers: " + e.getResponseHeaders());
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
### Parameters
|
||||
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**pipe** | [**List<String>**](String.md)| |
|
||||
**ioutil** | [**List<String>**](String.md)| |
|
||||
**http** | [**List<String>**](String.md)| |
|
||||
**url** | [**List<String>**](String.md)| |
|
||||
**context** | [**List<String>**](String.md)| |
|
||||
|
||||
### Return type
|
||||
|
||||
null (empty response body)
|
||||
|
||||
### Authorization
|
||||
|
||||
No authorization required
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: Not defined
|
||||
- **Accept**: Not defined
|
||||
|
||||
### HTTP response details
|
||||
| Status code | Description | Response headers |
|
||||
|-------------|-------------|------------------|
|
||||
| **200** | Success | - |
|
||||
|
||||
|
@ -76,8 +76,8 @@ public class AnotherFakeApi {
|
||||
}
|
||||
UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/another-fake/dummy");
|
||||
|
||||
String url = uriBuilder.build().toString();
|
||||
GenericUrl genericUrl = new GenericUrl(url);
|
||||
String localVarUrl = uriBuilder.build().toString();
|
||||
GenericUrl genericUrl = new GenericUrl(localVarUrl);
|
||||
|
||||
HttpContent content = apiClient.new JacksonJsonHttpContent(body);
|
||||
return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.PATCH, genericUrl, content).execute();
|
||||
@ -90,8 +90,8 @@ public class AnotherFakeApi {
|
||||
}
|
||||
UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/another-fake/dummy");
|
||||
|
||||
String url = uriBuilder.build().toString();
|
||||
GenericUrl genericUrl = new GenericUrl(url);
|
||||
String localVarUrl = uriBuilder.build().toString();
|
||||
GenericUrl genericUrl = new GenericUrl(localVarUrl);
|
||||
|
||||
HttpContent content = body == null ?
|
||||
apiClient.new JacksonJsonHttpContent(null) :
|
||||
@ -124,8 +124,8 @@ public class AnotherFakeApi {
|
||||
}
|
||||
}
|
||||
|
||||
String url = uriBuilder.build().toString();
|
||||
GenericUrl genericUrl = new GenericUrl(url);
|
||||
String localVarUrl = uriBuilder.build().toString();
|
||||
GenericUrl genericUrl = new GenericUrl(localVarUrl);
|
||||
|
||||
HttpContent content = apiClient.new JacksonJsonHttpContent(body);
|
||||
return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.PATCH, genericUrl, content).execute();
|
||||
|
@ -78,8 +78,8 @@ public class FakeApi {
|
||||
}
|
||||
UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/fake/create_xml_item");
|
||||
|
||||
String url = uriBuilder.build().toString();
|
||||
GenericUrl genericUrl = new GenericUrl(url);
|
||||
String localVarUrl = uriBuilder.build().toString();
|
||||
GenericUrl genericUrl = new GenericUrl(localVarUrl);
|
||||
|
||||
HttpContent content = apiClient.new JacksonJsonHttpContent(xmlItem);
|
||||
return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.POST, genericUrl, content).execute();
|
||||
@ -92,8 +92,8 @@ public class FakeApi {
|
||||
}
|
||||
UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/fake/create_xml_item");
|
||||
|
||||
String url = uriBuilder.build().toString();
|
||||
GenericUrl genericUrl = new GenericUrl(url);
|
||||
String localVarUrl = uriBuilder.build().toString();
|
||||
GenericUrl genericUrl = new GenericUrl(localVarUrl);
|
||||
|
||||
HttpContent content = xmlItem == null ?
|
||||
apiClient.new JacksonJsonHttpContent(null) :
|
||||
@ -126,8 +126,8 @@ public class FakeApi {
|
||||
}
|
||||
}
|
||||
|
||||
String url = uriBuilder.build().toString();
|
||||
GenericUrl genericUrl = new GenericUrl(url);
|
||||
String localVarUrl = uriBuilder.build().toString();
|
||||
GenericUrl genericUrl = new GenericUrl(localVarUrl);
|
||||
|
||||
HttpContent content = apiClient.new JacksonJsonHttpContent(xmlItem);
|
||||
return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.POST, genericUrl, content).execute();
|
||||
@ -164,8 +164,8 @@ public class FakeApi {
|
||||
|
||||
UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/fake/outer/boolean");
|
||||
|
||||
String url = uriBuilder.build().toString();
|
||||
GenericUrl genericUrl = new GenericUrl(url);
|
||||
String localVarUrl = uriBuilder.build().toString();
|
||||
GenericUrl genericUrl = new GenericUrl(localVarUrl);
|
||||
|
||||
HttpContent content = apiClient.new JacksonJsonHttpContent(body);
|
||||
return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.POST, genericUrl, content).execute();
|
||||
@ -175,8 +175,8 @@ public class FakeApi {
|
||||
|
||||
UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/fake/outer/boolean");
|
||||
|
||||
String url = uriBuilder.build().toString();
|
||||
GenericUrl genericUrl = new GenericUrl(url);
|
||||
String localVarUrl = uriBuilder.build().toString();
|
||||
GenericUrl genericUrl = new GenericUrl(localVarUrl);
|
||||
|
||||
HttpContent content = body == null ?
|
||||
apiClient.new JacksonJsonHttpContent(null) :
|
||||
@ -206,8 +206,8 @@ public class FakeApi {
|
||||
}
|
||||
}
|
||||
|
||||
String url = uriBuilder.build().toString();
|
||||
GenericUrl genericUrl = new GenericUrl(url);
|
||||
String localVarUrl = uriBuilder.build().toString();
|
||||
GenericUrl genericUrl = new GenericUrl(localVarUrl);
|
||||
|
||||
HttpContent content = apiClient.new JacksonJsonHttpContent(body);
|
||||
return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.POST, genericUrl, content).execute();
|
||||
@ -244,8 +244,8 @@ public class FakeApi {
|
||||
|
||||
UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/fake/outer/composite");
|
||||
|
||||
String url = uriBuilder.build().toString();
|
||||
GenericUrl genericUrl = new GenericUrl(url);
|
||||
String localVarUrl = uriBuilder.build().toString();
|
||||
GenericUrl genericUrl = new GenericUrl(localVarUrl);
|
||||
|
||||
HttpContent content = apiClient.new JacksonJsonHttpContent(body);
|
||||
return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.POST, genericUrl, content).execute();
|
||||
@ -255,8 +255,8 @@ public class FakeApi {
|
||||
|
||||
UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/fake/outer/composite");
|
||||
|
||||
String url = uriBuilder.build().toString();
|
||||
GenericUrl genericUrl = new GenericUrl(url);
|
||||
String localVarUrl = uriBuilder.build().toString();
|
||||
GenericUrl genericUrl = new GenericUrl(localVarUrl);
|
||||
|
||||
HttpContent content = body == null ?
|
||||
apiClient.new JacksonJsonHttpContent(null) :
|
||||
@ -286,8 +286,8 @@ public class FakeApi {
|
||||
}
|
||||
}
|
||||
|
||||
String url = uriBuilder.build().toString();
|
||||
GenericUrl genericUrl = new GenericUrl(url);
|
||||
String localVarUrl = uriBuilder.build().toString();
|
||||
GenericUrl genericUrl = new GenericUrl(localVarUrl);
|
||||
|
||||
HttpContent content = apiClient.new JacksonJsonHttpContent(body);
|
||||
return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.POST, genericUrl, content).execute();
|
||||
@ -324,8 +324,8 @@ public class FakeApi {
|
||||
|
||||
UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/fake/outer/number");
|
||||
|
||||
String url = uriBuilder.build().toString();
|
||||
GenericUrl genericUrl = new GenericUrl(url);
|
||||
String localVarUrl = uriBuilder.build().toString();
|
||||
GenericUrl genericUrl = new GenericUrl(localVarUrl);
|
||||
|
||||
HttpContent content = apiClient.new JacksonJsonHttpContent(body);
|
||||
return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.POST, genericUrl, content).execute();
|
||||
@ -335,8 +335,8 @@ public class FakeApi {
|
||||
|
||||
UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/fake/outer/number");
|
||||
|
||||
String url = uriBuilder.build().toString();
|
||||
GenericUrl genericUrl = new GenericUrl(url);
|
||||
String localVarUrl = uriBuilder.build().toString();
|
||||
GenericUrl genericUrl = new GenericUrl(localVarUrl);
|
||||
|
||||
HttpContent content = body == null ?
|
||||
apiClient.new JacksonJsonHttpContent(null) :
|
||||
@ -366,8 +366,8 @@ public class FakeApi {
|
||||
}
|
||||
}
|
||||
|
||||
String url = uriBuilder.build().toString();
|
||||
GenericUrl genericUrl = new GenericUrl(url);
|
||||
String localVarUrl = uriBuilder.build().toString();
|
||||
GenericUrl genericUrl = new GenericUrl(localVarUrl);
|
||||
|
||||
HttpContent content = apiClient.new JacksonJsonHttpContent(body);
|
||||
return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.POST, genericUrl, content).execute();
|
||||
@ -404,8 +404,8 @@ public class FakeApi {
|
||||
|
||||
UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/fake/outer/string");
|
||||
|
||||
String url = uriBuilder.build().toString();
|
||||
GenericUrl genericUrl = new GenericUrl(url);
|
||||
String localVarUrl = uriBuilder.build().toString();
|
||||
GenericUrl genericUrl = new GenericUrl(localVarUrl);
|
||||
|
||||
HttpContent content = apiClient.new JacksonJsonHttpContent(body);
|
||||
return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.POST, genericUrl, content).execute();
|
||||
@ -415,8 +415,8 @@ public class FakeApi {
|
||||
|
||||
UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/fake/outer/string");
|
||||
|
||||
String url = uriBuilder.build().toString();
|
||||
GenericUrl genericUrl = new GenericUrl(url);
|
||||
String localVarUrl = uriBuilder.build().toString();
|
||||
GenericUrl genericUrl = new GenericUrl(localVarUrl);
|
||||
|
||||
HttpContent content = body == null ?
|
||||
apiClient.new JacksonJsonHttpContent(null) :
|
||||
@ -446,8 +446,8 @@ public class FakeApi {
|
||||
}
|
||||
}
|
||||
|
||||
String url = uriBuilder.build().toString();
|
||||
GenericUrl genericUrl = new GenericUrl(url);
|
||||
String localVarUrl = uriBuilder.build().toString();
|
||||
GenericUrl genericUrl = new GenericUrl(localVarUrl);
|
||||
|
||||
HttpContent content = apiClient.new JacksonJsonHttpContent(body);
|
||||
return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.POST, genericUrl, content).execute();
|
||||
@ -482,8 +482,8 @@ public class FakeApi {
|
||||
}
|
||||
UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/fake/body-with-file-schema");
|
||||
|
||||
String url = uriBuilder.build().toString();
|
||||
GenericUrl genericUrl = new GenericUrl(url);
|
||||
String localVarUrl = uriBuilder.build().toString();
|
||||
GenericUrl genericUrl = new GenericUrl(localVarUrl);
|
||||
|
||||
HttpContent content = apiClient.new JacksonJsonHttpContent(body);
|
||||
return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.PUT, genericUrl, content).execute();
|
||||
@ -496,8 +496,8 @@ public class FakeApi {
|
||||
}
|
||||
UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/fake/body-with-file-schema");
|
||||
|
||||
String url = uriBuilder.build().toString();
|
||||
GenericUrl genericUrl = new GenericUrl(url);
|
||||
String localVarUrl = uriBuilder.build().toString();
|
||||
GenericUrl genericUrl = new GenericUrl(localVarUrl);
|
||||
|
||||
HttpContent content = body == null ?
|
||||
apiClient.new JacksonJsonHttpContent(null) :
|
||||
@ -530,8 +530,8 @@ public class FakeApi {
|
||||
}
|
||||
}
|
||||
|
||||
String url = uriBuilder.build().toString();
|
||||
GenericUrl genericUrl = new GenericUrl(url);
|
||||
String localVarUrl = uriBuilder.build().toString();
|
||||
GenericUrl genericUrl = new GenericUrl(localVarUrl);
|
||||
|
||||
HttpContent content = apiClient.new JacksonJsonHttpContent(body);
|
||||
return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.PUT, genericUrl, content).execute();
|
||||
@ -580,8 +580,8 @@ public class FakeApi {
|
||||
}
|
||||
}
|
||||
|
||||
String url = uriBuilder.build().toString();
|
||||
GenericUrl genericUrl = new GenericUrl(url);
|
||||
String localVarUrl = uriBuilder.build().toString();
|
||||
GenericUrl genericUrl = new GenericUrl(localVarUrl);
|
||||
|
||||
HttpContent content = apiClient.new JacksonJsonHttpContent(body);
|
||||
return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.PUT, genericUrl, content).execute();
|
||||
@ -608,8 +608,8 @@ public class FakeApi {
|
||||
}
|
||||
}
|
||||
|
||||
String url = uriBuilder.build().toString();
|
||||
GenericUrl genericUrl = new GenericUrl(url);
|
||||
String localVarUrl = uriBuilder.build().toString();
|
||||
GenericUrl genericUrl = new GenericUrl(localVarUrl);
|
||||
|
||||
HttpContent content = body == null ?
|
||||
apiClient.new JacksonJsonHttpContent(null) :
|
||||
@ -647,8 +647,8 @@ public class FakeApi {
|
||||
}
|
||||
}
|
||||
|
||||
String url = uriBuilder.build().toString();
|
||||
GenericUrl genericUrl = new GenericUrl(url);
|
||||
String localVarUrl = uriBuilder.build().toString();
|
||||
GenericUrl genericUrl = new GenericUrl(localVarUrl);
|
||||
|
||||
HttpContent content = apiClient.new JacksonJsonHttpContent(body);
|
||||
return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.PUT, genericUrl, content).execute();
|
||||
@ -691,8 +691,8 @@ public class FakeApi {
|
||||
}
|
||||
UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/fake");
|
||||
|
||||
String url = uriBuilder.build().toString();
|
||||
GenericUrl genericUrl = new GenericUrl(url);
|
||||
String localVarUrl = uriBuilder.build().toString();
|
||||
GenericUrl genericUrl = new GenericUrl(localVarUrl);
|
||||
|
||||
HttpContent content = apiClient.new JacksonJsonHttpContent(body);
|
||||
return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.PATCH, genericUrl, content).execute();
|
||||
@ -705,8 +705,8 @@ public class FakeApi {
|
||||
}
|
||||
UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/fake");
|
||||
|
||||
String url = uriBuilder.build().toString();
|
||||
GenericUrl genericUrl = new GenericUrl(url);
|
||||
String localVarUrl = uriBuilder.build().toString();
|
||||
GenericUrl genericUrl = new GenericUrl(localVarUrl);
|
||||
|
||||
HttpContent content = body == null ?
|
||||
apiClient.new JacksonJsonHttpContent(null) :
|
||||
@ -739,8 +739,8 @@ public class FakeApi {
|
||||
}
|
||||
}
|
||||
|
||||
String url = uriBuilder.build().toString();
|
||||
GenericUrl genericUrl = new GenericUrl(url);
|
||||
String localVarUrl = uriBuilder.build().toString();
|
||||
GenericUrl genericUrl = new GenericUrl(localVarUrl);
|
||||
|
||||
HttpContent content = apiClient.new JacksonJsonHttpContent(body);
|
||||
return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.PATCH, genericUrl, content).execute();
|
||||
@ -804,8 +804,8 @@ public class FakeApi {
|
||||
}
|
||||
UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/fake");
|
||||
|
||||
String url = uriBuilder.build().toString();
|
||||
GenericUrl genericUrl = new GenericUrl(url);
|
||||
String localVarUrl = uriBuilder.build().toString();
|
||||
GenericUrl genericUrl = new GenericUrl(localVarUrl);
|
||||
|
||||
HttpContent content = apiClient.new JacksonJsonHttpContent(null);
|
||||
return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.POST, genericUrl, content).execute();
|
||||
@ -845,8 +845,8 @@ public class FakeApi {
|
||||
}
|
||||
}
|
||||
|
||||
String url = uriBuilder.build().toString();
|
||||
GenericUrl genericUrl = new GenericUrl(url);
|
||||
String localVarUrl = uriBuilder.build().toString();
|
||||
GenericUrl genericUrl = new GenericUrl(localVarUrl);
|
||||
|
||||
HttpContent content = apiClient.new JacksonJsonHttpContent(null);
|
||||
return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.POST, genericUrl, content).execute();
|
||||
@ -929,8 +929,8 @@ public class FakeApi {
|
||||
}
|
||||
}
|
||||
|
||||
String url = uriBuilder.build().toString();
|
||||
GenericUrl genericUrl = new GenericUrl(url);
|
||||
String localVarUrl = uriBuilder.build().toString();
|
||||
GenericUrl genericUrl = new GenericUrl(localVarUrl);
|
||||
|
||||
HttpContent content = null;
|
||||
return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.GET, genericUrl, content).execute();
|
||||
@ -958,8 +958,8 @@ public class FakeApi {
|
||||
}
|
||||
}
|
||||
|
||||
String url = uriBuilder.build().toString();
|
||||
GenericUrl genericUrl = new GenericUrl(url);
|
||||
String localVarUrl = uriBuilder.build().toString();
|
||||
GenericUrl genericUrl = new GenericUrl(localVarUrl);
|
||||
|
||||
HttpContent content = null;
|
||||
return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.GET, genericUrl, content).execute();
|
||||
@ -1050,8 +1050,8 @@ public class FakeApi {
|
||||
}
|
||||
}
|
||||
|
||||
String url = uriBuilder.build().toString();
|
||||
GenericUrl genericUrl = new GenericUrl(url);
|
||||
String localVarUrl = uriBuilder.build().toString();
|
||||
GenericUrl genericUrl = new GenericUrl(localVarUrl);
|
||||
|
||||
HttpContent content = null;
|
||||
return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.DELETE, genericUrl, content).execute();
|
||||
@ -1092,8 +1092,8 @@ public class FakeApi {
|
||||
}
|
||||
}
|
||||
|
||||
String url = uriBuilder.build().toString();
|
||||
GenericUrl genericUrl = new GenericUrl(url);
|
||||
String localVarUrl = uriBuilder.build().toString();
|
||||
GenericUrl genericUrl = new GenericUrl(localVarUrl);
|
||||
|
||||
HttpContent content = null;
|
||||
return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.DELETE, genericUrl, content).execute();
|
||||
@ -1128,8 +1128,8 @@ public class FakeApi {
|
||||
}
|
||||
UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/fake/inline-additionalProperties");
|
||||
|
||||
String url = uriBuilder.build().toString();
|
||||
GenericUrl genericUrl = new GenericUrl(url);
|
||||
String localVarUrl = uriBuilder.build().toString();
|
||||
GenericUrl genericUrl = new GenericUrl(localVarUrl);
|
||||
|
||||
HttpContent content = apiClient.new JacksonJsonHttpContent(param);
|
||||
return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.POST, genericUrl, content).execute();
|
||||
@ -1142,8 +1142,8 @@ public class FakeApi {
|
||||
}
|
||||
UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/fake/inline-additionalProperties");
|
||||
|
||||
String url = uriBuilder.build().toString();
|
||||
GenericUrl genericUrl = new GenericUrl(url);
|
||||
String localVarUrl = uriBuilder.build().toString();
|
||||
GenericUrl genericUrl = new GenericUrl(localVarUrl);
|
||||
|
||||
HttpContent content = param == null ?
|
||||
apiClient.new JacksonJsonHttpContent(null) :
|
||||
@ -1176,8 +1176,8 @@ public class FakeApi {
|
||||
}
|
||||
}
|
||||
|
||||
String url = uriBuilder.build().toString();
|
||||
GenericUrl genericUrl = new GenericUrl(url);
|
||||
String localVarUrl = uriBuilder.build().toString();
|
||||
GenericUrl genericUrl = new GenericUrl(localVarUrl);
|
||||
|
||||
HttpContent content = apiClient.new JacksonJsonHttpContent(param);
|
||||
return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.POST, genericUrl, content).execute();
|
||||
@ -1217,8 +1217,8 @@ public class FakeApi {
|
||||
}
|
||||
UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/fake/jsonFormData");
|
||||
|
||||
String url = uriBuilder.build().toString();
|
||||
GenericUrl genericUrl = new GenericUrl(url);
|
||||
String localVarUrl = uriBuilder.build().toString();
|
||||
GenericUrl genericUrl = new GenericUrl(localVarUrl);
|
||||
|
||||
HttpContent content = null;
|
||||
return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.GET, genericUrl, content).execute();
|
||||
@ -1252,12 +1252,173 @@ public class FakeApi {
|
||||
}
|
||||
}
|
||||
|
||||
String url = uriBuilder.build().toString();
|
||||
GenericUrl genericUrl = new GenericUrl(url);
|
||||
String localVarUrl = uriBuilder.build().toString();
|
||||
GenericUrl genericUrl = new GenericUrl(localVarUrl);
|
||||
|
||||
HttpContent content = null;
|
||||
return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.GET, genericUrl, content).execute();
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* To test the collection format in query parameters
|
||||
* <p><b>200</b> - Success
|
||||
* @param pipe The pipe parameter
|
||||
* @param ioutil The ioutil parameter
|
||||
* @param http The http parameter
|
||||
* @param url The url parameter
|
||||
* @param context The context parameter
|
||||
* @throws IOException if an error occurs while attempting to invoke the API
|
||||
**/
|
||||
public void testQueryParameterCollectionFormat(List<String> pipe, List<String> ioutil, List<String> http, List<String> url, List<String> context) throws IOException {
|
||||
testQueryParameterCollectionFormatForHttpResponse(pipe, ioutil, http, url, context);
|
||||
}
|
||||
|
||||
/**
|
||||
* To test the collection format in query parameters
|
||||
* <p><b>200</b> - Success
|
||||
* @param pipe The pipe parameter
|
||||
* @param ioutil The ioutil parameter
|
||||
* @param http The http parameter
|
||||
* @param url The url parameter
|
||||
* @param context The context parameter
|
||||
* @param params Map of query params. A collection will be interpreted as passing in multiple instances of the same query param.
|
||||
* @throws IOException if an error occurs while attempting to invoke the API
|
||||
**/
|
||||
public void testQueryParameterCollectionFormat(List<String> pipe, List<String> ioutil, List<String> http, List<String> url, List<String> context, Map<String, Object> params) throws IOException {
|
||||
testQueryParameterCollectionFormatForHttpResponse(pipe, ioutil, http, url, context, params);
|
||||
}
|
||||
|
||||
public HttpResponse testQueryParameterCollectionFormatForHttpResponse(List<String> pipe, List<String> ioutil, List<String> http, List<String> url, List<String> context) throws IOException {
|
||||
// verify the required parameter 'pipe' is set
|
||||
if (pipe == null) {
|
||||
throw new IllegalArgumentException("Missing the required parameter 'pipe' when calling testQueryParameterCollectionFormat");
|
||||
}// verify the required parameter 'ioutil' is set
|
||||
if (ioutil == null) {
|
||||
throw new IllegalArgumentException("Missing the required parameter 'ioutil' when calling testQueryParameterCollectionFormat");
|
||||
}// verify the required parameter 'http' is set
|
||||
if (http == null) {
|
||||
throw new IllegalArgumentException("Missing the required parameter 'http' when calling testQueryParameterCollectionFormat");
|
||||
}// verify the required parameter 'url' is set
|
||||
if (url == null) {
|
||||
throw new IllegalArgumentException("Missing the required parameter 'url' when calling testQueryParameterCollectionFormat");
|
||||
}// verify the required parameter 'context' is set
|
||||
if (context == null) {
|
||||
throw new IllegalArgumentException("Missing the required parameter 'context' when calling testQueryParameterCollectionFormat");
|
||||
}
|
||||
UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/fake/test-query-paramters");
|
||||
if (pipe != null) {
|
||||
String key = "pipe";
|
||||
Object value = pipe;
|
||||
if (value instanceof Collection) {
|
||||
uriBuilder = uriBuilder.queryParam(key, ((Collection) value).toArray());
|
||||
} else if (value instanceof Object[]) {
|
||||
uriBuilder = uriBuilder.queryParam(key, (Object[]) value);
|
||||
} else {
|
||||
uriBuilder = uriBuilder.queryParam(key, value);
|
||||
}
|
||||
} if (ioutil != null) {
|
||||
String key = "ioutil";
|
||||
Object value = ioutil;
|
||||
if (value instanceof Collection) {
|
||||
uriBuilder = uriBuilder.queryParam(key, ((Collection) value).toArray());
|
||||
} else if (value instanceof Object[]) {
|
||||
uriBuilder = uriBuilder.queryParam(key, (Object[]) value);
|
||||
} else {
|
||||
uriBuilder = uriBuilder.queryParam(key, value);
|
||||
}
|
||||
} if (http != null) {
|
||||
String key = "http";
|
||||
Object value = http;
|
||||
if (value instanceof Collection) {
|
||||
uriBuilder = uriBuilder.queryParam(key, ((Collection) value).toArray());
|
||||
} else if (value instanceof Object[]) {
|
||||
uriBuilder = uriBuilder.queryParam(key, (Object[]) value);
|
||||
} else {
|
||||
uriBuilder = uriBuilder.queryParam(key, value);
|
||||
}
|
||||
} if (url != null) {
|
||||
String key = "url";
|
||||
Object value = url;
|
||||
if (value instanceof Collection) {
|
||||
uriBuilder = uriBuilder.queryParam(key, ((Collection) value).toArray());
|
||||
} else if (value instanceof Object[]) {
|
||||
uriBuilder = uriBuilder.queryParam(key, (Object[]) value);
|
||||
} else {
|
||||
uriBuilder = uriBuilder.queryParam(key, value);
|
||||
}
|
||||
} if (context != null) {
|
||||
String key = "context";
|
||||
Object value = context;
|
||||
if (value instanceof Collection) {
|
||||
uriBuilder = uriBuilder.queryParam(key, ((Collection) value).toArray());
|
||||
} else if (value instanceof Object[]) {
|
||||
uriBuilder = uriBuilder.queryParam(key, (Object[]) value);
|
||||
} else {
|
||||
uriBuilder = uriBuilder.queryParam(key, value);
|
||||
}
|
||||
}
|
||||
|
||||
String localVarUrl = uriBuilder.build().toString();
|
||||
GenericUrl genericUrl = new GenericUrl(localVarUrl);
|
||||
|
||||
HttpContent content = apiClient.new JacksonJsonHttpContent(null);
|
||||
return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.PUT, genericUrl, content).execute();
|
||||
}
|
||||
|
||||
public HttpResponse testQueryParameterCollectionFormatForHttpResponse(List<String> pipe, List<String> ioutil, List<String> http, List<String> url, List<String> context, Map<String, Object> params) throws IOException {
|
||||
// verify the required parameter 'pipe' is set
|
||||
if (pipe == null) {
|
||||
throw new IllegalArgumentException("Missing the required parameter 'pipe' when calling testQueryParameterCollectionFormat");
|
||||
}// verify the required parameter 'ioutil' is set
|
||||
if (ioutil == null) {
|
||||
throw new IllegalArgumentException("Missing the required parameter 'ioutil' when calling testQueryParameterCollectionFormat");
|
||||
}// verify the required parameter 'http' is set
|
||||
if (http == null) {
|
||||
throw new IllegalArgumentException("Missing the required parameter 'http' when calling testQueryParameterCollectionFormat");
|
||||
}// verify the required parameter 'url' is set
|
||||
if (url == null) {
|
||||
throw new IllegalArgumentException("Missing the required parameter 'url' when calling testQueryParameterCollectionFormat");
|
||||
}// verify the required parameter 'context' is set
|
||||
if (context == null) {
|
||||
throw new IllegalArgumentException("Missing the required parameter 'context' when calling testQueryParameterCollectionFormat");
|
||||
}
|
||||
UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/fake/test-query-paramters");
|
||||
|
||||
// Copy the params argument if present, to allow passing in immutable maps
|
||||
Map<String, Object> allParams = params == null ? new HashMap<String, Object>() : new HashMap<String, Object>(params);
|
||||
// Add the required query param 'pipe' to the map of query params
|
||||
allParams.put("pipe", pipe);
|
||||
// Add the required query param 'ioutil' to the map of query params
|
||||
allParams.put("ioutil", ioutil);
|
||||
// Add the required query param 'http' to the map of query params
|
||||
allParams.put("http", http);
|
||||
// Add the required query param 'url' to the map of query params
|
||||
allParams.put("url", url);
|
||||
// Add the required query param 'context' to the map of query params
|
||||
allParams.put("context", context);
|
||||
|
||||
for (Map.Entry<String, Object> entry: allParams.entrySet()) {
|
||||
String key = entry.getKey();
|
||||
Object value = entry.getValue();
|
||||
|
||||
if (key != null && value != null) {
|
||||
if (value instanceof Collection) {
|
||||
uriBuilder = uriBuilder.queryParam(key, ((Collection) value).toArray());
|
||||
} else if (value instanceof Object[]) {
|
||||
uriBuilder = uriBuilder.queryParam(key, (Object[]) value);
|
||||
} else {
|
||||
uriBuilder = uriBuilder.queryParam(key, value);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
String localVarUrl = uriBuilder.build().toString();
|
||||
GenericUrl genericUrl = new GenericUrl(localVarUrl);
|
||||
|
||||
HttpContent content = apiClient.new JacksonJsonHttpContent(null);
|
||||
return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.PUT, genericUrl, content).execute();
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
@ -76,8 +76,8 @@ public class FakeClassnameTags123Api {
|
||||
}
|
||||
UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/fake_classname_test");
|
||||
|
||||
String url = uriBuilder.build().toString();
|
||||
GenericUrl genericUrl = new GenericUrl(url);
|
||||
String localVarUrl = uriBuilder.build().toString();
|
||||
GenericUrl genericUrl = new GenericUrl(localVarUrl);
|
||||
|
||||
HttpContent content = apiClient.new JacksonJsonHttpContent(body);
|
||||
return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.PATCH, genericUrl, content).execute();
|
||||
@ -90,8 +90,8 @@ public class FakeClassnameTags123Api {
|
||||
}
|
||||
UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/fake_classname_test");
|
||||
|
||||
String url = uriBuilder.build().toString();
|
||||
GenericUrl genericUrl = new GenericUrl(url);
|
||||
String localVarUrl = uriBuilder.build().toString();
|
||||
GenericUrl genericUrl = new GenericUrl(localVarUrl);
|
||||
|
||||
HttpContent content = body == null ?
|
||||
apiClient.new JacksonJsonHttpContent(null) :
|
||||
@ -124,8 +124,8 @@ public class FakeClassnameTags123Api {
|
||||
}
|
||||
}
|
||||
|
||||
String url = uriBuilder.build().toString();
|
||||
GenericUrl genericUrl = new GenericUrl(url);
|
||||
String localVarUrl = uriBuilder.build().toString();
|
||||
GenericUrl genericUrl = new GenericUrl(localVarUrl);
|
||||
|
||||
HttpContent content = apiClient.new JacksonJsonHttpContent(body);
|
||||
return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.PATCH, genericUrl, content).execute();
|
||||
|
@ -72,8 +72,8 @@ public class PetApi {
|
||||
}
|
||||
UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/pet");
|
||||
|
||||
String url = uriBuilder.build().toString();
|
||||
GenericUrl genericUrl = new GenericUrl(url);
|
||||
String localVarUrl = uriBuilder.build().toString();
|
||||
GenericUrl genericUrl = new GenericUrl(localVarUrl);
|
||||
|
||||
HttpContent content = apiClient.new JacksonJsonHttpContent(body);
|
||||
return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.POST, genericUrl, content).execute();
|
||||
@ -86,8 +86,8 @@ public class PetApi {
|
||||
}
|
||||
UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/pet");
|
||||
|
||||
String url = uriBuilder.build().toString();
|
||||
GenericUrl genericUrl = new GenericUrl(url);
|
||||
String localVarUrl = uriBuilder.build().toString();
|
||||
GenericUrl genericUrl = new GenericUrl(localVarUrl);
|
||||
|
||||
HttpContent content = body == null ?
|
||||
apiClient.new JacksonJsonHttpContent(null) :
|
||||
@ -120,8 +120,8 @@ public class PetApi {
|
||||
}
|
||||
}
|
||||
|
||||
String url = uriBuilder.build().toString();
|
||||
GenericUrl genericUrl = new GenericUrl(url);
|
||||
String localVarUrl = uriBuilder.build().toString();
|
||||
GenericUrl genericUrl = new GenericUrl(localVarUrl);
|
||||
|
||||
HttpContent content = apiClient.new JacksonJsonHttpContent(body);
|
||||
return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.POST, genericUrl, content).execute();
|
||||
@ -162,8 +162,8 @@ public class PetApi {
|
||||
uriVariables.put("petId", petId);
|
||||
UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/pet/{petId}");
|
||||
|
||||
String url = uriBuilder.buildFromMap(uriVariables).toString();
|
||||
GenericUrl genericUrl = new GenericUrl(url);
|
||||
String localVarUrl = uriBuilder.buildFromMap(uriVariables).toString();
|
||||
GenericUrl genericUrl = new GenericUrl(localVarUrl);
|
||||
|
||||
HttpContent content = null;
|
||||
return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.DELETE, genericUrl, content).execute();
|
||||
@ -197,8 +197,8 @@ public class PetApi {
|
||||
}
|
||||
}
|
||||
|
||||
String url = uriBuilder.buildFromMap(uriVariables).toString();
|
||||
GenericUrl genericUrl = new GenericUrl(url);
|
||||
String localVarUrl = uriBuilder.buildFromMap(uriVariables).toString();
|
||||
GenericUrl genericUrl = new GenericUrl(localVarUrl);
|
||||
|
||||
HttpContent content = null;
|
||||
return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.DELETE, genericUrl, content).execute();
|
||||
@ -254,8 +254,8 @@ public class PetApi {
|
||||
}
|
||||
}
|
||||
|
||||
String url = uriBuilder.build().toString();
|
||||
GenericUrl genericUrl = new GenericUrl(url);
|
||||
String localVarUrl = uriBuilder.build().toString();
|
||||
GenericUrl genericUrl = new GenericUrl(localVarUrl);
|
||||
|
||||
HttpContent content = null;
|
||||
return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.GET, genericUrl, content).execute();
|
||||
@ -288,8 +288,8 @@ public class PetApi {
|
||||
}
|
||||
}
|
||||
|
||||
String url = uriBuilder.build().toString();
|
||||
GenericUrl genericUrl = new GenericUrl(url);
|
||||
String localVarUrl = uriBuilder.build().toString();
|
||||
GenericUrl genericUrl = new GenericUrl(localVarUrl);
|
||||
|
||||
HttpContent content = null;
|
||||
return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.GET, genericUrl, content).execute();
|
||||
@ -345,8 +345,8 @@ public class PetApi {
|
||||
}
|
||||
}
|
||||
|
||||
String url = uriBuilder.build().toString();
|
||||
GenericUrl genericUrl = new GenericUrl(url);
|
||||
String localVarUrl = uriBuilder.build().toString();
|
||||
GenericUrl genericUrl = new GenericUrl(localVarUrl);
|
||||
|
||||
HttpContent content = null;
|
||||
return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.GET, genericUrl, content).execute();
|
||||
@ -379,8 +379,8 @@ public class PetApi {
|
||||
}
|
||||
}
|
||||
|
||||
String url = uriBuilder.build().toString();
|
||||
GenericUrl genericUrl = new GenericUrl(url);
|
||||
String localVarUrl = uriBuilder.build().toString();
|
||||
GenericUrl genericUrl = new GenericUrl(localVarUrl);
|
||||
|
||||
HttpContent content = null;
|
||||
return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.GET, genericUrl, content).execute();
|
||||
@ -430,8 +430,8 @@ public class PetApi {
|
||||
uriVariables.put("petId", petId);
|
||||
UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/pet/{petId}");
|
||||
|
||||
String url = uriBuilder.buildFromMap(uriVariables).toString();
|
||||
GenericUrl genericUrl = new GenericUrl(url);
|
||||
String localVarUrl = uriBuilder.buildFromMap(uriVariables).toString();
|
||||
GenericUrl genericUrl = new GenericUrl(localVarUrl);
|
||||
|
||||
HttpContent content = null;
|
||||
return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.GET, genericUrl, content).execute();
|
||||
@ -465,8 +465,8 @@ public class PetApi {
|
||||
}
|
||||
}
|
||||
|
||||
String url = uriBuilder.buildFromMap(uriVariables).toString();
|
||||
GenericUrl genericUrl = new GenericUrl(url);
|
||||
String localVarUrl = uriBuilder.buildFromMap(uriVariables).toString();
|
||||
GenericUrl genericUrl = new GenericUrl(localVarUrl);
|
||||
|
||||
HttpContent content = null;
|
||||
return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.GET, genericUrl, content).execute();
|
||||
@ -507,8 +507,8 @@ public class PetApi {
|
||||
}
|
||||
UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/pet");
|
||||
|
||||
String url = uriBuilder.build().toString();
|
||||
GenericUrl genericUrl = new GenericUrl(url);
|
||||
String localVarUrl = uriBuilder.build().toString();
|
||||
GenericUrl genericUrl = new GenericUrl(localVarUrl);
|
||||
|
||||
HttpContent content = apiClient.new JacksonJsonHttpContent(body);
|
||||
return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.PUT, genericUrl, content).execute();
|
||||
@ -521,8 +521,8 @@ public class PetApi {
|
||||
}
|
||||
UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/pet");
|
||||
|
||||
String url = uriBuilder.build().toString();
|
||||
GenericUrl genericUrl = new GenericUrl(url);
|
||||
String localVarUrl = uriBuilder.build().toString();
|
||||
GenericUrl genericUrl = new GenericUrl(localVarUrl);
|
||||
|
||||
HttpContent content = body == null ?
|
||||
apiClient.new JacksonJsonHttpContent(null) :
|
||||
@ -555,8 +555,8 @@ public class PetApi {
|
||||
}
|
||||
}
|
||||
|
||||
String url = uriBuilder.build().toString();
|
||||
GenericUrl genericUrl = new GenericUrl(url);
|
||||
String localVarUrl = uriBuilder.build().toString();
|
||||
GenericUrl genericUrl = new GenericUrl(localVarUrl);
|
||||
|
||||
HttpContent content = apiClient.new JacksonJsonHttpContent(body);
|
||||
return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.PUT, genericUrl, content).execute();
|
||||
@ -596,8 +596,8 @@ public class PetApi {
|
||||
uriVariables.put("petId", petId);
|
||||
UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/pet/{petId}");
|
||||
|
||||
String url = uriBuilder.buildFromMap(uriVariables).toString();
|
||||
GenericUrl genericUrl = new GenericUrl(url);
|
||||
String localVarUrl = uriBuilder.buildFromMap(uriVariables).toString();
|
||||
GenericUrl genericUrl = new GenericUrl(localVarUrl);
|
||||
|
||||
HttpContent content = apiClient.new JacksonJsonHttpContent(null);
|
||||
return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.POST, genericUrl, content).execute();
|
||||
@ -631,8 +631,8 @@ public class PetApi {
|
||||
}
|
||||
}
|
||||
|
||||
String url = uriBuilder.buildFromMap(uriVariables).toString();
|
||||
GenericUrl genericUrl = new GenericUrl(url);
|
||||
String localVarUrl = uriBuilder.buildFromMap(uriVariables).toString();
|
||||
GenericUrl genericUrl = new GenericUrl(localVarUrl);
|
||||
|
||||
HttpContent content = apiClient.new JacksonJsonHttpContent(null);
|
||||
return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.POST, genericUrl, content).execute();
|
||||
@ -678,8 +678,8 @@ public class PetApi {
|
||||
uriVariables.put("petId", petId);
|
||||
UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/pet/{petId}/uploadImage");
|
||||
|
||||
String url = uriBuilder.buildFromMap(uriVariables).toString();
|
||||
GenericUrl genericUrl = new GenericUrl(url);
|
||||
String localVarUrl = uriBuilder.buildFromMap(uriVariables).toString();
|
||||
GenericUrl genericUrl = new GenericUrl(localVarUrl);
|
||||
|
||||
HttpContent content = apiClient.new JacksonJsonHttpContent(null);
|
||||
return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.POST, genericUrl, content).execute();
|
||||
@ -713,8 +713,8 @@ public class PetApi {
|
||||
}
|
||||
}
|
||||
|
||||
String url = uriBuilder.buildFromMap(uriVariables).toString();
|
||||
GenericUrl genericUrl = new GenericUrl(url);
|
||||
String localVarUrl = uriBuilder.buildFromMap(uriVariables).toString();
|
||||
GenericUrl genericUrl = new GenericUrl(localVarUrl);
|
||||
|
||||
HttpContent content = apiClient.new JacksonJsonHttpContent(null);
|
||||
return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.POST, genericUrl, content).execute();
|
||||
@ -764,8 +764,8 @@ public class PetApi {
|
||||
uriVariables.put("petId", petId);
|
||||
UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/fake/{petId}/uploadImageWithRequiredFile");
|
||||
|
||||
String url = uriBuilder.buildFromMap(uriVariables).toString();
|
||||
GenericUrl genericUrl = new GenericUrl(url);
|
||||
String localVarUrl = uriBuilder.buildFromMap(uriVariables).toString();
|
||||
GenericUrl genericUrl = new GenericUrl(localVarUrl);
|
||||
|
||||
HttpContent content = apiClient.new JacksonJsonHttpContent(null);
|
||||
return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.POST, genericUrl, content).execute();
|
||||
@ -802,8 +802,8 @@ public class PetApi {
|
||||
}
|
||||
}
|
||||
|
||||
String url = uriBuilder.buildFromMap(uriVariables).toString();
|
||||
GenericUrl genericUrl = new GenericUrl(url);
|
||||
String localVarUrl = uriBuilder.buildFromMap(uriVariables).toString();
|
||||
GenericUrl genericUrl = new GenericUrl(localVarUrl);
|
||||
|
||||
HttpContent content = apiClient.new JacksonJsonHttpContent(null);
|
||||
return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.POST, genericUrl, content).execute();
|
||||
|
@ -75,8 +75,8 @@ public class StoreApi {
|
||||
uriVariables.put("order_id", orderId);
|
||||
UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/store/order/{order_id}");
|
||||
|
||||
String url = uriBuilder.buildFromMap(uriVariables).toString();
|
||||
GenericUrl genericUrl = new GenericUrl(url);
|
||||
String localVarUrl = uriBuilder.buildFromMap(uriVariables).toString();
|
||||
GenericUrl genericUrl = new GenericUrl(localVarUrl);
|
||||
|
||||
HttpContent content = null;
|
||||
return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.DELETE, genericUrl, content).execute();
|
||||
@ -110,8 +110,8 @@ public class StoreApi {
|
||||
}
|
||||
}
|
||||
|
||||
String url = uriBuilder.buildFromMap(uriVariables).toString();
|
||||
GenericUrl genericUrl = new GenericUrl(url);
|
||||
String localVarUrl = uriBuilder.buildFromMap(uriVariables).toString();
|
||||
GenericUrl genericUrl = new GenericUrl(localVarUrl);
|
||||
|
||||
HttpContent content = null;
|
||||
return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.DELETE, genericUrl, content).execute();
|
||||
@ -149,8 +149,8 @@ public class StoreApi {
|
||||
|
||||
UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/store/inventory");
|
||||
|
||||
String url = uriBuilder.build().toString();
|
||||
GenericUrl genericUrl = new GenericUrl(url);
|
||||
String localVarUrl = uriBuilder.build().toString();
|
||||
GenericUrl genericUrl = new GenericUrl(localVarUrl);
|
||||
|
||||
HttpContent content = null;
|
||||
return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.GET, genericUrl, content).execute();
|
||||
@ -178,8 +178,8 @@ public class StoreApi {
|
||||
}
|
||||
}
|
||||
|
||||
String url = uriBuilder.build().toString();
|
||||
GenericUrl genericUrl = new GenericUrl(url);
|
||||
String localVarUrl = uriBuilder.build().toString();
|
||||
GenericUrl genericUrl = new GenericUrl(localVarUrl);
|
||||
|
||||
HttpContent content = null;
|
||||
return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.GET, genericUrl, content).execute();
|
||||
@ -229,8 +229,8 @@ public class StoreApi {
|
||||
uriVariables.put("order_id", orderId);
|
||||
UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/store/order/{order_id}");
|
||||
|
||||
String url = uriBuilder.buildFromMap(uriVariables).toString();
|
||||
GenericUrl genericUrl = new GenericUrl(url);
|
||||
String localVarUrl = uriBuilder.buildFromMap(uriVariables).toString();
|
||||
GenericUrl genericUrl = new GenericUrl(localVarUrl);
|
||||
|
||||
HttpContent content = null;
|
||||
return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.GET, genericUrl, content).execute();
|
||||
@ -264,8 +264,8 @@ public class StoreApi {
|
||||
}
|
||||
}
|
||||
|
||||
String url = uriBuilder.buildFromMap(uriVariables).toString();
|
||||
GenericUrl genericUrl = new GenericUrl(url);
|
||||
String localVarUrl = uriBuilder.buildFromMap(uriVariables).toString();
|
||||
GenericUrl genericUrl = new GenericUrl(localVarUrl);
|
||||
|
||||
HttpContent content = null;
|
||||
return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.GET, genericUrl, content).execute();
|
||||
@ -308,8 +308,8 @@ public class StoreApi {
|
||||
}
|
||||
UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/store/order");
|
||||
|
||||
String url = uriBuilder.build().toString();
|
||||
GenericUrl genericUrl = new GenericUrl(url);
|
||||
String localVarUrl = uriBuilder.build().toString();
|
||||
GenericUrl genericUrl = new GenericUrl(localVarUrl);
|
||||
|
||||
HttpContent content = apiClient.new JacksonJsonHttpContent(body);
|
||||
return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.POST, genericUrl, content).execute();
|
||||
@ -322,8 +322,8 @@ public class StoreApi {
|
||||
}
|
||||
UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/store/order");
|
||||
|
||||
String url = uriBuilder.build().toString();
|
||||
GenericUrl genericUrl = new GenericUrl(url);
|
||||
String localVarUrl = uriBuilder.build().toString();
|
||||
GenericUrl genericUrl = new GenericUrl(localVarUrl);
|
||||
|
||||
HttpContent content = body == null ?
|
||||
apiClient.new JacksonJsonHttpContent(null) :
|
||||
@ -356,8 +356,8 @@ public class StoreApi {
|
||||
}
|
||||
}
|
||||
|
||||
String url = uriBuilder.build().toString();
|
||||
GenericUrl genericUrl = new GenericUrl(url);
|
||||
String localVarUrl = uriBuilder.build().toString();
|
||||
GenericUrl genericUrl = new GenericUrl(localVarUrl);
|
||||
|
||||
HttpContent content = apiClient.new JacksonJsonHttpContent(body);
|
||||
return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.POST, genericUrl, content).execute();
|
||||
|
@ -70,8 +70,8 @@ public class UserApi {
|
||||
}
|
||||
UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/user");
|
||||
|
||||
String url = uriBuilder.build().toString();
|
||||
GenericUrl genericUrl = new GenericUrl(url);
|
||||
String localVarUrl = uriBuilder.build().toString();
|
||||
GenericUrl genericUrl = new GenericUrl(localVarUrl);
|
||||
|
||||
HttpContent content = apiClient.new JacksonJsonHttpContent(body);
|
||||
return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.POST, genericUrl, content).execute();
|
||||
@ -84,8 +84,8 @@ public class UserApi {
|
||||
}
|
||||
UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/user");
|
||||
|
||||
String url = uriBuilder.build().toString();
|
||||
GenericUrl genericUrl = new GenericUrl(url);
|
||||
String localVarUrl = uriBuilder.build().toString();
|
||||
GenericUrl genericUrl = new GenericUrl(localVarUrl);
|
||||
|
||||
HttpContent content = body == null ?
|
||||
apiClient.new JacksonJsonHttpContent(null) :
|
||||
@ -118,8 +118,8 @@ public class UserApi {
|
||||
}
|
||||
}
|
||||
|
||||
String url = uriBuilder.build().toString();
|
||||
GenericUrl genericUrl = new GenericUrl(url);
|
||||
String localVarUrl = uriBuilder.build().toString();
|
||||
GenericUrl genericUrl = new GenericUrl(localVarUrl);
|
||||
|
||||
HttpContent content = apiClient.new JacksonJsonHttpContent(body);
|
||||
return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.POST, genericUrl, content).execute();
|
||||
@ -154,8 +154,8 @@ public class UserApi {
|
||||
}
|
||||
UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/user/createWithArray");
|
||||
|
||||
String url = uriBuilder.build().toString();
|
||||
GenericUrl genericUrl = new GenericUrl(url);
|
||||
String localVarUrl = uriBuilder.build().toString();
|
||||
GenericUrl genericUrl = new GenericUrl(localVarUrl);
|
||||
|
||||
HttpContent content = apiClient.new JacksonJsonHttpContent(body);
|
||||
return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.POST, genericUrl, content).execute();
|
||||
@ -168,8 +168,8 @@ public class UserApi {
|
||||
}
|
||||
UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/user/createWithArray");
|
||||
|
||||
String url = uriBuilder.build().toString();
|
||||
GenericUrl genericUrl = new GenericUrl(url);
|
||||
String localVarUrl = uriBuilder.build().toString();
|
||||
GenericUrl genericUrl = new GenericUrl(localVarUrl);
|
||||
|
||||
HttpContent content = body == null ?
|
||||
apiClient.new JacksonJsonHttpContent(null) :
|
||||
@ -202,8 +202,8 @@ public class UserApi {
|
||||
}
|
||||
}
|
||||
|
||||
String url = uriBuilder.build().toString();
|
||||
GenericUrl genericUrl = new GenericUrl(url);
|
||||
String localVarUrl = uriBuilder.build().toString();
|
||||
GenericUrl genericUrl = new GenericUrl(localVarUrl);
|
||||
|
||||
HttpContent content = apiClient.new JacksonJsonHttpContent(body);
|
||||
return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.POST, genericUrl, content).execute();
|
||||
@ -238,8 +238,8 @@ public class UserApi {
|
||||
}
|
||||
UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/user/createWithList");
|
||||
|
||||
String url = uriBuilder.build().toString();
|
||||
GenericUrl genericUrl = new GenericUrl(url);
|
||||
String localVarUrl = uriBuilder.build().toString();
|
||||
GenericUrl genericUrl = new GenericUrl(localVarUrl);
|
||||
|
||||
HttpContent content = apiClient.new JacksonJsonHttpContent(body);
|
||||
return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.POST, genericUrl, content).execute();
|
||||
@ -252,8 +252,8 @@ public class UserApi {
|
||||
}
|
||||
UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/user/createWithList");
|
||||
|
||||
String url = uriBuilder.build().toString();
|
||||
GenericUrl genericUrl = new GenericUrl(url);
|
||||
String localVarUrl = uriBuilder.build().toString();
|
||||
GenericUrl genericUrl = new GenericUrl(localVarUrl);
|
||||
|
||||
HttpContent content = body == null ?
|
||||
apiClient.new JacksonJsonHttpContent(null) :
|
||||
@ -286,8 +286,8 @@ public class UserApi {
|
||||
}
|
||||
}
|
||||
|
||||
String url = uriBuilder.build().toString();
|
||||
GenericUrl genericUrl = new GenericUrl(url);
|
||||
String localVarUrl = uriBuilder.build().toString();
|
||||
GenericUrl genericUrl = new GenericUrl(localVarUrl);
|
||||
|
||||
HttpContent content = apiClient.new JacksonJsonHttpContent(body);
|
||||
return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.POST, genericUrl, content).execute();
|
||||
@ -329,8 +329,8 @@ public class UserApi {
|
||||
uriVariables.put("username", username);
|
||||
UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/user/{username}");
|
||||
|
||||
String url = uriBuilder.buildFromMap(uriVariables).toString();
|
||||
GenericUrl genericUrl = new GenericUrl(url);
|
||||
String localVarUrl = uriBuilder.buildFromMap(uriVariables).toString();
|
||||
GenericUrl genericUrl = new GenericUrl(localVarUrl);
|
||||
|
||||
HttpContent content = null;
|
||||
return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.DELETE, genericUrl, content).execute();
|
||||
@ -364,8 +364,8 @@ public class UserApi {
|
||||
}
|
||||
}
|
||||
|
||||
String url = uriBuilder.buildFromMap(uriVariables).toString();
|
||||
GenericUrl genericUrl = new GenericUrl(url);
|
||||
String localVarUrl = uriBuilder.buildFromMap(uriVariables).toString();
|
||||
GenericUrl genericUrl = new GenericUrl(localVarUrl);
|
||||
|
||||
HttpContent content = null;
|
||||
return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.DELETE, genericUrl, content).execute();
|
||||
@ -413,8 +413,8 @@ public class UserApi {
|
||||
uriVariables.put("username", username);
|
||||
UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/user/{username}");
|
||||
|
||||
String url = uriBuilder.buildFromMap(uriVariables).toString();
|
||||
GenericUrl genericUrl = new GenericUrl(url);
|
||||
String localVarUrl = uriBuilder.buildFromMap(uriVariables).toString();
|
||||
GenericUrl genericUrl = new GenericUrl(localVarUrl);
|
||||
|
||||
HttpContent content = null;
|
||||
return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.GET, genericUrl, content).execute();
|
||||
@ -448,8 +448,8 @@ public class UserApi {
|
||||
}
|
||||
}
|
||||
|
||||
String url = uriBuilder.buildFromMap(uriVariables).toString();
|
||||
GenericUrl genericUrl = new GenericUrl(url);
|
||||
String localVarUrl = uriBuilder.buildFromMap(uriVariables).toString();
|
||||
GenericUrl genericUrl = new GenericUrl(localVarUrl);
|
||||
|
||||
HttpContent content = null;
|
||||
return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.GET, genericUrl, content).execute();
|
||||
@ -518,8 +518,8 @@ public class UserApi {
|
||||
}
|
||||
}
|
||||
|
||||
String url = uriBuilder.build().toString();
|
||||
GenericUrl genericUrl = new GenericUrl(url);
|
||||
String localVarUrl = uriBuilder.build().toString();
|
||||
GenericUrl genericUrl = new GenericUrl(localVarUrl);
|
||||
|
||||
HttpContent content = null;
|
||||
return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.GET, genericUrl, content).execute();
|
||||
@ -557,8 +557,8 @@ public class UserApi {
|
||||
}
|
||||
}
|
||||
|
||||
String url = uriBuilder.build().toString();
|
||||
GenericUrl genericUrl = new GenericUrl(url);
|
||||
String localVarUrl = uriBuilder.build().toString();
|
||||
GenericUrl genericUrl = new GenericUrl(localVarUrl);
|
||||
|
||||
HttpContent content = null;
|
||||
return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.GET, genericUrl, content).execute();
|
||||
@ -588,8 +588,8 @@ public class UserApi {
|
||||
|
||||
UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/user/logout");
|
||||
|
||||
String url = uriBuilder.build().toString();
|
||||
GenericUrl genericUrl = new GenericUrl(url);
|
||||
String localVarUrl = uriBuilder.build().toString();
|
||||
GenericUrl genericUrl = new GenericUrl(localVarUrl);
|
||||
|
||||
HttpContent content = null;
|
||||
return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.GET, genericUrl, content).execute();
|
||||
@ -617,8 +617,8 @@ public class UserApi {
|
||||
}
|
||||
}
|
||||
|
||||
String url = uriBuilder.build().toString();
|
||||
GenericUrl genericUrl = new GenericUrl(url);
|
||||
String localVarUrl = uriBuilder.build().toString();
|
||||
GenericUrl genericUrl = new GenericUrl(localVarUrl);
|
||||
|
||||
HttpContent content = null;
|
||||
return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.GET, genericUrl, content).execute();
|
||||
@ -665,8 +665,8 @@ public class UserApi {
|
||||
uriVariables.put("username", username);
|
||||
UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/user/{username}");
|
||||
|
||||
String url = uriBuilder.buildFromMap(uriVariables).toString();
|
||||
GenericUrl genericUrl = new GenericUrl(url);
|
||||
String localVarUrl = uriBuilder.buildFromMap(uriVariables).toString();
|
||||
GenericUrl genericUrl = new GenericUrl(localVarUrl);
|
||||
|
||||
HttpContent content = apiClient.new JacksonJsonHttpContent(body);
|
||||
return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.PUT, genericUrl, content).execute();
|
||||
@ -685,8 +685,8 @@ public class UserApi {
|
||||
uriVariables.put("username", username);
|
||||
UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/user/{username}");
|
||||
|
||||
String url = uriBuilder.buildFromMap(uriVariables).toString();
|
||||
GenericUrl genericUrl = new GenericUrl(url);
|
||||
String localVarUrl = uriBuilder.buildFromMap(uriVariables).toString();
|
||||
GenericUrl genericUrl = new GenericUrl(localVarUrl);
|
||||
|
||||
HttpContent content = body == null ?
|
||||
apiClient.new JacksonJsonHttpContent(null) :
|
||||
@ -725,8 +725,8 @@ public class UserApi {
|
||||
}
|
||||
}
|
||||
|
||||
String url = uriBuilder.buildFromMap(uriVariables).toString();
|
||||
GenericUrl genericUrl = new GenericUrl(url);
|
||||
String localVarUrl = uriBuilder.buildFromMap(uriVariables).toString();
|
||||
GenericUrl genericUrl = new GenericUrl(localVarUrl);
|
||||
|
||||
HttpContent content = apiClient.new JacksonJsonHttpContent(body);
|
||||
return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.PUT, genericUrl, content).execute();
|
||||
|
@ -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 |
|
||||
|
||||
|
||||
|
||||
@ -912,3 +913,75 @@ No authorization required
|
||||
|-------------|-------------|------------------|
|
||||
| **200** | successful operation | - |
|
||||
|
||||
|
||||
## testQueryParameterCollectionFormat
|
||||
|
||||
> testQueryParameterCollectionFormat(pipe, ioutil, http, url, context)
|
||||
|
||||
|
||||
|
||||
To test the collection format in query parameters
|
||||
|
||||
### Example
|
||||
|
||||
```java
|
||||
// Import classes:
|
||||
import org.openapitools.client.ApiClient;
|
||||
import org.openapitools.client.ApiException;
|
||||
import org.openapitools.client.Configuration;
|
||||
import org.openapitools.client.models.*;
|
||||
import org.openapitools.client.api.FakeApi;
|
||||
|
||||
public class Example {
|
||||
public static void main(String[] args) {
|
||||
ApiClient defaultClient = Configuration.getDefaultApiClient();
|
||||
defaultClient.setBasePath("http://petstore.swagger.io:80/v2");
|
||||
|
||||
FakeApi apiInstance = new FakeApi(defaultClient);
|
||||
List<String> pipe = Arrays.asList(); // List<String> |
|
||||
List<String> ioutil = Arrays.asList(); // List<String> |
|
||||
List<String> http = Arrays.asList(); // List<String> |
|
||||
List<String> url = Arrays.asList(); // List<String> |
|
||||
List<String> context = Arrays.asList(); // List<String> |
|
||||
try {
|
||||
apiInstance.testQueryParameterCollectionFormat(pipe, ioutil, http, url, context);
|
||||
} catch (ApiException e) {
|
||||
System.err.println("Exception when calling FakeApi#testQueryParameterCollectionFormat");
|
||||
System.err.println("Status code: " + e.getCode());
|
||||
System.err.println("Reason: " + e.getResponseBody());
|
||||
System.err.println("Response headers: " + e.getResponseHeaders());
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
### Parameters
|
||||
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**pipe** | [**List<String>**](String.md)| |
|
||||
**ioutil** | [**List<String>**](String.md)| |
|
||||
**http** | [**List<String>**](String.md)| |
|
||||
**url** | [**List<String>**](String.md)| |
|
||||
**context** | [**List<String>**](String.md)| |
|
||||
|
||||
### Return type
|
||||
|
||||
null (empty response body)
|
||||
|
||||
### Authorization
|
||||
|
||||
No authorization required
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: Not defined
|
||||
- **Accept**: Not defined
|
||||
|
||||
### HTTP response details
|
||||
| Status code | Description | Response headers |
|
||||
|-------------|-------------|------------------|
|
||||
| **200** | Success | - |
|
||||
|
||||
|
@ -684,4 +684,74 @@ if (param2 != null)
|
||||
|
||||
apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null);
|
||||
}
|
||||
/**
|
||||
*
|
||||
* To test the collection format in query parameters
|
||||
* @param pipe (required)
|
||||
* @param ioutil (required)
|
||||
* @param http (required)
|
||||
* @param url (required)
|
||||
* @param context (required)
|
||||
* @throws ApiException if fails to make API call
|
||||
*/
|
||||
public void testQueryParameterCollectionFormat(List<String> pipe, List<String> ioutil, List<String> http, List<String> url, List<String> context) throws ApiException {
|
||||
Object localVarPostBody = null;
|
||||
|
||||
// verify the required parameter 'pipe' is set
|
||||
if (pipe == null) {
|
||||
throw new ApiException(400, "Missing the required parameter 'pipe' when calling testQueryParameterCollectionFormat");
|
||||
}
|
||||
|
||||
// verify the required parameter 'ioutil' is set
|
||||
if (ioutil == null) {
|
||||
throw new ApiException(400, "Missing the required parameter 'ioutil' when calling testQueryParameterCollectionFormat");
|
||||
}
|
||||
|
||||
// verify the required parameter 'http' is set
|
||||
if (http == null) {
|
||||
throw new ApiException(400, "Missing the required parameter 'http' when calling testQueryParameterCollectionFormat");
|
||||
}
|
||||
|
||||
// verify the required parameter 'url' is set
|
||||
if (url == null) {
|
||||
throw new ApiException(400, "Missing the required parameter 'url' when calling testQueryParameterCollectionFormat");
|
||||
}
|
||||
|
||||
// verify the required parameter 'context' is set
|
||||
if (context == null) {
|
||||
throw new ApiException(400, "Missing the required parameter 'context' when calling testQueryParameterCollectionFormat");
|
||||
}
|
||||
|
||||
// create path and map variables
|
||||
String localVarPath = "/fake/test-query-paramters";
|
||||
|
||||
// query params
|
||||
List<Pair> localVarQueryParams = new ArrayList<Pair>();
|
||||
List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>();
|
||||
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
|
||||
Map<String, Object> localVarFormParams = new HashMap<String, Object>();
|
||||
|
||||
localVarCollectionQueryParams.addAll(apiClient.parameterToPairs("csv", "pipe", pipe));
|
||||
localVarCollectionQueryParams.addAll(apiClient.parameterToPairs("csv", "ioutil", ioutil));
|
||||
localVarCollectionQueryParams.addAll(apiClient.parameterToPairs("space", "http", http));
|
||||
localVarCollectionQueryParams.addAll(apiClient.parameterToPairs("csv", "url", url));
|
||||
localVarCollectionQueryParams.addAll(apiClient.parameterToPairs("multi", "context", context));
|
||||
|
||||
|
||||
|
||||
final String[] localVarAccepts = {
|
||||
|
||||
};
|
||||
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
|
||||
|
||||
final String[] localVarContentTypes = {
|
||||
|
||||
};
|
||||
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
|
||||
|
||||
String[] localVarAuthNames = new String[] { };
|
||||
|
||||
|
||||
apiClient.invokeAPI(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null);
|
||||
}
|
||||
}
|
||||
|
@ -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 |
|
||||
|
||||
|
||||
|
||||
@ -912,3 +913,75 @@ No authorization required
|
||||
|-------------|-------------|------------------|
|
||||
| **200** | successful operation | - |
|
||||
|
||||
|
||||
## testQueryParameterCollectionFormat
|
||||
|
||||
> testQueryParameterCollectionFormat(pipe, ioutil, http, url, context)
|
||||
|
||||
|
||||
|
||||
To test the collection format in query parameters
|
||||
|
||||
### Example
|
||||
|
||||
```java
|
||||
// Import classes:
|
||||
import org.openapitools.client.ApiClient;
|
||||
import org.openapitools.client.ApiException;
|
||||
import org.openapitools.client.Configuration;
|
||||
import org.openapitools.client.models.*;
|
||||
import org.openapitools.client.api.FakeApi;
|
||||
|
||||
public class Example {
|
||||
public static void main(String[] args) {
|
||||
ApiClient defaultClient = Configuration.getDefaultApiClient();
|
||||
defaultClient.setBasePath("http://petstore.swagger.io:80/v2");
|
||||
|
||||
FakeApi apiInstance = new FakeApi(defaultClient);
|
||||
List<String> pipe = Arrays.asList(); // List<String> |
|
||||
List<String> ioutil = Arrays.asList(); // List<String> |
|
||||
List<String> http = Arrays.asList(); // List<String> |
|
||||
List<String> url = Arrays.asList(); // List<String> |
|
||||
List<String> context = Arrays.asList(); // List<String> |
|
||||
try {
|
||||
apiInstance.testQueryParameterCollectionFormat(pipe, ioutil, http, url, context);
|
||||
} catch (ApiException e) {
|
||||
System.err.println("Exception when calling FakeApi#testQueryParameterCollectionFormat");
|
||||
System.err.println("Status code: " + e.getCode());
|
||||
System.err.println("Reason: " + e.getResponseBody());
|
||||
System.err.println("Response headers: " + e.getResponseHeaders());
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
### Parameters
|
||||
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**pipe** | [**List<String>**](String.md)| |
|
||||
**ioutil** | [**List<String>**](String.md)| |
|
||||
**http** | [**List<String>**](String.md)| |
|
||||
**url** | [**List<String>**](String.md)| |
|
||||
**context** | [**List<String>**](String.md)| |
|
||||
|
||||
### Return type
|
||||
|
||||
null (empty response body)
|
||||
|
||||
### Authorization
|
||||
|
||||
No authorization required
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: Not defined
|
||||
- **Accept**: Not defined
|
||||
|
||||
### HTTP response details
|
||||
| Status code | Description | Response headers |
|
||||
|-------------|-------------|------------------|
|
||||
| **200** | Success | - |
|
||||
|
||||
|
@ -970,4 +970,99 @@ if (param2 != null)
|
||||
|
||||
return apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null);
|
||||
}
|
||||
/**
|
||||
*
|
||||
* To test the collection format in query parameters
|
||||
* @param pipe (required)
|
||||
* @param ioutil (required)
|
||||
* @param http (required)
|
||||
* @param url (required)
|
||||
* @param context (required)
|
||||
* @throws ApiException if fails to make API call
|
||||
* @http.response.details
|
||||
<table summary="Response Details" border="1">
|
||||
<tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
|
||||
<tr><td> 200 </td><td> Success </td><td> - </td></tr>
|
||||
</table>
|
||||
*/
|
||||
public void testQueryParameterCollectionFormat(List<String> pipe, List<String> ioutil, List<String> http, List<String> url, List<String> context) throws ApiException {
|
||||
|
||||
testQueryParameterCollectionFormatWithHttpInfo(pipe, ioutil, http, url, context);
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* To test the collection format in query parameters
|
||||
* @param pipe (required)
|
||||
* @param ioutil (required)
|
||||
* @param http (required)
|
||||
* @param url (required)
|
||||
* @param context (required)
|
||||
* @return ApiResponse<Void>
|
||||
* @throws ApiException if fails to make API call
|
||||
* @http.response.details
|
||||
<table summary="Response Details" border="1">
|
||||
<tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
|
||||
<tr><td> 200 </td><td> Success </td><td> - </td></tr>
|
||||
</table>
|
||||
*/
|
||||
public ApiResponse<Void> testQueryParameterCollectionFormatWithHttpInfo(List<String> pipe, List<String> ioutil, List<String> http, List<String> url, List<String> context) throws ApiException {
|
||||
Object localVarPostBody = new Object();
|
||||
|
||||
// verify the required parameter 'pipe' is set
|
||||
if (pipe == null) {
|
||||
throw new ApiException(400, "Missing the required parameter 'pipe' when calling testQueryParameterCollectionFormat");
|
||||
}
|
||||
|
||||
// verify the required parameter 'ioutil' is set
|
||||
if (ioutil == null) {
|
||||
throw new ApiException(400, "Missing the required parameter 'ioutil' when calling testQueryParameterCollectionFormat");
|
||||
}
|
||||
|
||||
// verify the required parameter 'http' is set
|
||||
if (http == null) {
|
||||
throw new ApiException(400, "Missing the required parameter 'http' when calling testQueryParameterCollectionFormat");
|
||||
}
|
||||
|
||||
// verify the required parameter 'url' is set
|
||||
if (url == null) {
|
||||
throw new ApiException(400, "Missing the required parameter 'url' when calling testQueryParameterCollectionFormat");
|
||||
}
|
||||
|
||||
// verify the required parameter 'context' is set
|
||||
if (context == null) {
|
||||
throw new ApiException(400, "Missing the required parameter 'context' when calling testQueryParameterCollectionFormat");
|
||||
}
|
||||
|
||||
// create path and map variables
|
||||
String localVarPath = "/fake/test-query-paramters";
|
||||
|
||||
// query params
|
||||
List<Pair> localVarQueryParams = new ArrayList<Pair>();
|
||||
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
|
||||
Map<String, Object> localVarFormParams = new HashMap<String, Object>();
|
||||
|
||||
localVarQueryParams.addAll(apiClient.parameterToPairs("csv", "pipe", pipe));
|
||||
localVarQueryParams.addAll(apiClient.parameterToPairs("csv", "ioutil", ioutil));
|
||||
localVarQueryParams.addAll(apiClient.parameterToPairs("space", "http", http));
|
||||
localVarQueryParams.addAll(apiClient.parameterToPairs("csv", "url", url));
|
||||
localVarQueryParams.addAll(apiClient.parameterToPairs("multi", "context", context));
|
||||
|
||||
|
||||
|
||||
final String[] localVarAccepts = {
|
||||
|
||||
};
|
||||
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
|
||||
|
||||
final String[] localVarContentTypes = {
|
||||
|
||||
};
|
||||
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
|
||||
|
||||
String[] localVarAuthNames = new String[] { };
|
||||
|
||||
|
||||
return apiClient.invokeAPI(localVarPath, "PUT", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null);
|
||||
}
|
||||
}
|
||||
|
@ -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 |
|
||||
|
||||
|
||||
|
||||
@ -912,3 +913,75 @@ No authorization required
|
||||
|-------------|-------------|------------------|
|
||||
| **200** | successful operation | - |
|
||||
|
||||
|
||||
## testQueryParameterCollectionFormat
|
||||
|
||||
> testQueryParameterCollectionFormat(pipe, ioutil, http, url, context)
|
||||
|
||||
|
||||
|
||||
To test the collection format in query parameters
|
||||
|
||||
### Example
|
||||
|
||||
```java
|
||||
// Import classes:
|
||||
import org.openapitools.client.ApiClient;
|
||||
import org.openapitools.client.ApiException;
|
||||
import org.openapitools.client.Configuration;
|
||||
import org.openapitools.client.models.*;
|
||||
import org.openapitools.client.api.FakeApi;
|
||||
|
||||
public class Example {
|
||||
public static void main(String[] args) {
|
||||
ApiClient defaultClient = Configuration.getDefaultApiClient();
|
||||
defaultClient.setBasePath("http://petstore.swagger.io:80/v2");
|
||||
|
||||
FakeApi apiInstance = new FakeApi(defaultClient);
|
||||
List<String> pipe = Arrays.asList(); // List<String> |
|
||||
List<String> ioutil = Arrays.asList(); // List<String> |
|
||||
List<String> http = Arrays.asList(); // List<String> |
|
||||
List<String> url = Arrays.asList(); // List<String> |
|
||||
List<String> context = Arrays.asList(); // List<String> |
|
||||
try {
|
||||
apiInstance.testQueryParameterCollectionFormat(pipe, ioutil, http, url, context);
|
||||
} catch (ApiException e) {
|
||||
System.err.println("Exception when calling FakeApi#testQueryParameterCollectionFormat");
|
||||
System.err.println("Status code: " + e.getCode());
|
||||
System.err.println("Reason: " + e.getResponseBody());
|
||||
System.err.println("Response headers: " + e.getResponseHeaders());
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
### Parameters
|
||||
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**pipe** | [**List<String>**](String.md)| |
|
||||
**ioutil** | [**List<String>**](String.md)| |
|
||||
**http** | [**List<String>**](String.md)| |
|
||||
**url** | [**List<String>**](String.md)| |
|
||||
**context** | [**List<String>**](String.md)| |
|
||||
|
||||
### Return type
|
||||
|
||||
null (empty response body)
|
||||
|
||||
### Authorization
|
||||
|
||||
No authorization required
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: Not defined
|
||||
- **Accept**: Not defined
|
||||
|
||||
### HTTP response details
|
||||
| Status code | Description | Response headers |
|
||||
|-------------|-------------|------------------|
|
||||
| **200** | Success | - |
|
||||
|
||||
|
@ -970,4 +970,99 @@ if (param2 != null)
|
||||
|
||||
return apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null);
|
||||
}
|
||||
/**
|
||||
*
|
||||
* To test the collection format in query parameters
|
||||
* @param pipe (required)
|
||||
* @param ioutil (required)
|
||||
* @param http (required)
|
||||
* @param url (required)
|
||||
* @param context (required)
|
||||
* @throws ApiException if fails to make API call
|
||||
* @http.response.details
|
||||
<table summary="Response Details" border="1">
|
||||
<tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
|
||||
<tr><td> 200 </td><td> Success </td><td> - </td></tr>
|
||||
</table>
|
||||
*/
|
||||
public void testQueryParameterCollectionFormat(List<String> pipe, List<String> ioutil, List<String> http, List<String> url, List<String> context) throws ApiException {
|
||||
|
||||
testQueryParameterCollectionFormatWithHttpInfo(pipe, ioutil, http, url, context);
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* To test the collection format in query parameters
|
||||
* @param pipe (required)
|
||||
* @param ioutil (required)
|
||||
* @param http (required)
|
||||
* @param url (required)
|
||||
* @param context (required)
|
||||
* @return ApiResponse<Void>
|
||||
* @throws ApiException if fails to make API call
|
||||
* @http.response.details
|
||||
<table summary="Response Details" border="1">
|
||||
<tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
|
||||
<tr><td> 200 </td><td> Success </td><td> - </td></tr>
|
||||
</table>
|
||||
*/
|
||||
public ApiResponse<Void> testQueryParameterCollectionFormatWithHttpInfo(List<String> pipe, List<String> ioutil, List<String> http, List<String> url, List<String> context) throws ApiException {
|
||||
Object localVarPostBody = new Object();
|
||||
|
||||
// verify the required parameter 'pipe' is set
|
||||
if (pipe == null) {
|
||||
throw new ApiException(400, "Missing the required parameter 'pipe' when calling testQueryParameterCollectionFormat");
|
||||
}
|
||||
|
||||
// verify the required parameter 'ioutil' is set
|
||||
if (ioutil == null) {
|
||||
throw new ApiException(400, "Missing the required parameter 'ioutil' when calling testQueryParameterCollectionFormat");
|
||||
}
|
||||
|
||||
// verify the required parameter 'http' is set
|
||||
if (http == null) {
|
||||
throw new ApiException(400, "Missing the required parameter 'http' when calling testQueryParameterCollectionFormat");
|
||||
}
|
||||
|
||||
// verify the required parameter 'url' is set
|
||||
if (url == null) {
|
||||
throw new ApiException(400, "Missing the required parameter 'url' when calling testQueryParameterCollectionFormat");
|
||||
}
|
||||
|
||||
// verify the required parameter 'context' is set
|
||||
if (context == null) {
|
||||
throw new ApiException(400, "Missing the required parameter 'context' when calling testQueryParameterCollectionFormat");
|
||||
}
|
||||
|
||||
// create path and map variables
|
||||
String localVarPath = "/fake/test-query-paramters";
|
||||
|
||||
// query params
|
||||
List<Pair> localVarQueryParams = new ArrayList<Pair>();
|
||||
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
|
||||
Map<String, Object> localVarFormParams = new HashMap<String, Object>();
|
||||
|
||||
localVarQueryParams.addAll(apiClient.parameterToPairs("csv", "pipe", pipe));
|
||||
localVarQueryParams.addAll(apiClient.parameterToPairs("csv", "ioutil", ioutil));
|
||||
localVarQueryParams.addAll(apiClient.parameterToPairs("space", "http", http));
|
||||
localVarQueryParams.addAll(apiClient.parameterToPairs("csv", "url", url));
|
||||
localVarQueryParams.addAll(apiClient.parameterToPairs("multi", "context", context));
|
||||
|
||||
|
||||
|
||||
final String[] localVarAccepts = {
|
||||
|
||||
};
|
||||
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
|
||||
|
||||
final String[] localVarContentTypes = {
|
||||
|
||||
};
|
||||
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
|
||||
|
||||
String[] localVarAuthNames = new String[] { };
|
||||
|
||||
|
||||
return apiClient.invokeAPI(localVarPath, "PUT", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null);
|
||||
}
|
||||
}
|
||||
|
@ -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 |
|
||||
|
||||
|
||||
|
||||
@ -912,3 +913,75 @@ No authorization required
|
||||
|-------------|-------------|------------------|
|
||||
| **200** | successful operation | - |
|
||||
|
||||
|
||||
## testQueryParameterCollectionFormat
|
||||
|
||||
> testQueryParameterCollectionFormat(pipe, ioutil, http, url, context)
|
||||
|
||||
|
||||
|
||||
To test the collection format in query parameters
|
||||
|
||||
### Example
|
||||
|
||||
```java
|
||||
// Import classes:
|
||||
import org.openapitools.client.ApiClient;
|
||||
import org.openapitools.client.ApiException;
|
||||
import org.openapitools.client.Configuration;
|
||||
import org.openapitools.client.models.*;
|
||||
import org.openapitools.client.api.FakeApi;
|
||||
|
||||
public class Example {
|
||||
public static void main(String[] args) {
|
||||
ApiClient defaultClient = Configuration.getDefaultApiClient();
|
||||
defaultClient.setBasePath("http://petstore.swagger.io:80/v2");
|
||||
|
||||
FakeApi apiInstance = new FakeApi(defaultClient);
|
||||
List<String> pipe = Arrays.asList(); // List<String> |
|
||||
List<String> ioutil = Arrays.asList(); // List<String> |
|
||||
List<String> http = Arrays.asList(); // List<String> |
|
||||
List<String> url = Arrays.asList(); // List<String> |
|
||||
List<String> context = Arrays.asList(); // List<String> |
|
||||
try {
|
||||
apiInstance.testQueryParameterCollectionFormat(pipe, ioutil, http, url, context);
|
||||
} catch (ApiException e) {
|
||||
System.err.println("Exception when calling FakeApi#testQueryParameterCollectionFormat");
|
||||
System.err.println("Status code: " + e.getCode());
|
||||
System.err.println("Reason: " + e.getResponseBody());
|
||||
System.err.println("Response headers: " + e.getResponseHeaders());
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
### Parameters
|
||||
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**pipe** | [**List<String>**](String.md)| |
|
||||
**ioutil** | [**List<String>**](String.md)| |
|
||||
**http** | [**List<String>**](String.md)| |
|
||||
**url** | [**List<String>**](String.md)| |
|
||||
**context** | [**List<String>**](String.md)| |
|
||||
|
||||
### Return type
|
||||
|
||||
null (empty response body)
|
||||
|
||||
### Authorization
|
||||
|
||||
No authorization required
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: Not defined
|
||||
- **Accept**: Not defined
|
||||
|
||||
### HTTP response details
|
||||
| Status code | Description | Response headers |
|
||||
|-------------|-------------|------------------|
|
||||
| **200** | Success | - |
|
||||
|
||||
|
@ -970,4 +970,99 @@ if (param2 != null)
|
||||
|
||||
return apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null);
|
||||
}
|
||||
/**
|
||||
*
|
||||
* To test the collection format in query parameters
|
||||
* @param pipe (required)
|
||||
* @param ioutil (required)
|
||||
* @param http (required)
|
||||
* @param url (required)
|
||||
* @param context (required)
|
||||
* @throws ApiException if fails to make API call
|
||||
* @http.response.details
|
||||
<table summary="Response Details" border="1">
|
||||
<tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
|
||||
<tr><td> 200 </td><td> Success </td><td> - </td></tr>
|
||||
</table>
|
||||
*/
|
||||
public void testQueryParameterCollectionFormat(List<String> pipe, List<String> ioutil, List<String> http, List<String> url, List<String> context) throws ApiException {
|
||||
|
||||
testQueryParameterCollectionFormatWithHttpInfo(pipe, ioutil, http, url, context);
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* To test the collection format in query parameters
|
||||
* @param pipe (required)
|
||||
* @param ioutil (required)
|
||||
* @param http (required)
|
||||
* @param url (required)
|
||||
* @param context (required)
|
||||
* @return ApiResponse<Void>
|
||||
* @throws ApiException if fails to make API call
|
||||
* @http.response.details
|
||||
<table summary="Response Details" border="1">
|
||||
<tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
|
||||
<tr><td> 200 </td><td> Success </td><td> - </td></tr>
|
||||
</table>
|
||||
*/
|
||||
public ApiResponse<Void> testQueryParameterCollectionFormatWithHttpInfo(List<String> pipe, List<String> ioutil, List<String> http, List<String> url, List<String> context) throws ApiException {
|
||||
Object localVarPostBody = new Object();
|
||||
|
||||
// verify the required parameter 'pipe' is set
|
||||
if (pipe == null) {
|
||||
throw new ApiException(400, "Missing the required parameter 'pipe' when calling testQueryParameterCollectionFormat");
|
||||
}
|
||||
|
||||
// verify the required parameter 'ioutil' is set
|
||||
if (ioutil == null) {
|
||||
throw new ApiException(400, "Missing the required parameter 'ioutil' when calling testQueryParameterCollectionFormat");
|
||||
}
|
||||
|
||||
// verify the required parameter 'http' is set
|
||||
if (http == null) {
|
||||
throw new ApiException(400, "Missing the required parameter 'http' when calling testQueryParameterCollectionFormat");
|
||||
}
|
||||
|
||||
// verify the required parameter 'url' is set
|
||||
if (url == null) {
|
||||
throw new ApiException(400, "Missing the required parameter 'url' when calling testQueryParameterCollectionFormat");
|
||||
}
|
||||
|
||||
// verify the required parameter 'context' is set
|
||||
if (context == null) {
|
||||
throw new ApiException(400, "Missing the required parameter 'context' when calling testQueryParameterCollectionFormat");
|
||||
}
|
||||
|
||||
// create path and map variables
|
||||
String localVarPath = "/fake/test-query-paramters";
|
||||
|
||||
// query params
|
||||
List<Pair> localVarQueryParams = new ArrayList<Pair>();
|
||||
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
|
||||
Map<String, Object> localVarFormParams = new HashMap<String, Object>();
|
||||
|
||||
localVarQueryParams.addAll(apiClient.parameterToPairs("csv", "pipe", pipe));
|
||||
localVarQueryParams.addAll(apiClient.parameterToPairs("csv", "ioutil", ioutil));
|
||||
localVarQueryParams.addAll(apiClient.parameterToPairs("space", "http", http));
|
||||
localVarQueryParams.addAll(apiClient.parameterToPairs("csv", "url", url));
|
||||
localVarQueryParams.addAll(apiClient.parameterToPairs("multi", "context", context));
|
||||
|
||||
|
||||
|
||||
final String[] localVarAccepts = {
|
||||
|
||||
};
|
||||
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
|
||||
|
||||
final String[] localVarContentTypes = {
|
||||
|
||||
};
|
||||
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
|
||||
|
||||
String[] localVarAuthNames = new String[] { };
|
||||
|
||||
|
||||
return apiClient.invokeAPI(localVarPath, "PUT", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null);
|
||||
}
|
||||
}
|
||||
|
@ -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 |
|
||||
|
||||
|
||||
|
||||
@ -912,3 +913,75 @@ No authorization required
|
||||
|-------------|-------------|------------------|
|
||||
| **200** | successful operation | - |
|
||||
|
||||
|
||||
## testQueryParameterCollectionFormat
|
||||
|
||||
> testQueryParameterCollectionFormat(pipe, ioutil, http, url, context)
|
||||
|
||||
|
||||
|
||||
To test the collection format in query parameters
|
||||
|
||||
### Example
|
||||
|
||||
```java
|
||||
// Import classes:
|
||||
import org.openapitools.client.ApiClient;
|
||||
import org.openapitools.client.ApiException;
|
||||
import org.openapitools.client.Configuration;
|
||||
import org.openapitools.client.models.*;
|
||||
import org.openapitools.client.api.FakeApi;
|
||||
|
||||
public class Example {
|
||||
public static void main(String[] args) {
|
||||
ApiClient defaultClient = Configuration.getDefaultApiClient();
|
||||
defaultClient.setBasePath("http://petstore.swagger.io:80/v2");
|
||||
|
||||
FakeApi apiInstance = new FakeApi(defaultClient);
|
||||
List<String> pipe = Arrays.asList(); // List<String> |
|
||||
List<String> ioutil = Arrays.asList(); // List<String> |
|
||||
List<String> http = Arrays.asList(); // List<String> |
|
||||
List<String> url = Arrays.asList(); // List<String> |
|
||||
List<String> context = Arrays.asList(); // List<String> |
|
||||
try {
|
||||
apiInstance.testQueryParameterCollectionFormat(pipe, ioutil, http, url, context);
|
||||
} catch (ApiException e) {
|
||||
System.err.println("Exception when calling FakeApi#testQueryParameterCollectionFormat");
|
||||
System.err.println("Status code: " + e.getCode());
|
||||
System.err.println("Reason: " + e.getResponseBody());
|
||||
System.err.println("Response headers: " + e.getResponseHeaders());
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
### Parameters
|
||||
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**pipe** | [**List<String>**](String.md)| |
|
||||
**ioutil** | [**List<String>**](String.md)| |
|
||||
**http** | [**List<String>**](String.md)| |
|
||||
**url** | [**List<String>**](String.md)| |
|
||||
**context** | [**List<String>**](String.md)| |
|
||||
|
||||
### Return type
|
||||
|
||||
null (empty response body)
|
||||
|
||||
### Authorization
|
||||
|
||||
No authorization required
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: Not defined
|
||||
- **Accept**: Not defined
|
||||
|
||||
### HTTP response details
|
||||
| Status code | Description | Response headers |
|
||||
|-------------|-------------|------------------|
|
||||
| **200** | Success | - |
|
||||
|
||||
|
@ -730,4 +730,80 @@ public class FakeApi {
|
||||
throw new ApiException(e);
|
||||
}
|
||||
}
|
||||
/**
|
||||
*
|
||||
* To test the collection format in query parameters
|
||||
* @param pipe (required)
|
||||
* @param ioutil (required)
|
||||
* @param http (required)
|
||||
* @param url (required)
|
||||
* @param context (required)
|
||||
* @throws ApiException if fails to make API call
|
||||
*/
|
||||
public void testQueryParameterCollectionFormat(List<String> pipe, List<String> ioutil, List<String> http, List<String> url, List<String> context) throws ApiException {
|
||||
// verify the required parameter 'pipe' is set
|
||||
if (pipe == null) {
|
||||
throw new ApiException(400, "Missing the required parameter 'pipe' when calling testQueryParameterCollectionFormat");
|
||||
}
|
||||
// verify the required parameter 'ioutil' is set
|
||||
if (ioutil == null) {
|
||||
throw new ApiException(400, "Missing the required parameter 'ioutil' when calling testQueryParameterCollectionFormat");
|
||||
}
|
||||
// verify the required parameter 'http' is set
|
||||
if (http == null) {
|
||||
throw new ApiException(400, "Missing the required parameter 'http' when calling testQueryParameterCollectionFormat");
|
||||
}
|
||||
// verify the required parameter 'url' is set
|
||||
if (url == null) {
|
||||
throw new ApiException(400, "Missing the required parameter 'url' when calling testQueryParameterCollectionFormat");
|
||||
}
|
||||
// verify the required parameter 'context' is set
|
||||
if (context == null) {
|
||||
throw new ApiException(400, "Missing the required parameter 'context' when calling testQueryParameterCollectionFormat");
|
||||
}
|
||||
|
||||
HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder();
|
||||
|
||||
String localVarPath = "/fake/test-query-paramters";
|
||||
|
||||
List<Pair> localVarQueryParams = new ArrayList<>();
|
||||
localVarQueryParams.addAll(ApiClient.parameterToPairs("csv", "pipe", pipe));
|
||||
localVarQueryParams.addAll(ApiClient.parameterToPairs("csv", "ioutil", ioutil));
|
||||
localVarQueryParams.addAll(ApiClient.parameterToPairs("space", "http", http));
|
||||
localVarQueryParams.addAll(ApiClient.parameterToPairs("csv", "url", url));
|
||||
localVarQueryParams.addAll(ApiClient.parameterToPairs("multi", "context", context));
|
||||
|
||||
if (!localVarQueryParams.isEmpty()) {
|
||||
StringJoiner queryJoiner = new StringJoiner("&");
|
||||
localVarQueryParams.forEach(p -> queryJoiner.add(p.getName() + '=' + p.getValue()));
|
||||
localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath + '?' + queryJoiner.toString()));
|
||||
} else {
|
||||
localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath));
|
||||
}
|
||||
|
||||
localVarRequestBuilder.header("Accept", "application/json");
|
||||
|
||||
try {
|
||||
localVarRequestBuilder.method("PUT", HttpRequest.BodyPublishers.noBody());
|
||||
if (memberVarReadTimeout != null) {
|
||||
localVarRequestBuilder.timeout(memberVarReadTimeout);
|
||||
}
|
||||
if (memberVarInterceptor != null) {
|
||||
memberVarInterceptor.accept(localVarRequestBuilder);
|
||||
}
|
||||
|
||||
HttpResponse<InputStream> localVarResponse = memberVarHttpClient.send(
|
||||
localVarRequestBuilder.build(),
|
||||
HttpResponse.BodyHandlers.ofInputStream());
|
||||
if (localVarResponse.statusCode()/ 100 != 2) {
|
||||
throw new ApiException(localVarResponse.statusCode(),
|
||||
"testQueryParameterCollectionFormat call received non-success response",
|
||||
localVarResponse.headers(),
|
||||
localVarResponse.body() == null ? null : new String(localVarResponse.body().readAllBytes()));
|
||||
}
|
||||
|
||||
} catch (IOException | InterruptedException e) {
|
||||
throw new ApiException(e);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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 |
|
||||
|
||||
|
||||
<a name="createXmlItem"></a>
|
||||
@ -877,3 +878,72 @@ No authorization required
|
||||
|-------------|-------------|------------------|
|
||||
**200** | successful operation | - |
|
||||
|
||||
<a name="testQueryParameterCollectionFormat"></a>
|
||||
# **testQueryParameterCollectionFormat**
|
||||
> testQueryParameterCollectionFormat(pipe, ioutil, http, url, context)
|
||||
|
||||
|
||||
|
||||
To test the collection format in query parameters
|
||||
|
||||
### Example
|
||||
```java
|
||||
// Import classes:
|
||||
import org.openapitools.client.ApiClient;
|
||||
import org.openapitools.client.ApiException;
|
||||
import org.openapitools.client.Configuration;
|
||||
import org.openapitools.client.models.*;
|
||||
import org.openapitools.client.api.FakeApi;
|
||||
|
||||
public class Example {
|
||||
public static void main(String[] args) {
|
||||
ApiClient defaultClient = Configuration.getDefaultApiClient();
|
||||
defaultClient.setBasePath("http://petstore.swagger.io:80/v2");
|
||||
|
||||
FakeApi apiInstance = new FakeApi(defaultClient);
|
||||
List<String> pipe = Arrays.asList(); // List<String> |
|
||||
List<String> ioutil = Arrays.asList(); // List<String> |
|
||||
List<String> http = Arrays.asList(); // List<String> |
|
||||
List<String> url = Arrays.asList(); // List<String> |
|
||||
List<String> context = Arrays.asList(); // List<String> |
|
||||
try {
|
||||
apiInstance.testQueryParameterCollectionFormat(pipe, ioutil, http, url, context);
|
||||
} catch (ApiException e) {
|
||||
System.err.println("Exception when calling FakeApi#testQueryParameterCollectionFormat");
|
||||
System.err.println("Status code: " + e.getCode());
|
||||
System.err.println("Reason: " + e.getResponseBody());
|
||||
System.err.println("Response headers: " + e.getResponseHeaders());
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
### Parameters
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**pipe** | [**List<String>**](String.md)| |
|
||||
**ioutil** | [**List<String>**](String.md)| |
|
||||
**http** | [**List<String>**](String.md)| |
|
||||
**url** | [**List<String>**](String.md)| |
|
||||
**context** | [**List<String>**](String.md)| |
|
||||
|
||||
### Return type
|
||||
|
||||
null (empty response body)
|
||||
|
||||
### Authorization
|
||||
|
||||
No authorization required
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: Not defined
|
||||
- **Accept**: Not defined
|
||||
|
||||
### HTTP response details
|
||||
| Status code | Description | Response headers |
|
||||
|-------------|-------------|------------------|
|
||||
**200** | Success | - |
|
||||
|
||||
|
@ -1745,4 +1745,165 @@ public class FakeApi {
|
||||
localVarApiClient.executeAsync(localVarCall, _callback);
|
||||
return localVarCall;
|
||||
}
|
||||
/**
|
||||
* Build call for testQueryParameterCollectionFormat
|
||||
* @param pipe (required)
|
||||
* @param ioutil (required)
|
||||
* @param http (required)
|
||||
* @param url (required)
|
||||
* @param context (required)
|
||||
* @param _callback Callback for upload/download progress
|
||||
* @return Call to execute
|
||||
* @throws ApiException If fail to serialize the request body object
|
||||
* @http.response.details
|
||||
<table summary="Response Details" border="1">
|
||||
<tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
|
||||
<tr><td> 200 </td><td> Success </td><td> - </td></tr>
|
||||
</table>
|
||||
*/
|
||||
public okhttp3.Call testQueryParameterCollectionFormatCall(List<String> pipe, List<String> ioutil, List<String> http, List<String> url, List<String> context, final ApiCallback _callback) throws ApiException {
|
||||
Object localVarPostBody = new Object();
|
||||
|
||||
// create path and map variables
|
||||
String localVarPath = "/fake/test-query-paramters";
|
||||
|
||||
List<Pair> localVarQueryParams = new ArrayList<Pair>();
|
||||
List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>();
|
||||
if (pipe != null) {
|
||||
localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("csv", "pipe", pipe));
|
||||
}
|
||||
|
||||
if (ioutil != null) {
|
||||
localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("csv", "ioutil", ioutil));
|
||||
}
|
||||
|
||||
if (http != null) {
|
||||
localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("space", "http", http));
|
||||
}
|
||||
|
||||
if (url != null) {
|
||||
localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("csv", "url", url));
|
||||
}
|
||||
|
||||
if (context != null) {
|
||||
localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "context", context));
|
||||
}
|
||||
|
||||
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
|
||||
Map<String, Object> localVarFormParams = new HashMap<String, Object>();
|
||||
final String[] localVarAccepts = {
|
||||
|
||||
};
|
||||
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
|
||||
if (localVarAccept != null) {
|
||||
localVarHeaderParams.put("Accept", localVarAccept);
|
||||
}
|
||||
|
||||
final String[] localVarContentTypes = {
|
||||
|
||||
};
|
||||
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
|
||||
localVarHeaderParams.put("Content-Type", localVarContentType);
|
||||
|
||||
String[] localVarAuthNames = new String[] { };
|
||||
return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback);
|
||||
}
|
||||
|
||||
@SuppressWarnings("rawtypes")
|
||||
private okhttp3.Call testQueryParameterCollectionFormatValidateBeforeCall(List<String> pipe, List<String> ioutil, List<String> http, List<String> url, List<String> context, final ApiCallback _callback) throws ApiException {
|
||||
|
||||
// verify the required parameter 'pipe' is set
|
||||
if (pipe == null) {
|
||||
throw new ApiException("Missing the required parameter 'pipe' when calling testQueryParameterCollectionFormat(Async)");
|
||||
}
|
||||
|
||||
// verify the required parameter 'ioutil' is set
|
||||
if (ioutil == null) {
|
||||
throw new ApiException("Missing the required parameter 'ioutil' when calling testQueryParameterCollectionFormat(Async)");
|
||||
}
|
||||
|
||||
// verify the required parameter 'http' is set
|
||||
if (http == null) {
|
||||
throw new ApiException("Missing the required parameter 'http' when calling testQueryParameterCollectionFormat(Async)");
|
||||
}
|
||||
|
||||
// verify the required parameter 'url' is set
|
||||
if (url == null) {
|
||||
throw new ApiException("Missing the required parameter 'url' when calling testQueryParameterCollectionFormat(Async)");
|
||||
}
|
||||
|
||||
// verify the required parameter 'context' is set
|
||||
if (context == null) {
|
||||
throw new ApiException("Missing the required parameter 'context' when calling testQueryParameterCollectionFormat(Async)");
|
||||
}
|
||||
|
||||
|
||||
okhttp3.Call localVarCall = testQueryParameterCollectionFormatCall(pipe, ioutil, http, url, context, _callback);
|
||||
return localVarCall;
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* To test the collection format in query parameters
|
||||
* @param pipe (required)
|
||||
* @param ioutil (required)
|
||||
* @param http (required)
|
||||
* @param url (required)
|
||||
* @param context (required)
|
||||
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
|
||||
* @http.response.details
|
||||
<table summary="Response Details" border="1">
|
||||
<tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
|
||||
<tr><td> 200 </td><td> Success </td><td> - </td></tr>
|
||||
</table>
|
||||
*/
|
||||
public void testQueryParameterCollectionFormat(List<String> pipe, List<String> ioutil, List<String> http, List<String> url, List<String> context) throws ApiException {
|
||||
testQueryParameterCollectionFormatWithHttpInfo(pipe, ioutil, http, url, context);
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* To test the collection format in query parameters
|
||||
* @param pipe (required)
|
||||
* @param ioutil (required)
|
||||
* @param http (required)
|
||||
* @param url (required)
|
||||
* @param context (required)
|
||||
* @return ApiResponse<Void>
|
||||
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
|
||||
* @http.response.details
|
||||
<table summary="Response Details" border="1">
|
||||
<tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
|
||||
<tr><td> 200 </td><td> Success </td><td> - </td></tr>
|
||||
</table>
|
||||
*/
|
||||
public ApiResponse<Void> testQueryParameterCollectionFormatWithHttpInfo(List<String> pipe, List<String> ioutil, List<String> http, List<String> url, List<String> context) throws ApiException {
|
||||
okhttp3.Call localVarCall = testQueryParameterCollectionFormatValidateBeforeCall(pipe, ioutil, http, url, context, null);
|
||||
return localVarApiClient.execute(localVarCall);
|
||||
}
|
||||
|
||||
/**
|
||||
* (asynchronously)
|
||||
* To test the collection format in query parameters
|
||||
* @param pipe (required)
|
||||
* @param ioutil (required)
|
||||
* @param http (required)
|
||||
* @param url (required)
|
||||
* @param context (required)
|
||||
* @param _callback The callback to be executed when the API call finishes
|
||||
* @return The request call
|
||||
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
|
||||
* @http.response.details
|
||||
<table summary="Response Details" border="1">
|
||||
<tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
|
||||
<tr><td> 200 </td><td> Success </td><td> - </td></tr>
|
||||
</table>
|
||||
*/
|
||||
public okhttp3.Call testQueryParameterCollectionFormatAsync(List<String> pipe, List<String> ioutil, List<String> http, List<String> url, List<String> context, final ApiCallback<Void> _callback) throws ApiException {
|
||||
|
||||
okhttp3.Call localVarCall = testQueryParameterCollectionFormatValidateBeforeCall(pipe, ioutil, http, url, context, _callback);
|
||||
localVarApiClient.executeAsync(localVarCall, _callback);
|
||||
return localVarCall;
|
||||
}
|
||||
}
|
||||
|
@ -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 |
|
||||
|
||||
|
||||
<a name="createXmlItem"></a>
|
||||
@ -877,3 +878,72 @@ No authorization required
|
||||
|-------------|-------------|------------------|
|
||||
**200** | successful operation | - |
|
||||
|
||||
<a name="testQueryParameterCollectionFormat"></a>
|
||||
# **testQueryParameterCollectionFormat**
|
||||
> testQueryParameterCollectionFormat(pipe, ioutil, http, url, context)
|
||||
|
||||
|
||||
|
||||
To test the collection format in query parameters
|
||||
|
||||
### Example
|
||||
```java
|
||||
// Import classes:
|
||||
import org.openapitools.client.ApiClient;
|
||||
import org.openapitools.client.ApiException;
|
||||
import org.openapitools.client.Configuration;
|
||||
import org.openapitools.client.models.*;
|
||||
import org.openapitools.client.api.FakeApi;
|
||||
|
||||
public class Example {
|
||||
public static void main(String[] args) {
|
||||
ApiClient defaultClient = Configuration.getDefaultApiClient();
|
||||
defaultClient.setBasePath("http://petstore.swagger.io:80/v2");
|
||||
|
||||
FakeApi apiInstance = new FakeApi(defaultClient);
|
||||
List<String> pipe = Arrays.asList(); // List<String> |
|
||||
List<String> ioutil = Arrays.asList(); // List<String> |
|
||||
List<String> http = Arrays.asList(); // List<String> |
|
||||
List<String> url = Arrays.asList(); // List<String> |
|
||||
List<String> context = Arrays.asList(); // List<String> |
|
||||
try {
|
||||
apiInstance.testQueryParameterCollectionFormat(pipe, ioutil, http, url, context);
|
||||
} catch (ApiException e) {
|
||||
System.err.println("Exception when calling FakeApi#testQueryParameterCollectionFormat");
|
||||
System.err.println("Status code: " + e.getCode());
|
||||
System.err.println("Reason: " + e.getResponseBody());
|
||||
System.err.println("Response headers: " + e.getResponseHeaders());
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
### Parameters
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**pipe** | [**List<String>**](String.md)| |
|
||||
**ioutil** | [**List<String>**](String.md)| |
|
||||
**http** | [**List<String>**](String.md)| |
|
||||
**url** | [**List<String>**](String.md)| |
|
||||
**context** | [**List<String>**](String.md)| |
|
||||
|
||||
### Return type
|
||||
|
||||
null (empty response body)
|
||||
|
||||
### Authorization
|
||||
|
||||
No authorization required
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: Not defined
|
||||
- **Accept**: Not defined
|
||||
|
||||
### HTTP response details
|
||||
| Status code | Description | Response headers |
|
||||
|-------------|-------------|------------------|
|
||||
**200** | Success | - |
|
||||
|
||||
|
@ -1745,4 +1745,165 @@ public class FakeApi {
|
||||
localVarApiClient.executeAsync(localVarCall, _callback);
|
||||
return localVarCall;
|
||||
}
|
||||
/**
|
||||
* Build call for testQueryParameterCollectionFormat
|
||||
* @param pipe (required)
|
||||
* @param ioutil (required)
|
||||
* @param http (required)
|
||||
* @param url (required)
|
||||
* @param context (required)
|
||||
* @param _callback Callback for upload/download progress
|
||||
* @return Call to execute
|
||||
* @throws ApiException If fail to serialize the request body object
|
||||
* @http.response.details
|
||||
<table summary="Response Details" border="1">
|
||||
<tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
|
||||
<tr><td> 200 </td><td> Success </td><td> - </td></tr>
|
||||
</table>
|
||||
*/
|
||||
public okhttp3.Call testQueryParameterCollectionFormatCall(List<String> pipe, List<String> ioutil, List<String> http, List<String> url, List<String> context, final ApiCallback _callback) throws ApiException {
|
||||
Object localVarPostBody = new Object();
|
||||
|
||||
// create path and map variables
|
||||
String localVarPath = "/fake/test-query-paramters";
|
||||
|
||||
List<Pair> localVarQueryParams = new ArrayList<Pair>();
|
||||
List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>();
|
||||
if (pipe != null) {
|
||||
localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("csv", "pipe", pipe));
|
||||
}
|
||||
|
||||
if (ioutil != null) {
|
||||
localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("csv", "ioutil", ioutil));
|
||||
}
|
||||
|
||||
if (http != null) {
|
||||
localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("space", "http", http));
|
||||
}
|
||||
|
||||
if (url != null) {
|
||||
localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("csv", "url", url));
|
||||
}
|
||||
|
||||
if (context != null) {
|
||||
localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "context", context));
|
||||
}
|
||||
|
||||
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
|
||||
Map<String, Object> localVarFormParams = new HashMap<String, Object>();
|
||||
final String[] localVarAccepts = {
|
||||
|
||||
};
|
||||
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
|
||||
if (localVarAccept != null) {
|
||||
localVarHeaderParams.put("Accept", localVarAccept);
|
||||
}
|
||||
|
||||
final String[] localVarContentTypes = {
|
||||
|
||||
};
|
||||
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
|
||||
localVarHeaderParams.put("Content-Type", localVarContentType);
|
||||
|
||||
String[] localVarAuthNames = new String[] { };
|
||||
return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback);
|
||||
}
|
||||
|
||||
@SuppressWarnings("rawtypes")
|
||||
private okhttp3.Call testQueryParameterCollectionFormatValidateBeforeCall(List<String> pipe, List<String> ioutil, List<String> http, List<String> url, List<String> context, final ApiCallback _callback) throws ApiException {
|
||||
|
||||
// verify the required parameter 'pipe' is set
|
||||
if (pipe == null) {
|
||||
throw new ApiException("Missing the required parameter 'pipe' when calling testQueryParameterCollectionFormat(Async)");
|
||||
}
|
||||
|
||||
// verify the required parameter 'ioutil' is set
|
||||
if (ioutil == null) {
|
||||
throw new ApiException("Missing the required parameter 'ioutil' when calling testQueryParameterCollectionFormat(Async)");
|
||||
}
|
||||
|
||||
// verify the required parameter 'http' is set
|
||||
if (http == null) {
|
||||
throw new ApiException("Missing the required parameter 'http' when calling testQueryParameterCollectionFormat(Async)");
|
||||
}
|
||||
|
||||
// verify the required parameter 'url' is set
|
||||
if (url == null) {
|
||||
throw new ApiException("Missing the required parameter 'url' when calling testQueryParameterCollectionFormat(Async)");
|
||||
}
|
||||
|
||||
// verify the required parameter 'context' is set
|
||||
if (context == null) {
|
||||
throw new ApiException("Missing the required parameter 'context' when calling testQueryParameterCollectionFormat(Async)");
|
||||
}
|
||||
|
||||
|
||||
okhttp3.Call localVarCall = testQueryParameterCollectionFormatCall(pipe, ioutil, http, url, context, _callback);
|
||||
return localVarCall;
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* To test the collection format in query parameters
|
||||
* @param pipe (required)
|
||||
* @param ioutil (required)
|
||||
* @param http (required)
|
||||
* @param url (required)
|
||||
* @param context (required)
|
||||
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
|
||||
* @http.response.details
|
||||
<table summary="Response Details" border="1">
|
||||
<tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
|
||||
<tr><td> 200 </td><td> Success </td><td> - </td></tr>
|
||||
</table>
|
||||
*/
|
||||
public void testQueryParameterCollectionFormat(List<String> pipe, List<String> ioutil, List<String> http, List<String> url, List<String> context) throws ApiException {
|
||||
testQueryParameterCollectionFormatWithHttpInfo(pipe, ioutil, http, url, context);
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* To test the collection format in query parameters
|
||||
* @param pipe (required)
|
||||
* @param ioutil (required)
|
||||
* @param http (required)
|
||||
* @param url (required)
|
||||
* @param context (required)
|
||||
* @return ApiResponse<Void>
|
||||
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
|
||||
* @http.response.details
|
||||
<table summary="Response Details" border="1">
|
||||
<tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
|
||||
<tr><td> 200 </td><td> Success </td><td> - </td></tr>
|
||||
</table>
|
||||
*/
|
||||
public ApiResponse<Void> testQueryParameterCollectionFormatWithHttpInfo(List<String> pipe, List<String> ioutil, List<String> http, List<String> url, List<String> context) throws ApiException {
|
||||
okhttp3.Call localVarCall = testQueryParameterCollectionFormatValidateBeforeCall(pipe, ioutil, http, url, context, null);
|
||||
return localVarApiClient.execute(localVarCall);
|
||||
}
|
||||
|
||||
/**
|
||||
* (asynchronously)
|
||||
* To test the collection format in query parameters
|
||||
* @param pipe (required)
|
||||
* @param ioutil (required)
|
||||
* @param http (required)
|
||||
* @param url (required)
|
||||
* @param context (required)
|
||||
* @param _callback The callback to be executed when the API call finishes
|
||||
* @return The request call
|
||||
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
|
||||
* @http.response.details
|
||||
<table summary="Response Details" border="1">
|
||||
<tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
|
||||
<tr><td> 200 </td><td> Success </td><td> - </td></tr>
|
||||
</table>
|
||||
*/
|
||||
public okhttp3.Call testQueryParameterCollectionFormatAsync(List<String> pipe, List<String> ioutil, List<String> http, List<String> url, List<String> context, final ApiCallback<Void> _callback) throws ApiException {
|
||||
|
||||
okhttp3.Call localVarCall = testQueryParameterCollectionFormatValidateBeforeCall(pipe, ioutil, http, url, context, _callback);
|
||||
localVarApiClient.executeAsync(localVarCall, _callback);
|
||||
return localVarCall;
|
||||
}
|
||||
}
|
||||
|
@ -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 |
|
||||
|
||||
|
||||
<a name="createXmlItem"></a>
|
||||
@ -588,3 +589,53 @@ No authorization required
|
||||
- **Content-Type**: application/x-www-form-urlencoded
|
||||
- **Accept**: Not defined
|
||||
|
||||
<a name="testQueryParameterCollectionFormat"></a>
|
||||
# **testQueryParameterCollectionFormat**
|
||||
> testQueryParameterCollectionFormat(pipe, ioutil, http, url, context)
|
||||
|
||||
|
||||
|
||||
To test the collection format in query parameters
|
||||
|
||||
### Example
|
||||
```java
|
||||
// Import classes:
|
||||
//import org.openapitools.client.ApiClient;
|
||||
//import io.restassured.builder.RequestSpecBuilder;
|
||||
//import io.restassured.filter.log.ErrorLoggingFilter;
|
||||
|
||||
FakeApi api = ApiClient.api(ApiClient.Config.apiConfig().withReqSpecSupplier(
|
||||
() -> new RequestSpecBuilder()
|
||||
.setBaseUri("http://petstore.swagger.io:80/v2"))).fake();
|
||||
|
||||
api.testQueryParameterCollectionFormat()
|
||||
.pipeQuery(pipe)
|
||||
.ioutilQuery(ioutil)
|
||||
.httpQuery(http)
|
||||
.urlQuery(url)
|
||||
.contextQuery(context).execute(r -> r.prettyPeek());
|
||||
```
|
||||
|
||||
### Parameters
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**pipe** | [**List<String>**](String.md)| | [default to new ArrayList<String>()]
|
||||
**ioutil** | [**List<String>**](String.md)| | [default to new ArrayList<String>()]
|
||||
**http** | [**List<String>**](String.md)| | [default to new ArrayList<String>()]
|
||||
**url** | [**List<String>**](String.md)| | [default to new ArrayList<String>()]
|
||||
**context** | [**List<String>**](String.md)| | [default to new ArrayList<String>()]
|
||||
|
||||
### Return type
|
||||
|
||||
null (empty response body)
|
||||
|
||||
### Authorization
|
||||
|
||||
No authorization required
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: Not defined
|
||||
- **Accept**: Not defined
|
||||
|
||||
|
@ -199,6 +199,16 @@ public class FakeApi {
|
||||
return new TestJsonFormDataOper(createReqSpec());
|
||||
}
|
||||
|
||||
@ApiOperation(value = "",
|
||||
notes = "To test the collection format in query parameters",
|
||||
nickname = "testQueryParameterCollectionFormat",
|
||||
tags = { "fake" })
|
||||
@ApiResponses(value = {
|
||||
@ApiResponse(code = 200, message = "Success") })
|
||||
public TestQueryParameterCollectionFormatOper testQueryParameterCollectionFormat() {
|
||||
return new TestQueryParameterCollectionFormatOper(createReqSpec());
|
||||
}
|
||||
|
||||
/**
|
||||
* Customize request specification
|
||||
* @param reqSpecCustomizer consumer to modify the RequestSpecBuilder
|
||||
@ -1375,4 +1385,113 @@ public class FakeApi {
|
||||
return this;
|
||||
}
|
||||
}
|
||||
/**
|
||||
*
|
||||
* To test the collection format in query parameters
|
||||
*
|
||||
* @see #pipeQuery (required)
|
||||
* @see #ioutilQuery (required)
|
||||
* @see #httpQuery (required)
|
||||
* @see #urlQuery (required)
|
||||
* @see #contextQuery (required)
|
||||
*/
|
||||
public static class TestQueryParameterCollectionFormatOper {
|
||||
|
||||
public static final Method REQ_METHOD = PUT;
|
||||
public static final String REQ_URI = "/fake/test-query-paramters";
|
||||
|
||||
private RequestSpecBuilder reqSpec;
|
||||
private ResponseSpecBuilder respSpec;
|
||||
|
||||
public TestQueryParameterCollectionFormatOper(RequestSpecBuilder reqSpec) {
|
||||
this.reqSpec = reqSpec;
|
||||
reqSpec.setAccept("application/json");
|
||||
this.respSpec = new ResponseSpecBuilder();
|
||||
}
|
||||
|
||||
/**
|
||||
* PUT /fake/test-query-paramters
|
||||
* @param handler handler
|
||||
* @param <T> type
|
||||
* @return type
|
||||
*/
|
||||
public <T> T execute(Function<Response, T> handler) {
|
||||
return handler.apply(RestAssured.given().spec(reqSpec.build()).expect().spec(respSpec.build()).when().request(REQ_METHOD, REQ_URI));
|
||||
}
|
||||
|
||||
public static final String PIPE_QUERY = "pipe";
|
||||
|
||||
/**
|
||||
* @param pipe (List<String>) (required)
|
||||
* @return operation
|
||||
*/
|
||||
public TestQueryParameterCollectionFormatOper pipeQuery(Object... pipe) {
|
||||
reqSpec.addQueryParam(PIPE_QUERY, pipe);
|
||||
return this;
|
||||
}
|
||||
|
||||
public static final String IOUTIL_QUERY = "ioutil";
|
||||
|
||||
/**
|
||||
* @param ioutil (List<String>) (required)
|
||||
* @return operation
|
||||
*/
|
||||
public TestQueryParameterCollectionFormatOper ioutilQuery(Object... ioutil) {
|
||||
reqSpec.addQueryParam(IOUTIL_QUERY, ioutil);
|
||||
return this;
|
||||
}
|
||||
|
||||
public static final String HTTP_QUERY = "http";
|
||||
|
||||
/**
|
||||
* @param http (List<String>) (required)
|
||||
* @return operation
|
||||
*/
|
||||
public TestQueryParameterCollectionFormatOper httpQuery(Object... http) {
|
||||
reqSpec.addQueryParam(HTTP_QUERY, http);
|
||||
return this;
|
||||
}
|
||||
|
||||
public static final String URL_QUERY = "url";
|
||||
|
||||
/**
|
||||
* @param url (List<String>) (required)
|
||||
* @return operation
|
||||
*/
|
||||
public TestQueryParameterCollectionFormatOper urlQuery(Object... url) {
|
||||
reqSpec.addQueryParam(URL_QUERY, url);
|
||||
return this;
|
||||
}
|
||||
|
||||
public static final String CONTEXT_QUERY = "context";
|
||||
|
||||
/**
|
||||
* @param context (List<String>) (required)
|
||||
* @return operation
|
||||
*/
|
||||
public TestQueryParameterCollectionFormatOper contextQuery(Object... context) {
|
||||
reqSpec.addQueryParam(CONTEXT_QUERY, context);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Customize request specification
|
||||
* @param reqSpecCustomizer consumer to modify the RequestSpecBuilder
|
||||
* @return operation
|
||||
*/
|
||||
public TestQueryParameterCollectionFormatOper reqSpec(Consumer<RequestSpecBuilder> reqSpecCustomizer) {
|
||||
reqSpecCustomizer.accept(reqSpec);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Customize response specification
|
||||
* @param respSpecCustomizer consumer to modify the ResponseSpecBuilder
|
||||
* @return operation
|
||||
*/
|
||||
public TestQueryParameterCollectionFormatOper respSpec(Consumer<ResponseSpecBuilder> respSpecCustomizer) {
|
||||
respSpecCustomizer.accept(respSpec);
|
||||
return this;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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 |
|
||||
|
||||
|
||||
|
||||
@ -912,3 +913,75 @@ No authorization required
|
||||
|-------------|-------------|------------------|
|
||||
| **200** | successful operation | - |
|
||||
|
||||
|
||||
## testQueryParameterCollectionFormat
|
||||
|
||||
> testQueryParameterCollectionFormat(pipe, ioutil, http, url, context)
|
||||
|
||||
|
||||
|
||||
To test the collection format in query parameters
|
||||
|
||||
### Example
|
||||
|
||||
```java
|
||||
// Import classes:
|
||||
import org.openapitools.client.ApiClient;
|
||||
import org.openapitools.client.ApiException;
|
||||
import org.openapitools.client.Configuration;
|
||||
import org.openapitools.client.models.*;
|
||||
import org.openapitools.client.api.FakeApi;
|
||||
|
||||
public class Example {
|
||||
public static void main(String[] args) {
|
||||
ApiClient defaultClient = Configuration.getDefaultApiClient();
|
||||
defaultClient.setBasePath("http://petstore.swagger.io:80/v2");
|
||||
|
||||
FakeApi apiInstance = new FakeApi(defaultClient);
|
||||
List<String> pipe = Arrays.asList(); // List<String> |
|
||||
List<String> ioutil = Arrays.asList(); // List<String> |
|
||||
List<String> http = Arrays.asList(); // List<String> |
|
||||
List<String> url = Arrays.asList(); // List<String> |
|
||||
List<String> context = Arrays.asList(); // List<String> |
|
||||
try {
|
||||
apiInstance.testQueryParameterCollectionFormat(pipe, ioutil, http, url, context);
|
||||
} catch (ApiException e) {
|
||||
System.err.println("Exception when calling FakeApi#testQueryParameterCollectionFormat");
|
||||
System.err.println("Status code: " + e.getCode());
|
||||
System.err.println("Reason: " + e.getResponseBody());
|
||||
System.err.println("Response headers: " + e.getResponseHeaders());
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
### Parameters
|
||||
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**pipe** | [**List<String>**](String.md)| |
|
||||
**ioutil** | [**List<String>**](String.md)| |
|
||||
**http** | [**List<String>**](String.md)| |
|
||||
**url** | [**List<String>**](String.md)| |
|
||||
**context** | [**List<String>**](String.md)| |
|
||||
|
||||
### Return type
|
||||
|
||||
null (empty response body)
|
||||
|
||||
### Authorization
|
||||
|
||||
No authorization required
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: Not defined
|
||||
- **Accept**: Not defined
|
||||
|
||||
### HTTP response details
|
||||
| Status code | Description | Response headers |
|
||||
|-------------|-------------|------------------|
|
||||
| **200** | Success | - |
|
||||
|
||||
|
@ -657,4 +657,73 @@ if (param2 != null)
|
||||
|
||||
apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null);
|
||||
}
|
||||
/**
|
||||
*
|
||||
* To test the collection format in query parameters
|
||||
* @param pipe (required)
|
||||
* @param ioutil (required)
|
||||
* @param http (required)
|
||||
* @param url (required)
|
||||
* @param context (required)
|
||||
* @throws ApiException if fails to make API call
|
||||
*/
|
||||
public void testQueryParameterCollectionFormat(List<String> pipe, List<String> ioutil, List<String> http, List<String> url, List<String> context) throws ApiException {
|
||||
Object localVarPostBody = new Object();
|
||||
|
||||
// verify the required parameter 'pipe' is set
|
||||
if (pipe == null) {
|
||||
throw new ApiException(400, "Missing the required parameter 'pipe' when calling testQueryParameterCollectionFormat");
|
||||
}
|
||||
|
||||
// verify the required parameter 'ioutil' is set
|
||||
if (ioutil == null) {
|
||||
throw new ApiException(400, "Missing the required parameter 'ioutil' when calling testQueryParameterCollectionFormat");
|
||||
}
|
||||
|
||||
// verify the required parameter 'http' is set
|
||||
if (http == null) {
|
||||
throw new ApiException(400, "Missing the required parameter 'http' when calling testQueryParameterCollectionFormat");
|
||||
}
|
||||
|
||||
// verify the required parameter 'url' is set
|
||||
if (url == null) {
|
||||
throw new ApiException(400, "Missing the required parameter 'url' when calling testQueryParameterCollectionFormat");
|
||||
}
|
||||
|
||||
// verify the required parameter 'context' is set
|
||||
if (context == null) {
|
||||
throw new ApiException(400, "Missing the required parameter 'context' when calling testQueryParameterCollectionFormat");
|
||||
}
|
||||
|
||||
// create path and map variables
|
||||
String localVarPath = "/fake/test-query-paramters".replaceAll("\\{format\\}","json");
|
||||
|
||||
// query params
|
||||
List<Pair> localVarQueryParams = new ArrayList<Pair>();
|
||||
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
|
||||
Map<String, Object> localVarFormParams = new HashMap<String, Object>();
|
||||
|
||||
localVarQueryParams.addAll(apiClient.parameterToPairs("csv", "pipe", pipe));
|
||||
localVarQueryParams.addAll(apiClient.parameterToPairs("csv", "ioutil", ioutil));
|
||||
localVarQueryParams.addAll(apiClient.parameterToPairs("space", "http", http));
|
||||
localVarQueryParams.addAll(apiClient.parameterToPairs("csv", "url", url));
|
||||
localVarQueryParams.addAll(apiClient.parameterToPairs("multi", "context", context));
|
||||
|
||||
|
||||
|
||||
final String[] localVarAccepts = {
|
||||
|
||||
};
|
||||
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
|
||||
|
||||
final String[] localVarContentTypes = {
|
||||
|
||||
};
|
||||
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
|
||||
|
||||
String[] localVarAuthNames = new String[] { };
|
||||
|
||||
|
||||
apiClient.invokeAPI(localVarPath, "PUT", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null);
|
||||
}
|
||||
}
|
||||
|
@ -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 |
|
||||
|
||||
|
||||
|
||||
@ -912,3 +913,75 @@ No authorization required
|
||||
|-------------|-------------|------------------|
|
||||
| **200** | successful operation | - |
|
||||
|
||||
|
||||
## testQueryParameterCollectionFormat
|
||||
|
||||
> testQueryParameterCollectionFormat(pipe, ioutil, http, url, context)
|
||||
|
||||
|
||||
|
||||
To test the collection format in query parameters
|
||||
|
||||
### Example
|
||||
|
||||
```java
|
||||
// Import classes:
|
||||
import org.openapitools.client.ApiClient;
|
||||
import org.openapitools.client.ApiException;
|
||||
import org.openapitools.client.Configuration;
|
||||
import org.openapitools.client.models.*;
|
||||
import org.openapitools.client.api.FakeApi;
|
||||
|
||||
public class Example {
|
||||
public static void main(String[] args) {
|
||||
ApiClient defaultClient = Configuration.getDefaultApiClient();
|
||||
defaultClient.setBasePath("http://petstore.swagger.io:80/v2");
|
||||
|
||||
FakeApi apiInstance = new FakeApi(defaultClient);
|
||||
List<String> pipe = Arrays.asList(); // List<String> |
|
||||
List<String> ioutil = Arrays.asList(); // List<String> |
|
||||
List<String> http = Arrays.asList(); // List<String> |
|
||||
List<String> url = Arrays.asList(); // List<String> |
|
||||
List<String> context = Arrays.asList(); // List<String> |
|
||||
try {
|
||||
apiInstance.testQueryParameterCollectionFormat(pipe, ioutil, http, url, context);
|
||||
} catch (ApiException e) {
|
||||
System.err.println("Exception when calling FakeApi#testQueryParameterCollectionFormat");
|
||||
System.err.println("Status code: " + e.getCode());
|
||||
System.err.println("Reason: " + e.getResponseBody());
|
||||
System.err.println("Response headers: " + e.getResponseHeaders());
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
### Parameters
|
||||
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**pipe** | [**List<String>**](String.md)| |
|
||||
**ioutil** | [**List<String>**](String.md)| |
|
||||
**http** | [**List<String>**](String.md)| |
|
||||
**url** | [**List<String>**](String.md)| |
|
||||
**context** | [**List<String>**](String.md)| |
|
||||
|
||||
### Return type
|
||||
|
||||
null (empty response body)
|
||||
|
||||
### Authorization
|
||||
|
||||
No authorization required
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: Not defined
|
||||
- **Accept**: Not defined
|
||||
|
||||
### HTTP response details
|
||||
| Status code | Description | Response headers |
|
||||
|-------------|-------------|------------------|
|
||||
| **200** | Success | - |
|
||||
|
||||
|
@ -589,4 +589,65 @@ public class FakeApi {
|
||||
ParameterizedTypeReference<Void> returnType = new ParameterizedTypeReference<Void>() {};
|
||||
apiClient.invokeAPI(path, HttpMethod.GET, queryParams, postBody, headerParams, formParams, accept, contentType, authNames, returnType);
|
||||
}
|
||||
/**
|
||||
*
|
||||
* To test the collection format in query parameters
|
||||
* <p><b>200</b> - Success
|
||||
* @param pipe The pipe parameter
|
||||
* @param ioutil The ioutil parameter
|
||||
* @param http The http parameter
|
||||
* @param url The url parameter
|
||||
* @param context The context parameter
|
||||
* @throws RestClientException if an error occurs while attempting to invoke the API
|
||||
*/
|
||||
public void testQueryParameterCollectionFormat(List<String> pipe, List<String> ioutil, List<String> http, List<String> url, List<String> context) throws RestClientException {
|
||||
Object postBody = null;
|
||||
|
||||
// verify the required parameter 'pipe' is set
|
||||
if (pipe == null) {
|
||||
throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'pipe' when calling testQueryParameterCollectionFormat");
|
||||
}
|
||||
|
||||
// verify the required parameter 'ioutil' is set
|
||||
if (ioutil == null) {
|
||||
throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'ioutil' when calling testQueryParameterCollectionFormat");
|
||||
}
|
||||
|
||||
// verify the required parameter 'http' is set
|
||||
if (http == null) {
|
||||
throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'http' when calling testQueryParameterCollectionFormat");
|
||||
}
|
||||
|
||||
// verify the required parameter 'url' is set
|
||||
if (url == null) {
|
||||
throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'url' when calling testQueryParameterCollectionFormat");
|
||||
}
|
||||
|
||||
// verify the required parameter 'context' is set
|
||||
if (context == null) {
|
||||
throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'context' when calling testQueryParameterCollectionFormat");
|
||||
}
|
||||
|
||||
String path = apiClient.expandPath("/fake/test-query-paramters", Collections.<String, Object>emptyMap());
|
||||
|
||||
final MultiValueMap<String, String> queryParams = new LinkedMultiValueMap<String, String>();
|
||||
final HttpHeaders headerParams = new HttpHeaders();
|
||||
final MultiValueMap<String, Object> formParams = new LinkedMultiValueMap<String, Object>();
|
||||
|
||||
queryParams.putAll(apiClient.parameterToMultiValueMap(ApiClient.CollectionFormat.valueOf("csv".toUpperCase(Locale.ROOT)), "pipe", pipe));
|
||||
queryParams.putAll(apiClient.parameterToMultiValueMap(ApiClient.CollectionFormat.valueOf("csv".toUpperCase(Locale.ROOT)), "ioutil", ioutil));
|
||||
queryParams.putAll(apiClient.parameterToMultiValueMap(ApiClient.CollectionFormat.valueOf("space".toUpperCase(Locale.ROOT)), "http", http));
|
||||
queryParams.putAll(apiClient.parameterToMultiValueMap(ApiClient.CollectionFormat.valueOf("csv".toUpperCase(Locale.ROOT)), "url", url));
|
||||
queryParams.putAll(apiClient.parameterToMultiValueMap(ApiClient.CollectionFormat.valueOf("multi".toUpperCase(Locale.ROOT)), "context", context));
|
||||
|
||||
final String[] accepts = { };
|
||||
final List<MediaType> accept = apiClient.selectHeaderAccept(accepts);
|
||||
final String[] contentTypes = { };
|
||||
final MediaType contentType = apiClient.selectHeaderContentType(contentTypes);
|
||||
|
||||
String[] authNames = new String[] { };
|
||||
|
||||
ParameterizedTypeReference<Void> returnType = new ParameterizedTypeReference<Void>() {};
|
||||
apiClient.invokeAPI(path, HttpMethod.PUT, queryParams, postBody, headerParams, formParams, accept, contentType, authNames, returnType);
|
||||
}
|
||||
}
|
||||
|
@ -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 |
|
||||
|
||||
|
||||
|
||||
@ -912,3 +913,75 @@ No authorization required
|
||||
|-------------|-------------|------------------|
|
||||
| **200** | successful operation | - |
|
||||
|
||||
|
||||
## testQueryParameterCollectionFormat
|
||||
|
||||
> testQueryParameterCollectionFormat(pipe, ioutil, http, url, context)
|
||||
|
||||
|
||||
|
||||
To test the collection format in query parameters
|
||||
|
||||
### Example
|
||||
|
||||
```java
|
||||
// Import classes:
|
||||
import org.openapitools.client.ApiClient;
|
||||
import org.openapitools.client.ApiException;
|
||||
import org.openapitools.client.Configuration;
|
||||
import org.openapitools.client.models.*;
|
||||
import org.openapitools.client.api.FakeApi;
|
||||
|
||||
public class Example {
|
||||
public static void main(String[] args) {
|
||||
ApiClient defaultClient = Configuration.getDefaultApiClient();
|
||||
defaultClient.setBasePath("http://petstore.swagger.io:80/v2");
|
||||
|
||||
FakeApi apiInstance = new FakeApi(defaultClient);
|
||||
List<String> pipe = Arrays.asList(); // List<String> |
|
||||
List<String> ioutil = Arrays.asList(); // List<String> |
|
||||
List<String> http = Arrays.asList(); // List<String> |
|
||||
List<String> url = Arrays.asList(); // List<String> |
|
||||
List<String> context = Arrays.asList(); // List<String> |
|
||||
try {
|
||||
apiInstance.testQueryParameterCollectionFormat(pipe, ioutil, http, url, context);
|
||||
} catch (ApiException e) {
|
||||
System.err.println("Exception when calling FakeApi#testQueryParameterCollectionFormat");
|
||||
System.err.println("Status code: " + e.getCode());
|
||||
System.err.println("Reason: " + e.getResponseBody());
|
||||
System.err.println("Response headers: " + e.getResponseHeaders());
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
### Parameters
|
||||
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**pipe** | [**List<String>**](String.md)| |
|
||||
**ioutil** | [**List<String>**](String.md)| |
|
||||
**http** | [**List<String>**](String.md)| |
|
||||
**url** | [**List<String>**](String.md)| |
|
||||
**context** | [**List<String>**](String.md)| |
|
||||
|
||||
### Return type
|
||||
|
||||
null (empty response body)
|
||||
|
||||
### Authorization
|
||||
|
||||
No authorization required
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: Not defined
|
||||
- **Accept**: Not defined
|
||||
|
||||
### HTTP response details
|
||||
| Status code | Description | Response headers |
|
||||
|-------------|-------------|------------------|
|
||||
| **200** | Success | - |
|
||||
|
||||
|
@ -589,4 +589,65 @@ public class FakeApi {
|
||||
ParameterizedTypeReference<Void> returnType = new ParameterizedTypeReference<Void>() {};
|
||||
apiClient.invokeAPI(path, HttpMethod.GET, queryParams, postBody, headerParams, formParams, accept, contentType, authNames, returnType);
|
||||
}
|
||||
/**
|
||||
*
|
||||
* To test the collection format in query parameters
|
||||
* <p><b>200</b> - Success
|
||||
* @param pipe The pipe parameter
|
||||
* @param ioutil The ioutil parameter
|
||||
* @param http The http parameter
|
||||
* @param url The url parameter
|
||||
* @param context The context parameter
|
||||
* @throws RestClientException if an error occurs while attempting to invoke the API
|
||||
*/
|
||||
public void testQueryParameterCollectionFormat(List<String> pipe, List<String> ioutil, List<String> http, List<String> url, List<String> context) throws RestClientException {
|
||||
Object postBody = null;
|
||||
|
||||
// verify the required parameter 'pipe' is set
|
||||
if (pipe == null) {
|
||||
throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'pipe' when calling testQueryParameterCollectionFormat");
|
||||
}
|
||||
|
||||
// verify the required parameter 'ioutil' is set
|
||||
if (ioutil == null) {
|
||||
throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'ioutil' when calling testQueryParameterCollectionFormat");
|
||||
}
|
||||
|
||||
// verify the required parameter 'http' is set
|
||||
if (http == null) {
|
||||
throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'http' when calling testQueryParameterCollectionFormat");
|
||||
}
|
||||
|
||||
// verify the required parameter 'url' is set
|
||||
if (url == null) {
|
||||
throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'url' when calling testQueryParameterCollectionFormat");
|
||||
}
|
||||
|
||||
// verify the required parameter 'context' is set
|
||||
if (context == null) {
|
||||
throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'context' when calling testQueryParameterCollectionFormat");
|
||||
}
|
||||
|
||||
String path = apiClient.expandPath("/fake/test-query-paramters", Collections.<String, Object>emptyMap());
|
||||
|
||||
final MultiValueMap<String, String> queryParams = new LinkedMultiValueMap<String, String>();
|
||||
final HttpHeaders headerParams = new HttpHeaders();
|
||||
final MultiValueMap<String, Object> formParams = new LinkedMultiValueMap<String, Object>();
|
||||
|
||||
queryParams.putAll(apiClient.parameterToMultiValueMap(ApiClient.CollectionFormat.valueOf("csv".toUpperCase(Locale.ROOT)), "pipe", pipe));
|
||||
queryParams.putAll(apiClient.parameterToMultiValueMap(ApiClient.CollectionFormat.valueOf("csv".toUpperCase(Locale.ROOT)), "ioutil", ioutil));
|
||||
queryParams.putAll(apiClient.parameterToMultiValueMap(ApiClient.CollectionFormat.valueOf("space".toUpperCase(Locale.ROOT)), "http", http));
|
||||
queryParams.putAll(apiClient.parameterToMultiValueMap(ApiClient.CollectionFormat.valueOf("csv".toUpperCase(Locale.ROOT)), "url", url));
|
||||
queryParams.putAll(apiClient.parameterToMultiValueMap(ApiClient.CollectionFormat.valueOf("multi".toUpperCase(Locale.ROOT)), "context", context));
|
||||
|
||||
final String[] accepts = { };
|
||||
final List<MediaType> accept = apiClient.selectHeaderAccept(accepts);
|
||||
final String[] contentTypes = { };
|
||||
final MediaType contentType = apiClient.selectHeaderContentType(contentTypes);
|
||||
|
||||
String[] authNames = new String[] { };
|
||||
|
||||
ParameterizedTypeReference<Void> returnType = new ParameterizedTypeReference<Void>() {};
|
||||
apiClient.invokeAPI(path, HttpMethod.PUT, queryParams, postBody, headerParams, formParams, accept, contentType, authNames, returnType);
|
||||
}
|
||||
}
|
||||
|
@ -35,6 +35,10 @@ public class CollectionFormats {
|
||||
|
||||
}
|
||||
|
||||
public static class SPACEParams extends SSVParams {
|
||||
|
||||
}
|
||||
|
||||
public static class SSVParams extends CSVParams {
|
||||
|
||||
public SSVParams() {
|
||||
|
@ -394,4 +394,36 @@ public interface FakeApi {
|
||||
void testJsonFormData(
|
||||
@retrofit.http.Field("param") String param, @retrofit.http.Field("param2") String param2, Callback<Void> cb
|
||||
);
|
||||
/**
|
||||
*
|
||||
* Sync method
|
||||
* To test the collection format in query parameters
|
||||
* @param pipe (required)
|
||||
* @param ioutil (required)
|
||||
* @param http (required)
|
||||
* @param url (required)
|
||||
* @param context (required)
|
||||
* @return Void
|
||||
*/
|
||||
|
||||
@PUT("/fake/test-query-paramters")
|
||||
Void testQueryParameterCollectionFormat(
|
||||
@retrofit.http.Query("pipe") CSVParams pipe, @retrofit.http.Query("ioutil") CSVParams ioutil, @retrofit.http.Query("http") SPACEParams http, @retrofit.http.Query("url") CSVParams url, @retrofit.http.Query("context") List<String> context
|
||||
);
|
||||
|
||||
/**
|
||||
*
|
||||
* Async method
|
||||
* @param pipe (required)
|
||||
* @param ioutil (required)
|
||||
* @param http (required)
|
||||
* @param url (required)
|
||||
* @param context (required)
|
||||
* @param cb callback method
|
||||
*/
|
||||
|
||||
@PUT("/fake/test-query-paramters")
|
||||
void testQueryParameterCollectionFormat(
|
||||
@retrofit.http.Query("pipe") CSVParams pipe, @retrofit.http.Query("ioutil") CSVParams ioutil, @retrofit.http.Query("http") SPACEParams http, @retrofit.http.Query("url") CSVParams url, @retrofit.http.Query("context") List<String> context, Callback<Void> cb
|
||||
);
|
||||
}
|
||||
|
@ -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 |
|
||||
|
||||
|
||||
|
||||
@ -912,3 +913,75 @@ No authorization required
|
||||
|-------------|-------------|------------------|
|
||||
| **200** | successful operation | - |
|
||||
|
||||
|
||||
## testQueryParameterCollectionFormat
|
||||
|
||||
> testQueryParameterCollectionFormat(pipe, ioutil, http, url, context)
|
||||
|
||||
|
||||
|
||||
To test the collection format in query parameters
|
||||
|
||||
### Example
|
||||
|
||||
```java
|
||||
// Import classes:
|
||||
import org.openapitools.client.ApiClient;
|
||||
import org.openapitools.client.ApiException;
|
||||
import org.openapitools.client.Configuration;
|
||||
import org.openapitools.client.models.*;
|
||||
import org.openapitools.client.api.FakeApi;
|
||||
|
||||
public class Example {
|
||||
public static void main(String[] args) {
|
||||
ApiClient defaultClient = Configuration.getDefaultApiClient();
|
||||
defaultClient.setBasePath("http://petstore.swagger.io:80/v2");
|
||||
|
||||
FakeApi apiInstance = new FakeApi(defaultClient);
|
||||
List<String> pipe = Arrays.asList(); // List<String> |
|
||||
List<String> ioutil = Arrays.asList(); // List<String> |
|
||||
List<String> http = Arrays.asList(); // List<String> |
|
||||
List<String> url = Arrays.asList(); // List<String> |
|
||||
List<String> context = Arrays.asList(); // List<String> |
|
||||
try {
|
||||
apiInstance.testQueryParameterCollectionFormat(pipe, ioutil, http, url, context);
|
||||
} catch (ApiException e) {
|
||||
System.err.println("Exception when calling FakeApi#testQueryParameterCollectionFormat");
|
||||
System.err.println("Status code: " + e.getCode());
|
||||
System.err.println("Reason: " + e.getResponseBody());
|
||||
System.err.println("Response headers: " + e.getResponseHeaders());
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
### Parameters
|
||||
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**pipe** | [**List<String>**](String.md)| |
|
||||
**ioutil** | [**List<String>**](String.md)| |
|
||||
**http** | [**List<String>**](String.md)| |
|
||||
**url** | [**List<String>**](String.md)| |
|
||||
**context** | [**List<String>**](String.md)| |
|
||||
|
||||
### Return type
|
||||
|
||||
null (empty response body)
|
||||
|
||||
### Authorization
|
||||
|
||||
No authorization required
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: Not defined
|
||||
- **Accept**: Not defined
|
||||
|
||||
### HTTP response details
|
||||
| Status code | Description | Response headers |
|
||||
|-------------|-------------|------------------|
|
||||
| **200** | Success | - |
|
||||
|
||||
|
@ -35,6 +35,10 @@ public class CollectionFormats {
|
||||
|
||||
}
|
||||
|
||||
public static class SPACEParams extends SSVParams {
|
||||
|
||||
}
|
||||
|
||||
public static class SSVParams extends CSVParams {
|
||||
|
||||
public SSVParams() {
|
||||
|
@ -218,4 +218,19 @@ public interface FakeApi {
|
||||
@retrofit2.http.Field("param") String param, @retrofit2.http.Field("param2") String param2
|
||||
);
|
||||
|
||||
/**
|
||||
*
|
||||
* To test the collection format in query parameters
|
||||
* @param pipe (required)
|
||||
* @param ioutil (required)
|
||||
* @param http (required)
|
||||
* @param url (required)
|
||||
* @param context (required)
|
||||
* @return Call<Void>
|
||||
*/
|
||||
@PUT("fake/test-query-paramters")
|
||||
F.Promise<Response<Void>> testQueryParameterCollectionFormat(
|
||||
@retrofit2.http.Query("pipe") CSVParams pipe, @retrofit2.http.Query("ioutil") CSVParams ioutil, @retrofit2.http.Query("http") SPACEParams http, @retrofit2.http.Query("url") CSVParams url, @retrofit2.http.Query("context") List<String> context
|
||||
);
|
||||
|
||||
}
|
||||
|
@ -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 |
|
||||
|
||||
|
||||
|
||||
@ -912,3 +913,75 @@ No authorization required
|
||||
|-------------|-------------|------------------|
|
||||
| **200** | successful operation | - |
|
||||
|
||||
|
||||
## testQueryParameterCollectionFormat
|
||||
|
||||
> testQueryParameterCollectionFormat(pipe, ioutil, http, url, context)
|
||||
|
||||
|
||||
|
||||
To test the collection format in query parameters
|
||||
|
||||
### Example
|
||||
|
||||
```java
|
||||
// Import classes:
|
||||
import org.openapitools.client.ApiClient;
|
||||
import org.openapitools.client.ApiException;
|
||||
import org.openapitools.client.Configuration;
|
||||
import org.openapitools.client.models.*;
|
||||
import org.openapitools.client.api.FakeApi;
|
||||
|
||||
public class Example {
|
||||
public static void main(String[] args) {
|
||||
ApiClient defaultClient = Configuration.getDefaultApiClient();
|
||||
defaultClient.setBasePath("http://petstore.swagger.io:80/v2");
|
||||
|
||||
FakeApi apiInstance = new FakeApi(defaultClient);
|
||||
List<String> pipe = Arrays.asList(); // List<String> |
|
||||
List<String> ioutil = Arrays.asList(); // List<String> |
|
||||
List<String> http = Arrays.asList(); // List<String> |
|
||||
List<String> url = Arrays.asList(); // List<String> |
|
||||
List<String> context = Arrays.asList(); // List<String> |
|
||||
try {
|
||||
apiInstance.testQueryParameterCollectionFormat(pipe, ioutil, http, url, context);
|
||||
} catch (ApiException e) {
|
||||
System.err.println("Exception when calling FakeApi#testQueryParameterCollectionFormat");
|
||||
System.err.println("Status code: " + e.getCode());
|
||||
System.err.println("Reason: " + e.getResponseBody());
|
||||
System.err.println("Response headers: " + e.getResponseHeaders());
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
### Parameters
|
||||
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**pipe** | [**List<String>**](String.md)| |
|
||||
**ioutil** | [**List<String>**](String.md)| |
|
||||
**http** | [**List<String>**](String.md)| |
|
||||
**url** | [**List<String>**](String.md)| |
|
||||
**context** | [**List<String>**](String.md)| |
|
||||
|
||||
### Return type
|
||||
|
||||
null (empty response body)
|
||||
|
||||
### Authorization
|
||||
|
||||
No authorization required
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: Not defined
|
||||
- **Accept**: Not defined
|
||||
|
||||
### HTTP response details
|
||||
| Status code | Description | Response headers |
|
||||
|-------------|-------------|------------------|
|
||||
| **200** | Success | - |
|
||||
|
||||
|
@ -35,6 +35,10 @@ public class CollectionFormats {
|
||||
|
||||
}
|
||||
|
||||
public static class SPACEParams extends SSVParams {
|
||||
|
||||
}
|
||||
|
||||
public static class SSVParams extends CSVParams {
|
||||
|
||||
public SSVParams() {
|
||||
|
@ -218,4 +218,19 @@ public interface FakeApi {
|
||||
@retrofit2.http.Field("param") String param, @retrofit2.http.Field("param2") String param2
|
||||
);
|
||||
|
||||
/**
|
||||
*
|
||||
* To test the collection format in query parameters
|
||||
* @param pipe (required)
|
||||
* @param ioutil (required)
|
||||
* @param http (required)
|
||||
* @param url (required)
|
||||
* @param context (required)
|
||||
* @return Call<Void>
|
||||
*/
|
||||
@PUT("fake/test-query-paramters")
|
||||
CompletionStage<Response<Void>> testQueryParameterCollectionFormat(
|
||||
@retrofit2.http.Query("pipe") CSVParams pipe, @retrofit2.http.Query("ioutil") CSVParams ioutil, @retrofit2.http.Query("http") SPACEParams http, @retrofit2.http.Query("url") CSVParams url, @retrofit2.http.Query("context") List<String> context
|
||||
);
|
||||
|
||||
}
|
||||
|
@ -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 |
|
||||
|
||||
|
||||
|
||||
@ -912,3 +913,75 @@ No authorization required
|
||||
|-------------|-------------|------------------|
|
||||
| **200** | successful operation | - |
|
||||
|
||||
|
||||
## testQueryParameterCollectionFormat
|
||||
|
||||
> testQueryParameterCollectionFormat(pipe, ioutil, http, url, context)
|
||||
|
||||
|
||||
|
||||
To test the collection format in query parameters
|
||||
|
||||
### Example
|
||||
|
||||
```java
|
||||
// Import classes:
|
||||
import org.openapitools.client.ApiClient;
|
||||
import org.openapitools.client.ApiException;
|
||||
import org.openapitools.client.Configuration;
|
||||
import org.openapitools.client.models.*;
|
||||
import org.openapitools.client.api.FakeApi;
|
||||
|
||||
public class Example {
|
||||
public static void main(String[] args) {
|
||||
ApiClient defaultClient = Configuration.getDefaultApiClient();
|
||||
defaultClient.setBasePath("http://petstore.swagger.io:80/v2");
|
||||
|
||||
FakeApi apiInstance = new FakeApi(defaultClient);
|
||||
List<String> pipe = Arrays.asList(); // List<String> |
|
||||
List<String> ioutil = Arrays.asList(); // List<String> |
|
||||
List<String> http = Arrays.asList(); // List<String> |
|
||||
List<String> url = Arrays.asList(); // List<String> |
|
||||
List<String> context = Arrays.asList(); // List<String> |
|
||||
try {
|
||||
apiInstance.testQueryParameterCollectionFormat(pipe, ioutil, http, url, context);
|
||||
} catch (ApiException e) {
|
||||
System.err.println("Exception when calling FakeApi#testQueryParameterCollectionFormat");
|
||||
System.err.println("Status code: " + e.getCode());
|
||||
System.err.println("Reason: " + e.getResponseBody());
|
||||
System.err.println("Response headers: " + e.getResponseHeaders());
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
### Parameters
|
||||
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**pipe** | [**List<String>**](String.md)| |
|
||||
**ioutil** | [**List<String>**](String.md)| |
|
||||
**http** | [**List<String>**](String.md)| |
|
||||
**url** | [**List<String>**](String.md)| |
|
||||
**context** | [**List<String>**](String.md)| |
|
||||
|
||||
### Return type
|
||||
|
||||
null (empty response body)
|
||||
|
||||
### Authorization
|
||||
|
||||
No authorization required
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: Not defined
|
||||
- **Accept**: Not defined
|
||||
|
||||
### HTTP response details
|
||||
| Status code | Description | Response headers |
|
||||
|-------------|-------------|------------------|
|
||||
| **200** | Success | - |
|
||||
|
||||
|
@ -35,6 +35,10 @@ public class CollectionFormats {
|
||||
|
||||
}
|
||||
|
||||
public static class SPACEParams extends SSVParams {
|
||||
|
||||
}
|
||||
|
||||
public static class SSVParams extends CSVParams {
|
||||
|
||||
public SSVParams() {
|
||||
|
@ -218,4 +218,19 @@ public interface FakeApi {
|
||||
@retrofit2.http.Field("param") String param, @retrofit2.http.Field("param2") String param2
|
||||
);
|
||||
|
||||
/**
|
||||
*
|
||||
* To test the collection format in query parameters
|
||||
* @param pipe (required)
|
||||
* @param ioutil (required)
|
||||
* @param http (required)
|
||||
* @param url (required)
|
||||
* @param context (required)
|
||||
* @return Call<Void>
|
||||
*/
|
||||
@PUT("fake/test-query-paramters")
|
||||
CompletionStage<Response<Void>> testQueryParameterCollectionFormat(
|
||||
@retrofit2.http.Query("pipe") CSVParams pipe, @retrofit2.http.Query("ioutil") CSVParams ioutil, @retrofit2.http.Query("http") SPACEParams http, @retrofit2.http.Query("url") CSVParams url, @retrofit2.http.Query("context") List<String> context
|
||||
);
|
||||
|
||||
}
|
||||
|
@ -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 |
|
||||
|
||||
|
||||
|
||||
@ -912,3 +913,75 @@ No authorization required
|
||||
|-------------|-------------|------------------|
|
||||
| **200** | successful operation | - |
|
||||
|
||||
|
||||
## testQueryParameterCollectionFormat
|
||||
|
||||
> testQueryParameterCollectionFormat(pipe, ioutil, http, url, context)
|
||||
|
||||
|
||||
|
||||
To test the collection format in query parameters
|
||||
|
||||
### Example
|
||||
|
||||
```java
|
||||
// Import classes:
|
||||
import org.openapitools.client.ApiClient;
|
||||
import org.openapitools.client.ApiException;
|
||||
import org.openapitools.client.Configuration;
|
||||
import org.openapitools.client.models.*;
|
||||
import org.openapitools.client.api.FakeApi;
|
||||
|
||||
public class Example {
|
||||
public static void main(String[] args) {
|
||||
ApiClient defaultClient = Configuration.getDefaultApiClient();
|
||||
defaultClient.setBasePath("http://petstore.swagger.io:80/v2");
|
||||
|
||||
FakeApi apiInstance = new FakeApi(defaultClient);
|
||||
List<String> pipe = Arrays.asList(); // List<String> |
|
||||
List<String> ioutil = Arrays.asList(); // List<String> |
|
||||
List<String> http = Arrays.asList(); // List<String> |
|
||||
List<String> url = Arrays.asList(); // List<String> |
|
||||
List<String> context = Arrays.asList(); // List<String> |
|
||||
try {
|
||||
apiInstance.testQueryParameterCollectionFormat(pipe, ioutil, http, url, context);
|
||||
} catch (ApiException e) {
|
||||
System.err.println("Exception when calling FakeApi#testQueryParameterCollectionFormat");
|
||||
System.err.println("Status code: " + e.getCode());
|
||||
System.err.println("Reason: " + e.getResponseBody());
|
||||
System.err.println("Response headers: " + e.getResponseHeaders());
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
### Parameters
|
||||
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**pipe** | [**List<String>**](String.md)| |
|
||||
**ioutil** | [**List<String>**](String.md)| |
|
||||
**http** | [**List<String>**](String.md)| |
|
||||
**url** | [**List<String>**](String.md)| |
|
||||
**context** | [**List<String>**](String.md)| |
|
||||
|
||||
### Return type
|
||||
|
||||
null (empty response body)
|
||||
|
||||
### Authorization
|
||||
|
||||
No authorization required
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: Not defined
|
||||
- **Accept**: Not defined
|
||||
|
||||
### HTTP response details
|
||||
| Status code | Description | Response headers |
|
||||
|-------------|-------------|------------------|
|
||||
| **200** | Success | - |
|
||||
|
||||
|
@ -35,6 +35,10 @@ public class CollectionFormats {
|
||||
|
||||
}
|
||||
|
||||
public static class SPACEParams extends SSVParams {
|
||||
|
||||
}
|
||||
|
||||
public static class SSVParams extends CSVParams {
|
||||
|
||||
public SSVParams() {
|
||||
|
@ -213,4 +213,19 @@ public interface FakeApi {
|
||||
@retrofit2.http.Field("param") String param, @retrofit2.http.Field("param2") String param2
|
||||
);
|
||||
|
||||
/**
|
||||
*
|
||||
* To test the collection format in query parameters
|
||||
* @param pipe (required)
|
||||
* @param ioutil (required)
|
||||
* @param http (required)
|
||||
* @param url (required)
|
||||
* @param context (required)
|
||||
* @return Call<Void>
|
||||
*/
|
||||
@PUT("fake/test-query-paramters")
|
||||
Call<Void> testQueryParameterCollectionFormat(
|
||||
@retrofit2.http.Query("pipe") CSVParams pipe, @retrofit2.http.Query("ioutil") CSVParams ioutil, @retrofit2.http.Query("http") SPACEParams http, @retrofit2.http.Query("url") CSVParams url, @retrofit2.http.Query("context") List<String> context
|
||||
);
|
||||
|
||||
}
|
||||
|
@ -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 |
|
||||
|
||||
|
||||
|
||||
@ -912,3 +913,75 @@ No authorization required
|
||||
|-------------|-------------|------------------|
|
||||
| **200** | successful operation | - |
|
||||
|
||||
|
||||
## testQueryParameterCollectionFormat
|
||||
|
||||
> testQueryParameterCollectionFormat(pipe, ioutil, http, url, context)
|
||||
|
||||
|
||||
|
||||
To test the collection format in query parameters
|
||||
|
||||
### Example
|
||||
|
||||
```java
|
||||
// Import classes:
|
||||
import org.openapitools.client.ApiClient;
|
||||
import org.openapitools.client.ApiException;
|
||||
import org.openapitools.client.Configuration;
|
||||
import org.openapitools.client.models.*;
|
||||
import org.openapitools.client.api.FakeApi;
|
||||
|
||||
public class Example {
|
||||
public static void main(String[] args) {
|
||||
ApiClient defaultClient = Configuration.getDefaultApiClient();
|
||||
defaultClient.setBasePath("http://petstore.swagger.io:80/v2");
|
||||
|
||||
FakeApi apiInstance = new FakeApi(defaultClient);
|
||||
List<String> pipe = Arrays.asList(); // List<String> |
|
||||
List<String> ioutil = Arrays.asList(); // List<String> |
|
||||
List<String> http = Arrays.asList(); // List<String> |
|
||||
List<String> url = Arrays.asList(); // List<String> |
|
||||
List<String> context = Arrays.asList(); // List<String> |
|
||||
try {
|
||||
apiInstance.testQueryParameterCollectionFormat(pipe, ioutil, http, url, context);
|
||||
} catch (ApiException e) {
|
||||
System.err.println("Exception when calling FakeApi#testQueryParameterCollectionFormat");
|
||||
System.err.println("Status code: " + e.getCode());
|
||||
System.err.println("Reason: " + e.getResponseBody());
|
||||
System.err.println("Response headers: " + e.getResponseHeaders());
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
### Parameters
|
||||
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**pipe** | [**List<String>**](String.md)| |
|
||||
**ioutil** | [**List<String>**](String.md)| |
|
||||
**http** | [**List<String>**](String.md)| |
|
||||
**url** | [**List<String>**](String.md)| |
|
||||
**context** | [**List<String>**](String.md)| |
|
||||
|
||||
### Return type
|
||||
|
||||
null (empty response body)
|
||||
|
||||
### Authorization
|
||||
|
||||
No authorization required
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: Not defined
|
||||
- **Accept**: Not defined
|
||||
|
||||
### HTTP response details
|
||||
| Status code | Description | Response headers |
|
||||
|-------------|-------------|------------------|
|
||||
| **200** | Success | - |
|
||||
|
||||
|
@ -35,6 +35,10 @@ public class CollectionFormats {
|
||||
|
||||
}
|
||||
|
||||
public static class SPACEParams extends SSVParams {
|
||||
|
||||
}
|
||||
|
||||
public static class SSVParams extends CSVParams {
|
||||
|
||||
public SSVParams() {
|
||||
|
@ -213,4 +213,19 @@ public interface FakeApi {
|
||||
@retrofit2.http.Field("param") String param, @retrofit2.http.Field("param2") String param2
|
||||
);
|
||||
|
||||
/**
|
||||
*
|
||||
* To test the collection format in query parameters
|
||||
* @param pipe (required)
|
||||
* @param ioutil (required)
|
||||
* @param http (required)
|
||||
* @param url (required)
|
||||
* @param context (required)
|
||||
* @return Observable<Void>
|
||||
*/
|
||||
@PUT("fake/test-query-paramters")
|
||||
Observable<Void> testQueryParameterCollectionFormat(
|
||||
@retrofit2.http.Query("pipe") CSVParams pipe, @retrofit2.http.Query("ioutil") CSVParams ioutil, @retrofit2.http.Query("http") SPACEParams http, @retrofit2.http.Query("url") CSVParams url, @retrofit2.http.Query("context") List<String> context
|
||||
);
|
||||
|
||||
}
|
||||
|
@ -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 |
|
||||
|
||||
|
||||
|
||||
@ -912,3 +913,75 @@ No authorization required
|
||||
|-------------|-------------|------------------|
|
||||
| **200** | successful operation | - |
|
||||
|
||||
|
||||
## testQueryParameterCollectionFormat
|
||||
|
||||
> testQueryParameterCollectionFormat(pipe, ioutil, http, url, context)
|
||||
|
||||
|
||||
|
||||
To test the collection format in query parameters
|
||||
|
||||
### Example
|
||||
|
||||
```java
|
||||
// Import classes:
|
||||
import org.openapitools.client.ApiClient;
|
||||
import org.openapitools.client.ApiException;
|
||||
import org.openapitools.client.Configuration;
|
||||
import org.openapitools.client.models.*;
|
||||
import org.openapitools.client.api.FakeApi;
|
||||
|
||||
public class Example {
|
||||
public static void main(String[] args) {
|
||||
ApiClient defaultClient = Configuration.getDefaultApiClient();
|
||||
defaultClient.setBasePath("http://petstore.swagger.io:80/v2");
|
||||
|
||||
FakeApi apiInstance = new FakeApi(defaultClient);
|
||||
List<String> pipe = Arrays.asList(); // List<String> |
|
||||
List<String> ioutil = Arrays.asList(); // List<String> |
|
||||
List<String> http = Arrays.asList(); // List<String> |
|
||||
List<String> url = Arrays.asList(); // List<String> |
|
||||
List<String> context = Arrays.asList(); // List<String> |
|
||||
try {
|
||||
apiInstance.testQueryParameterCollectionFormat(pipe, ioutil, http, url, context);
|
||||
} catch (ApiException e) {
|
||||
System.err.println("Exception when calling FakeApi#testQueryParameterCollectionFormat");
|
||||
System.err.println("Status code: " + e.getCode());
|
||||
System.err.println("Reason: " + e.getResponseBody());
|
||||
System.err.println("Response headers: " + e.getResponseHeaders());
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
### Parameters
|
||||
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**pipe** | [**List<String>**](String.md)| |
|
||||
**ioutil** | [**List<String>**](String.md)| |
|
||||
**http** | [**List<String>**](String.md)| |
|
||||
**url** | [**List<String>**](String.md)| |
|
||||
**context** | [**List<String>**](String.md)| |
|
||||
|
||||
### Return type
|
||||
|
||||
null (empty response body)
|
||||
|
||||
### Authorization
|
||||
|
||||
No authorization required
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: Not defined
|
||||
- **Accept**: Not defined
|
||||
|
||||
### HTTP response details
|
||||
| Status code | Description | Response headers |
|
||||
|-------------|-------------|------------------|
|
||||
| **200** | Success | - |
|
||||
|
||||
|
@ -35,6 +35,10 @@ public class CollectionFormats {
|
||||
|
||||
}
|
||||
|
||||
public static class SPACEParams extends SSVParams {
|
||||
|
||||
}
|
||||
|
||||
public static class SSVParams extends CSVParams {
|
||||
|
||||
public SSVParams() {
|
||||
|
@ -214,4 +214,19 @@ public interface FakeApi {
|
||||
@retrofit2.http.Field("param") String param, @retrofit2.http.Field("param2") String param2
|
||||
);
|
||||
|
||||
/**
|
||||
*
|
||||
* To test the collection format in query parameters
|
||||
* @param pipe (required)
|
||||
* @param ioutil (required)
|
||||
* @param http (required)
|
||||
* @param url (required)
|
||||
* @param context (required)
|
||||
* @return Completable
|
||||
*/
|
||||
@PUT("fake/test-query-paramters")
|
||||
Completable testQueryParameterCollectionFormat(
|
||||
@retrofit2.http.Query("pipe") CSVParams pipe, @retrofit2.http.Query("ioutil") CSVParams ioutil, @retrofit2.http.Query("http") SPACEParams http, @retrofit2.http.Query("url") CSVParams url, @retrofit2.http.Query("context") List<String> context
|
||||
);
|
||||
|
||||
}
|
||||
|
@ -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 |
|
||||
|
||||
|
||||
|
||||
@ -912,3 +913,75 @@ No authorization required
|
||||
|-------------|-------------|------------------|
|
||||
| **200** | successful operation | - |
|
||||
|
||||
|
||||
## testQueryParameterCollectionFormat
|
||||
|
||||
> testQueryParameterCollectionFormat(pipe, ioutil, http, url, context)
|
||||
|
||||
|
||||
|
||||
To test the collection format in query parameters
|
||||
|
||||
### Example
|
||||
|
||||
```java
|
||||
// Import classes:
|
||||
import org.openapitools.client.ApiClient;
|
||||
import org.openapitools.client.ApiException;
|
||||
import org.openapitools.client.Configuration;
|
||||
import org.openapitools.client.models.*;
|
||||
import org.openapitools.client.api.FakeApi;
|
||||
|
||||
public class Example {
|
||||
public static void main(String[] args) {
|
||||
ApiClient defaultClient = Configuration.getDefaultApiClient();
|
||||
defaultClient.setBasePath("http://petstore.swagger.io:80/v2");
|
||||
|
||||
FakeApi apiInstance = new FakeApi(defaultClient);
|
||||
List<String> pipe = Arrays.asList(); // List<String> |
|
||||
List<String> ioutil = Arrays.asList(); // List<String> |
|
||||
List<String> http = Arrays.asList(); // List<String> |
|
||||
List<String> url = Arrays.asList(); // List<String> |
|
||||
List<String> context = Arrays.asList(); // List<String> |
|
||||
try {
|
||||
apiInstance.testQueryParameterCollectionFormat(pipe, ioutil, http, url, context);
|
||||
} catch (ApiException e) {
|
||||
System.err.println("Exception when calling FakeApi#testQueryParameterCollectionFormat");
|
||||
System.err.println("Status code: " + e.getCode());
|
||||
System.err.println("Reason: " + e.getResponseBody());
|
||||
System.err.println("Response headers: " + e.getResponseHeaders());
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
### Parameters
|
||||
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**pipe** | [**List<String>**](String.md)| |
|
||||
**ioutil** | [**List<String>**](String.md)| |
|
||||
**http** | [**List<String>**](String.md)| |
|
||||
**url** | [**List<String>**](String.md)| |
|
||||
**context** | [**List<String>**](String.md)| |
|
||||
|
||||
### Return type
|
||||
|
||||
null (empty response body)
|
||||
|
||||
### Authorization
|
||||
|
||||
No authorization required
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: Not defined
|
||||
- **Accept**: Not defined
|
||||
|
||||
### HTTP response details
|
||||
| Status code | Description | Response headers |
|
||||
|-------------|-------------|------------------|
|
||||
| **200** | Success | - |
|
||||
|
||||
|
@ -43,4 +43,6 @@ public interface FakeApi {
|
||||
|
||||
void testJsonFormData(String param, String param2, Handler<AsyncResult<Void>> handler);
|
||||
|
||||
void testQueryParameterCollectionFormat(List<String> pipe, List<String> ioutil, List<String> http, List<String> url, List<String> context, Handler<AsyncResult<Void>> handler);
|
||||
|
||||
}
|
||||
|
@ -561,4 +561,71 @@ if (param2 != null) localVarFormParams.put("param2", param2);
|
||||
|
||||
apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarBody, localVarHeaderParams, localVarFormParams, localVarAccepts, localVarContentTypes, localVarAuthNames, null, resultHandler);
|
||||
}
|
||||
/**
|
||||
*
|
||||
* To test the collection format in query parameters
|
||||
* @param pipe (required)
|
||||
* @param ioutil (required)
|
||||
* @param http (required)
|
||||
* @param url (required)
|
||||
* @param context (required)
|
||||
* @param resultHandler Asynchronous result handler
|
||||
*/
|
||||
public void testQueryParameterCollectionFormat(List<String> pipe, List<String> ioutil, List<String> http, List<String> url, List<String> context, Handler<AsyncResult<Void>> resultHandler) {
|
||||
Object localVarBody = null;
|
||||
|
||||
// verify the required parameter 'pipe' is set
|
||||
if (pipe == null) {
|
||||
resultHandler.handle(ApiException.fail(400, "Missing the required parameter 'pipe' when calling testQueryParameterCollectionFormat"));
|
||||
return;
|
||||
}
|
||||
|
||||
// verify the required parameter 'ioutil' is set
|
||||
if (ioutil == null) {
|
||||
resultHandler.handle(ApiException.fail(400, "Missing the required parameter 'ioutil' when calling testQueryParameterCollectionFormat"));
|
||||
return;
|
||||
}
|
||||
|
||||
// verify the required parameter 'http' is set
|
||||
if (http == null) {
|
||||
resultHandler.handle(ApiException.fail(400, "Missing the required parameter 'http' when calling testQueryParameterCollectionFormat"));
|
||||
return;
|
||||
}
|
||||
|
||||
// verify the required parameter 'url' is set
|
||||
if (url == null) {
|
||||
resultHandler.handle(ApiException.fail(400, "Missing the required parameter 'url' when calling testQueryParameterCollectionFormat"));
|
||||
return;
|
||||
}
|
||||
|
||||
// verify the required parameter 'context' is set
|
||||
if (context == null) {
|
||||
resultHandler.handle(ApiException.fail(400, "Missing the required parameter 'context' when calling testQueryParameterCollectionFormat"));
|
||||
return;
|
||||
}
|
||||
|
||||
// create path and map variables
|
||||
String localVarPath = "/fake/test-query-paramters";
|
||||
|
||||
// query params
|
||||
List<Pair> localVarQueryParams = new ArrayList<>();
|
||||
localVarQueryParams.addAll(apiClient.parameterToPairs("csv", "pipe", pipe));
|
||||
localVarQueryParams.addAll(apiClient.parameterToPairs("csv", "ioutil", ioutil));
|
||||
localVarQueryParams.addAll(apiClient.parameterToPairs("space", "http", http));
|
||||
localVarQueryParams.addAll(apiClient.parameterToPairs("csv", "url", url));
|
||||
localVarQueryParams.addAll(apiClient.parameterToPairs("multi", "context", context));
|
||||
|
||||
// header params
|
||||
MultiMap localVarHeaderParams = MultiMap.caseInsensitiveMultiMap();
|
||||
|
||||
// form params
|
||||
// TODO: sending files within multipart/form-data is not supported yet (because of vertx web-client)
|
||||
Map<String, Object> localVarFormParams = new HashMap<>();
|
||||
|
||||
String[] localVarAccepts = { };
|
||||
String[] localVarContentTypes = { };
|
||||
String[] localVarAuthNames = new String[] { };
|
||||
|
||||
apiClient.invokeAPI(localVarPath, "PUT", localVarQueryParams, localVarBody, localVarHeaderParams, localVarFormParams, localVarAccepts, localVarContentTypes, localVarAuthNames, null, resultHandler);
|
||||
}
|
||||
}
|
||||
|
@ -356,6 +356,35 @@ public class FakeApi {
|
||||
delegate.testJsonFormData(param, param2, fut);
|
||||
}));
|
||||
}
|
||||
/**
|
||||
*
|
||||
* To test the collection format in query parameters
|
||||
* @param pipe (required)
|
||||
* @param ioutil (required)
|
||||
* @param http (required)
|
||||
* @param url (required)
|
||||
* @param context (required)
|
||||
* @param resultHandler Asynchronous result handler
|
||||
*/
|
||||
public void testQueryParameterCollectionFormat(List<String> pipe, List<String> ioutil, List<String> http, List<String> url, List<String> context, Handler<AsyncResult<Void>> resultHandler) {
|
||||
delegate.testQueryParameterCollectionFormat(pipe, ioutil, http, url, context, resultHandler);
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* To test the collection format in query parameters
|
||||
* @param pipe (required)
|
||||
* @param ioutil (required)
|
||||
* @param http (required)
|
||||
* @param url (required)
|
||||
* @param context (required)
|
||||
* @return Asynchronous result handler (RxJava Single)
|
||||
*/
|
||||
public Single<Void> rxTestQueryParameterCollectionFormat(List<String> pipe, List<String> ioutil, List<String> http, List<String> url, List<String> context) {
|
||||
return Single.create(new io.vertx.rx.java.SingleOnSubscribeAdapter<>(fut -> {
|
||||
delegate.testQueryParameterCollectionFormat(pipe, ioutil, http, url, context, fut);
|
||||
}));
|
||||
}
|
||||
|
||||
public static FakeApi newInstance(org.openapitools.client.api.FakeApi arg) {
|
||||
return arg != null ? new FakeApi(arg) : null;
|
||||
|
@ -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 |
|
||||
|
||||
|
||||
|
||||
@ -912,3 +913,75 @@ No authorization required
|
||||
|-------------|-------------|------------------|
|
||||
| **200** | successful operation | - |
|
||||
|
||||
|
||||
## testQueryParameterCollectionFormat
|
||||
|
||||
> testQueryParameterCollectionFormat(pipe, ioutil, http, url, context)
|
||||
|
||||
|
||||
|
||||
To test the collection format in query parameters
|
||||
|
||||
### Example
|
||||
|
||||
```java
|
||||
// Import classes:
|
||||
import org.openapitools.client.ApiClient;
|
||||
import org.openapitools.client.ApiException;
|
||||
import org.openapitools.client.Configuration;
|
||||
import org.openapitools.client.models.*;
|
||||
import org.openapitools.client.api.FakeApi;
|
||||
|
||||
public class Example {
|
||||
public static void main(String[] args) {
|
||||
ApiClient defaultClient = Configuration.getDefaultApiClient();
|
||||
defaultClient.setBasePath("http://petstore.swagger.io:80/v2");
|
||||
|
||||
FakeApi apiInstance = new FakeApi(defaultClient);
|
||||
List<String> pipe = Arrays.asList(); // List<String> |
|
||||
List<String> ioutil = Arrays.asList(); // List<String> |
|
||||
List<String> http = Arrays.asList(); // List<String> |
|
||||
List<String> url = Arrays.asList(); // List<String> |
|
||||
List<String> context = Arrays.asList(); // List<String> |
|
||||
try {
|
||||
apiInstance.testQueryParameterCollectionFormat(pipe, ioutil, http, url, context);
|
||||
} catch (ApiException e) {
|
||||
System.err.println("Exception when calling FakeApi#testQueryParameterCollectionFormat");
|
||||
System.err.println("Status code: " + e.getCode());
|
||||
System.err.println("Reason: " + e.getResponseBody());
|
||||
System.err.println("Response headers: " + e.getResponseHeaders());
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
### Parameters
|
||||
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**pipe** | [**List<String>**](String.md)| |
|
||||
**ioutil** | [**List<String>**](String.md)| |
|
||||
**http** | [**List<String>**](String.md)| |
|
||||
**url** | [**List<String>**](String.md)| |
|
||||
**context** | [**List<String>**](String.md)| |
|
||||
|
||||
### Return type
|
||||
|
||||
null (empty response body)
|
||||
|
||||
### Authorization
|
||||
|
||||
No authorization required
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: Not defined
|
||||
- **Accept**: Not defined
|
||||
|
||||
### HTTP response details
|
||||
| Status code | Description | Response headers |
|
||||
|-------------|-------------|------------------|
|
||||
| **200** | Success | - |
|
||||
|
||||
|
@ -587,4 +587,65 @@ public class FakeApi {
|
||||
ParameterizedTypeReference<Void> returnType = new ParameterizedTypeReference<Void>() {};
|
||||
return apiClient.invokeAPI(path, HttpMethod.GET, queryParams, postBody, headerParams, formParams, accept, contentType, authNames, returnType);
|
||||
}
|
||||
/**
|
||||
*
|
||||
* To test the collection format in query parameters
|
||||
* <p><b>200</b> - Success
|
||||
* @param pipe The pipe parameter
|
||||
* @param ioutil The ioutil parameter
|
||||
* @param http The http parameter
|
||||
* @param url The url parameter
|
||||
* @param context The context parameter
|
||||
* @throws RestClientException if an error occurs while attempting to invoke the API
|
||||
*/
|
||||
public Mono<Void> testQueryParameterCollectionFormat(List<String> pipe, List<String> ioutil, List<String> http, List<String> url, List<String> context) throws RestClientException {
|
||||
Object postBody = null;
|
||||
|
||||
// verify the required parameter 'pipe' is set
|
||||
if (pipe == null) {
|
||||
throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'pipe' when calling testQueryParameterCollectionFormat");
|
||||
}
|
||||
|
||||
// verify the required parameter 'ioutil' is set
|
||||
if (ioutil == null) {
|
||||
throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'ioutil' when calling testQueryParameterCollectionFormat");
|
||||
}
|
||||
|
||||
// verify the required parameter 'http' is set
|
||||
if (http == null) {
|
||||
throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'http' when calling testQueryParameterCollectionFormat");
|
||||
}
|
||||
|
||||
// verify the required parameter 'url' is set
|
||||
if (url == null) {
|
||||
throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'url' when calling testQueryParameterCollectionFormat");
|
||||
}
|
||||
|
||||
// verify the required parameter 'context' is set
|
||||
if (context == null) {
|
||||
throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'context' when calling testQueryParameterCollectionFormat");
|
||||
}
|
||||
|
||||
String path = UriComponentsBuilder.fromPath("/fake/test-query-paramters").build().toUriString();
|
||||
|
||||
final MultiValueMap<String, String> queryParams = new LinkedMultiValueMap<String, String>();
|
||||
final HttpHeaders headerParams = new HttpHeaders();
|
||||
final MultiValueMap<String, Object> formParams = new LinkedMultiValueMap<String, Object>();
|
||||
|
||||
queryParams.putAll(apiClient.parameterToMultiValueMap(ApiClient.CollectionFormat.valueOf("csv".toUpperCase(Locale.ROOT)), "pipe", pipe));
|
||||
queryParams.putAll(apiClient.parameterToMultiValueMap(ApiClient.CollectionFormat.valueOf("csv".toUpperCase(Locale.ROOT)), "ioutil", ioutil));
|
||||
queryParams.putAll(apiClient.parameterToMultiValueMap(ApiClient.CollectionFormat.valueOf("space".toUpperCase(Locale.ROOT)), "http", http));
|
||||
queryParams.putAll(apiClient.parameterToMultiValueMap(ApiClient.CollectionFormat.valueOf("csv".toUpperCase(Locale.ROOT)), "url", url));
|
||||
queryParams.putAll(apiClient.parameterToMultiValueMap(ApiClient.CollectionFormat.valueOf("multi".toUpperCase(Locale.ROOT)), "context", context));
|
||||
|
||||
final String[] accepts = { };
|
||||
final List<MediaType> accept = apiClient.selectHeaderAccept(accepts);
|
||||
final String[] contentTypes = { };
|
||||
final MediaType contentType = apiClient.selectHeaderContentType(contentTypes);
|
||||
|
||||
String[] authNames = new String[] { };
|
||||
|
||||
ParameterizedTypeReference<Void> returnType = new ParameterizedTypeReference<Void>() {};
|
||||
return apiClient.invokeAPI(path, HttpMethod.PUT, queryParams, postBody, headerParams, formParams, accept, contentType, authNames, returnType);
|
||||
}
|
||||
}
|
||||
|
@ -134,6 +134,7 @@ Class | Method | HTTP request | Description
|
||||
*OpenApiPetstore.FakeApi* | [**testGroupParameters**](docs/FakeApi.md#testGroupParameters) | **DELETE** /fake | Fake endpoint to test group parameters (optional)
|
||||
*OpenApiPetstore.FakeApi* | [**testInlineAdditionalProperties**](docs/FakeApi.md#testInlineAdditionalProperties) | **POST** /fake/inline-additionalProperties | test inline additionalProperties
|
||||
*OpenApiPetstore.FakeApi* | [**testJsonFormData**](docs/FakeApi.md#testJsonFormData) | **GET** /fake/jsonFormData | test json serialization of form data
|
||||
*OpenApiPetstore.FakeApi* | [**testQueryParameterCollectionFormat**](docs/FakeApi.md#testQueryParameterCollectionFormat) | **PUT** /fake/test-query-paramters |
|
||||
*OpenApiPetstore.FakeClassnameTags123Api* | [**testClassname**](docs/FakeClassnameTags123Api.md#testClassname) | **PATCH** /fake_classname_test | To test class name in snake case
|
||||
*OpenApiPetstore.PetApi* | [**addPet**](docs/PetApi.md#addPet) | **POST** /pet | Add a new pet to the store
|
||||
*OpenApiPetstore.PetApi* | [**deletePet**](docs/PetApi.md#deletePet) | **DELETE** /pet/{petId} | Deletes a pet
|
||||
|
@ -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 |
|
||||
|
||||
|
||||
|
||||
@ -671,3 +672,56 @@ No authorization required
|
||||
- **Content-Type**: application/x-www-form-urlencoded
|
||||
- **Accept**: Not defined
|
||||
|
||||
|
||||
## testQueryParameterCollectionFormat
|
||||
|
||||
> testQueryParameterCollectionFormat(pipe, ioutil, http, url, context)
|
||||
|
||||
|
||||
|
||||
To test the collection format in query parameters
|
||||
|
||||
### Example
|
||||
|
||||
```javascript
|
||||
import OpenApiPetstore from 'open_api_petstore';
|
||||
|
||||
let apiInstance = new OpenApiPetstore.FakeApi();
|
||||
let pipe = ["null"]; // [String] |
|
||||
let ioutil = ["null"]; // [String] |
|
||||
let http = ["null"]; // [String] |
|
||||
let url = ["null"]; // [String] |
|
||||
let context = ["null"]; // [String] |
|
||||
apiInstance.testQueryParameterCollectionFormat(pipe, ioutil, http, url, context, (error, data, response) => {
|
||||
if (error) {
|
||||
console.error(error);
|
||||
} else {
|
||||
console.log('API called successfully.');
|
||||
}
|
||||
});
|
||||
```
|
||||
|
||||
### Parameters
|
||||
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**pipe** | [**[String]**](String.md)| |
|
||||
**ioutil** | [**[String]**](String.md)| |
|
||||
**http** | [**[String]**](String.md)| |
|
||||
**url** | [**[String]**](String.md)| |
|
||||
**context** | [**[String]**](String.md)| |
|
||||
|
||||
### Return type
|
||||
|
||||
null (empty response body)
|
||||
|
||||
### Authorization
|
||||
|
||||
No authorization required
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: Not defined
|
||||
- **Accept**: Not defined
|
||||
|
||||
|
@ -647,5 +647,70 @@ export default class FakeApi {
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Callback function to receive the result of the testQueryParameterCollectionFormat operation.
|
||||
* @callback module:api/FakeApi~testQueryParameterCollectionFormatCallback
|
||||
* @param {String} error Error message, if any.
|
||||
* @param data This operation does not return a value.
|
||||
* @param {String} response The complete HTTP response.
|
||||
*/
|
||||
|
||||
/**
|
||||
* To test the collection format in query parameters
|
||||
* @param {Array.<String>} pipe
|
||||
* @param {Array.<String>} ioutil
|
||||
* @param {Array.<String>} http
|
||||
* @param {Array.<String>} url
|
||||
* @param {Array.<String>} context
|
||||
* @param {module:api/FakeApi~testQueryParameterCollectionFormatCallback} callback The callback function, accepting three arguments: error, data, response
|
||||
*/
|
||||
testQueryParameterCollectionFormat(pipe, ioutil, http, url, context, callback) {
|
||||
let postBody = null;
|
||||
// verify the required parameter 'pipe' is set
|
||||
if (pipe === undefined || pipe === null) {
|
||||
throw new Error("Missing the required parameter 'pipe' when calling testQueryParameterCollectionFormat");
|
||||
}
|
||||
// verify the required parameter 'ioutil' is set
|
||||
if (ioutil === undefined || ioutil === null) {
|
||||
throw new Error("Missing the required parameter 'ioutil' when calling testQueryParameterCollectionFormat");
|
||||
}
|
||||
// verify the required parameter 'http' is set
|
||||
if (http === undefined || http === null) {
|
||||
throw new Error("Missing the required parameter 'http' when calling testQueryParameterCollectionFormat");
|
||||
}
|
||||
// verify the required parameter 'url' is set
|
||||
if (url === undefined || url === null) {
|
||||
throw new Error("Missing the required parameter 'url' when calling testQueryParameterCollectionFormat");
|
||||
}
|
||||
// verify the required parameter 'context' is set
|
||||
if (context === undefined || context === null) {
|
||||
throw new Error("Missing the required parameter 'context' when calling testQueryParameterCollectionFormat");
|
||||
}
|
||||
|
||||
let pathParams = {
|
||||
};
|
||||
let queryParams = {
|
||||
'pipe': this.apiClient.buildCollectionParam(pipe, 'csv'),
|
||||
'ioutil': this.apiClient.buildCollectionParam(ioutil, 'csv'),
|
||||
'http': this.apiClient.buildCollectionParam(http, 'space'),
|
||||
'url': this.apiClient.buildCollectionParam(url, 'csv'),
|
||||
'context': this.apiClient.buildCollectionParam(context, 'multi')
|
||||
};
|
||||
let headerParams = {
|
||||
};
|
||||
let formParams = {
|
||||
};
|
||||
|
||||
let authNames = [];
|
||||
let contentTypes = [];
|
||||
let accepts = [];
|
||||
let returnType = null;
|
||||
return this.apiClient.callApi(
|
||||
'/fake/test-query-paramters', 'PUT',
|
||||
pathParams, queryParams, headerParams, formParams, postBody,
|
||||
authNames, contentTypes, accepts, returnType, null, callback
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
@ -132,6 +132,7 @@ Class | Method | HTTP request | Description
|
||||
*OpenApiPetstore.FakeApi* | [**testGroupParameters**](docs/FakeApi.md#testGroupParameters) | **DELETE** /fake | Fake endpoint to test group parameters (optional)
|
||||
*OpenApiPetstore.FakeApi* | [**testInlineAdditionalProperties**](docs/FakeApi.md#testInlineAdditionalProperties) | **POST** /fake/inline-additionalProperties | test inline additionalProperties
|
||||
*OpenApiPetstore.FakeApi* | [**testJsonFormData**](docs/FakeApi.md#testJsonFormData) | **GET** /fake/jsonFormData | test json serialization of form data
|
||||
*OpenApiPetstore.FakeApi* | [**testQueryParameterCollectionFormat**](docs/FakeApi.md#testQueryParameterCollectionFormat) | **PUT** /fake/test-query-paramters |
|
||||
*OpenApiPetstore.FakeClassnameTags123Api* | [**testClassname**](docs/FakeClassnameTags123Api.md#testClassname) | **PATCH** /fake_classname_test | To test class name in snake case
|
||||
*OpenApiPetstore.PetApi* | [**addPet**](docs/PetApi.md#addPet) | **POST** /pet | Add a new pet to the store
|
||||
*OpenApiPetstore.PetApi* | [**deletePet**](docs/PetApi.md#deletePet) | **DELETE** /pet/{petId} | Deletes a pet
|
||||
|
@ -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 |
|
||||
|
||||
|
||||
|
||||
@ -658,3 +659,55 @@ No authorization required
|
||||
- **Content-Type**: application/x-www-form-urlencoded
|
||||
- **Accept**: Not defined
|
||||
|
||||
|
||||
## testQueryParameterCollectionFormat
|
||||
|
||||
> testQueryParameterCollectionFormat(pipe, ioutil, http, url, context)
|
||||
|
||||
|
||||
|
||||
To test the collection format in query parameters
|
||||
|
||||
### Example
|
||||
|
||||
```javascript
|
||||
import OpenApiPetstore from 'open_api_petstore';
|
||||
|
||||
let apiInstance = new OpenApiPetstore.FakeApi();
|
||||
let pipe = ["null"]; // [String] |
|
||||
let ioutil = ["null"]; // [String] |
|
||||
let http = ["null"]; // [String] |
|
||||
let url = ["null"]; // [String] |
|
||||
let context = ["null"]; // [String] |
|
||||
apiInstance.testQueryParameterCollectionFormat(pipe, ioutil, http, url, context).then(() => {
|
||||
console.log('API called successfully.');
|
||||
}, (error) => {
|
||||
console.error(error);
|
||||
});
|
||||
|
||||
```
|
||||
|
||||
### Parameters
|
||||
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**pipe** | [**[String]**](String.md)| |
|
||||
**ioutil** | [**[String]**](String.md)| |
|
||||
**http** | [**[String]**](String.md)| |
|
||||
**url** | [**[String]**](String.md)| |
|
||||
**context** | [**[String]**](String.md)| |
|
||||
|
||||
### Return type
|
||||
|
||||
null (empty response body)
|
||||
|
||||
### Authorization
|
||||
|
||||
No authorization required
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: Not defined
|
||||
- **Accept**: Not defined
|
||||
|
||||
|
@ -746,4 +746,78 @@ export default class FakeApi {
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* To test the collection format in query parameters
|
||||
* @param {Array.<String>} pipe
|
||||
* @param {Array.<String>} ioutil
|
||||
* @param {Array.<String>} http
|
||||
* @param {Array.<String>} url
|
||||
* @param {Array.<String>} context
|
||||
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
||||
*/
|
||||
testQueryParameterCollectionFormatWithHttpInfo(pipe, ioutil, http, url, context) {
|
||||
let postBody = null;
|
||||
// verify the required parameter 'pipe' is set
|
||||
if (pipe === undefined || pipe === null) {
|
||||
throw new Error("Missing the required parameter 'pipe' when calling testQueryParameterCollectionFormat");
|
||||
}
|
||||
// verify the required parameter 'ioutil' is set
|
||||
if (ioutil === undefined || ioutil === null) {
|
||||
throw new Error("Missing the required parameter 'ioutil' when calling testQueryParameterCollectionFormat");
|
||||
}
|
||||
// verify the required parameter 'http' is set
|
||||
if (http === undefined || http === null) {
|
||||
throw new Error("Missing the required parameter 'http' when calling testQueryParameterCollectionFormat");
|
||||
}
|
||||
// verify the required parameter 'url' is set
|
||||
if (url === undefined || url === null) {
|
||||
throw new Error("Missing the required parameter 'url' when calling testQueryParameterCollectionFormat");
|
||||
}
|
||||
// verify the required parameter 'context' is set
|
||||
if (context === undefined || context === null) {
|
||||
throw new Error("Missing the required parameter 'context' when calling testQueryParameterCollectionFormat");
|
||||
}
|
||||
|
||||
let pathParams = {
|
||||
};
|
||||
let queryParams = {
|
||||
'pipe': this.apiClient.buildCollectionParam(pipe, 'csv'),
|
||||
'ioutil': this.apiClient.buildCollectionParam(ioutil, 'csv'),
|
||||
'http': this.apiClient.buildCollectionParam(http, 'space'),
|
||||
'url': this.apiClient.buildCollectionParam(url, 'csv'),
|
||||
'context': this.apiClient.buildCollectionParam(context, 'multi')
|
||||
};
|
||||
let headerParams = {
|
||||
};
|
||||
let formParams = {
|
||||
};
|
||||
|
||||
let authNames = [];
|
||||
let contentTypes = [];
|
||||
let accepts = [];
|
||||
let returnType = null;
|
||||
return this.apiClient.callApi(
|
||||
'/fake/test-query-paramters', 'PUT',
|
||||
pathParams, queryParams, headerParams, formParams, postBody,
|
||||
authNames, contentTypes, accepts, returnType, null
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* To test the collection format in query parameters
|
||||
* @param {Array.<String>} pipe
|
||||
* @param {Array.<String>} ioutil
|
||||
* @param {Array.<String>} http
|
||||
* @param {Array.<String>} url
|
||||
* @param {Array.<String>} context
|
||||
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
||||
*/
|
||||
testQueryParameterCollectionFormat(pipe, ioutil, http, url, context) {
|
||||
return this.testQueryParameterCollectionFormatWithHttpInfo(pipe, ioutil, http, url, context)
|
||||
.then(function(response_and_data) {
|
||||
return response_and_data.data;
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
@ -120,6 +120,7 @@ Class | Method | HTTP request | Description
|
||||
*OpenApiPetstore.FakeApi* | [**testGroupParameters**](docs/FakeApi.md#testGroupParameters) | **DELETE** /fake | Fake endpoint to test group parameters (optional)
|
||||
*OpenApiPetstore.FakeApi* | [**testInlineAdditionalProperties**](docs/FakeApi.md#testInlineAdditionalProperties) | **POST** /fake/inline-additionalProperties | test inline additionalProperties
|
||||
*OpenApiPetstore.FakeApi* | [**testJsonFormData**](docs/FakeApi.md#testJsonFormData) | **GET** /fake/jsonFormData | test json serialization of form data
|
||||
*OpenApiPetstore.FakeApi* | [**testQueryParameterCollectionFormat**](docs/FakeApi.md#testQueryParameterCollectionFormat) | **PUT** /fake/test-query-paramters |
|
||||
*OpenApiPetstore.FakeClassnameTags123Api* | [**testClassname**](docs/FakeClassnameTags123Api.md#testClassname) | **PATCH** /fake_classname_test | To test class name in snake case
|
||||
*OpenApiPetstore.PetApi* | [**addPet**](docs/PetApi.md#addPet) | **POST** /pet | Add a new pet to the store
|
||||
*OpenApiPetstore.PetApi* | [**deletePet**](docs/PetApi.md#deletePet) | **DELETE** /pet/{petId} | Deletes a pet
|
||||
|
@ -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 |
|
||||
|
||||
|
||||
|
||||
@ -671,3 +672,56 @@ No authorization required
|
||||
- **Content-Type**: application/x-www-form-urlencoded
|
||||
- **Accept**: Not defined
|
||||
|
||||
|
||||
## testQueryParameterCollectionFormat
|
||||
|
||||
> testQueryParameterCollectionFormat(pipe, ioutil, http, url, context)
|
||||
|
||||
|
||||
|
||||
To test the collection format in query parameters
|
||||
|
||||
### Example
|
||||
|
||||
```javascript
|
||||
var OpenApiPetstore = require('open_api_petstore');
|
||||
|
||||
var apiInstance = new OpenApiPetstore.FakeApi();
|
||||
var pipe = ["null"]; // [String] |
|
||||
var ioutil = ["null"]; // [String] |
|
||||
var http = ["null"]; // [String] |
|
||||
var url = ["null"]; // [String] |
|
||||
var context = ["null"]; // [String] |
|
||||
apiInstance.testQueryParameterCollectionFormat(pipe, ioutil, http, url, context).then(function() {
|
||||
console.log('API called successfully.');
|
||||
}, function(error) {
|
||||
console.error(error);
|
||||
});
|
||||
|
||||
```
|
||||
|
||||
### Parameters
|
||||
|
||||
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**pipe** | [**[String]**](String.md)| |
|
||||
**ioutil** | [**[String]**](String.md)| |
|
||||
**http** | [**[String]**](String.md)| |
|
||||
**url** | [**[String]**](String.md)| |
|
||||
**context** | [**[String]**](String.md)| |
|
||||
|
||||
### Return type
|
||||
|
||||
null (empty response body)
|
||||
|
||||
### Authorization
|
||||
|
||||
No authorization required
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: Not defined
|
||||
- **Accept**: Not defined
|
||||
|
||||
|
@ -782,6 +782,97 @@
|
||||
return response_and_data.data;
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* To test the collection format in query parameters
|
||||
* @param {Array.<String>} pipe
|
||||
* @param {Array.<String>} ioutil
|
||||
* @param {Array.<String>} http
|
||||
* @param {Array.<String>} url
|
||||
* @param {Array.<String>} context
|
||||
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
||||
*/
|
||||
this.testQueryParameterCollectionFormatWithHttpInfo = function(pipe, ioutil, http, url, context) {
|
||||
var postBody = null;
|
||||
// verify the required parameter 'pipe' is set
|
||||
if (pipe === undefined || pipe === null) {
|
||||
throw new Error("Missing the required parameter 'pipe' when calling testQueryParameterCollectionFormat");
|
||||
}
|
||||
// verify the required parameter 'ioutil' is set
|
||||
if (ioutil === undefined || ioutil === null) {
|
||||
throw new Error("Missing the required parameter 'ioutil' when calling testQueryParameterCollectionFormat");
|
||||
}
|
||||
// verify the required parameter 'http' is set
|
||||
if (http === undefined || http === null) {
|
||||
throw new Error("Missing the required parameter 'http' when calling testQueryParameterCollectionFormat");
|
||||
}
|
||||
// verify the required parameter 'url' is set
|
||||
if (url === undefined || url === null) {
|
||||
throw new Error("Missing the required parameter 'url' when calling testQueryParameterCollectionFormat");
|
||||
}
|
||||
// verify the required parameter 'context' is set
|
||||
if (context === undefined || context === null) {
|
||||
throw new Error("Missing the required parameter 'context' when calling testQueryParameterCollectionFormat");
|
||||
}
|
||||
|
||||
var pathParams = {
|
||||
};
|
||||
var queryParams = {
|
||||
};
|
||||
var collectionQueryParams = {
|
||||
'pipe': {
|
||||
value: pipe,
|
||||
collectionFormat: 'csv'
|
||||
},
|
||||
'ioutil': {
|
||||
value: ioutil,
|
||||
collectionFormat: 'csv'
|
||||
},
|
||||
'http': {
|
||||
value: http,
|
||||
collectionFormat: 'space'
|
||||
},
|
||||
'url': {
|
||||
value: url,
|
||||
collectionFormat: 'csv'
|
||||
},
|
||||
'context': {
|
||||
value: context,
|
||||
collectionFormat: 'multi'
|
||||
},
|
||||
};
|
||||
var headerParams = {
|
||||
};
|
||||
var formParams = {
|
||||
};
|
||||
|
||||
var authNames = [];
|
||||
var contentTypes = [];
|
||||
var accepts = [];
|
||||
var returnType = null;
|
||||
return this.apiClient.callApi(
|
||||
'/fake/test-query-paramters', 'PUT',
|
||||
pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody,
|
||||
authNames, contentTypes, accepts, returnType, null
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* To test the collection format in query parameters
|
||||
* @param {Array.<String>} pipe
|
||||
* @param {Array.<String>} ioutil
|
||||
* @param {Array.<String>} http
|
||||
* @param {Array.<String>} url
|
||||
* @param {Array.<String>} context
|
||||
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
||||
*/
|
||||
this.testQueryParameterCollectionFormat = function(pipe, ioutil, http, url, context) {
|
||||
return this.testQueryParameterCollectionFormatWithHttpInfo(pipe, ioutil, http, url, context)
|
||||
.then(function(response_and_data) {
|
||||
return response_and_data.data;
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
return exports;
|
||||
|
@ -123,6 +123,7 @@ Class | Method | HTTP request | Description
|
||||
*OpenApiPetstore.FakeApi* | [**testGroupParameters**](docs/FakeApi.md#testGroupParameters) | **DELETE** /fake | Fake endpoint to test group parameters (optional)
|
||||
*OpenApiPetstore.FakeApi* | [**testInlineAdditionalProperties**](docs/FakeApi.md#testInlineAdditionalProperties) | **POST** /fake/inline-additionalProperties | test inline additionalProperties
|
||||
*OpenApiPetstore.FakeApi* | [**testJsonFormData**](docs/FakeApi.md#testJsonFormData) | **GET** /fake/jsonFormData | test json serialization of form data
|
||||
*OpenApiPetstore.FakeApi* | [**testQueryParameterCollectionFormat**](docs/FakeApi.md#testQueryParameterCollectionFormat) | **PUT** /fake/test-query-paramters |
|
||||
*OpenApiPetstore.FakeClassnameTags123Api* | [**testClassname**](docs/FakeClassnameTags123Api.md#testClassname) | **PATCH** /fake_classname_test | To test class name in snake case
|
||||
*OpenApiPetstore.PetApi* | [**addPet**](docs/PetApi.md#addPet) | **POST** /pet | Add a new pet to the store
|
||||
*OpenApiPetstore.PetApi* | [**deletePet**](docs/PetApi.md#deletePet) | **DELETE** /pet/{petId} | Deletes a pet
|
||||
|
@ -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 |
|
||||
|
||||
|
||||
|
||||
@ -697,3 +698,58 @@ No authorization required
|
||||
- **Content-Type**: application/x-www-form-urlencoded
|
||||
- **Accept**: Not defined
|
||||
|
||||
|
||||
## testQueryParameterCollectionFormat
|
||||
|
||||
> testQueryParameterCollectionFormat(pipe, ioutil, http, url, context)
|
||||
|
||||
|
||||
|
||||
To test the collection format in query parameters
|
||||
|
||||
### Example
|
||||
|
||||
```javascript
|
||||
var OpenApiPetstore = require('open_api_petstore');
|
||||
|
||||
var apiInstance = new OpenApiPetstore.FakeApi();
|
||||
var pipe = ["null"]; // [String] |
|
||||
var ioutil = ["null"]; // [String] |
|
||||
var http = ["null"]; // [String] |
|
||||
var url = ["null"]; // [String] |
|
||||
var context = ["null"]; // [String] |
|
||||
var callback = function(error, data, response) {
|
||||
if (error) {
|
||||
console.error(error);
|
||||
} else {
|
||||
console.log('API called successfully.');
|
||||
}
|
||||
};
|
||||
apiInstance.testQueryParameterCollectionFormat(pipe, ioutil, http, url, context, callback);
|
||||
```
|
||||
|
||||
### Parameters
|
||||
|
||||
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**pipe** | [**[String]**](String.md)| |
|
||||
**ioutil** | [**[String]**](String.md)| |
|
||||
**http** | [**[String]**](String.md)| |
|
||||
**url** | [**[String]**](String.md)| |
|
||||
**context** | [**[String]**](String.md)| |
|
||||
|
||||
### Return type
|
||||
|
||||
null (empty response body)
|
||||
|
||||
### Authorization
|
||||
|
||||
No authorization required
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: Not defined
|
||||
- **Accept**: Not defined
|
||||
|
||||
|
@ -684,6 +684,88 @@
|
||||
authNames, contentTypes, accepts, returnType, null, callback
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Callback function to receive the result of the testQueryParameterCollectionFormat operation.
|
||||
* @callback module:api/FakeApi~testQueryParameterCollectionFormatCallback
|
||||
* @param {String} error Error message, if any.
|
||||
* @param data This operation does not return a value.
|
||||
* @param {String} response The complete HTTP response.
|
||||
*/
|
||||
|
||||
/**
|
||||
* To test the collection format in query parameters
|
||||
* @param {Array.<String>} pipe
|
||||
* @param {Array.<String>} ioutil
|
||||
* @param {Array.<String>} http
|
||||
* @param {Array.<String>} url
|
||||
* @param {Array.<String>} context
|
||||
* @param {module:api/FakeApi~testQueryParameterCollectionFormatCallback} callback The callback function, accepting three arguments: error, data, response
|
||||
*/
|
||||
this.testQueryParameterCollectionFormat = function(pipe, ioutil, http, url, context, callback) {
|
||||
var postBody = null;
|
||||
// verify the required parameter 'pipe' is set
|
||||
if (pipe === undefined || pipe === null) {
|
||||
throw new Error("Missing the required parameter 'pipe' when calling testQueryParameterCollectionFormat");
|
||||
}
|
||||
// verify the required parameter 'ioutil' is set
|
||||
if (ioutil === undefined || ioutil === null) {
|
||||
throw new Error("Missing the required parameter 'ioutil' when calling testQueryParameterCollectionFormat");
|
||||
}
|
||||
// verify the required parameter 'http' is set
|
||||
if (http === undefined || http === null) {
|
||||
throw new Error("Missing the required parameter 'http' when calling testQueryParameterCollectionFormat");
|
||||
}
|
||||
// verify the required parameter 'url' is set
|
||||
if (url === undefined || url === null) {
|
||||
throw new Error("Missing the required parameter 'url' when calling testQueryParameterCollectionFormat");
|
||||
}
|
||||
// verify the required parameter 'context' is set
|
||||
if (context === undefined || context === null) {
|
||||
throw new Error("Missing the required parameter 'context' when calling testQueryParameterCollectionFormat");
|
||||
}
|
||||
|
||||
var pathParams = {
|
||||
};
|
||||
var queryParams = {
|
||||
};
|
||||
var collectionQueryParams = {
|
||||
'pipe': {
|
||||
value: pipe,
|
||||
collectionFormat: 'csv'
|
||||
},
|
||||
'ioutil': {
|
||||
value: ioutil,
|
||||
collectionFormat: 'csv'
|
||||
},
|
||||
'http': {
|
||||
value: http,
|
||||
collectionFormat: 'space'
|
||||
},
|
||||
'url': {
|
||||
value: url,
|
||||
collectionFormat: 'csv'
|
||||
},
|
||||
'context': {
|
||||
value: context,
|
||||
collectionFormat: 'multi'
|
||||
},
|
||||
};
|
||||
var headerParams = {
|
||||
};
|
||||
var formParams = {
|
||||
};
|
||||
|
||||
var authNames = [];
|
||||
var contentTypes = [];
|
||||
var accepts = [];
|
||||
var returnType = null;
|
||||
return this.apiClient.callApi(
|
||||
'/fake/test-query-paramters', 'PUT',
|
||||
pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody,
|
||||
authNames, contentTypes, accepts, returnType, null, callback
|
||||
);
|
||||
}
|
||||
};
|
||||
|
||||
return exports;
|
||||
|
@ -383,6 +383,7 @@ Class | Method | HTTP request | Description
|
||||
*FakeApi* | [**test_group_parameters**](docs/FakeApi.md#test_group_parameters) | **DELETE** /fake | Fake endpoint to test group parameters (optional)
|
||||
*FakeApi* | [**test_inline_additional_properties**](docs/FakeApi.md#test_inline_additional_properties) | **POST** /fake/inline-additionalProperties | test inline additionalProperties
|
||||
*FakeApi* | [**test_json_form_data**](docs/FakeApi.md#test_json_form_data) | **GET** /fake/jsonFormData | test json serialization of form data
|
||||
*FakeApi* | [**test_query_parameter_collection_format**](docs/FakeApi.md#test_query_parameter_collection_format) | **PUT** /fake/test-query-paramters |
|
||||
*FakeClassnameTags123Api* | [**test_classname**](docs/FakeClassnameTags123Api.md#test_classname) | **PATCH** /fake_classname_test | To test class name in snake case
|
||||
*PetApi* | [**add_pet**](docs/PetApi.md#add_pet) | **POST** /pet | Add a new pet to the store
|
||||
*PetApi* | [**delete_pet**](docs/PetApi.md#delete_pet) | **DELETE** /pet/{petId} | Deletes a pet
|
||||
|
@ -22,6 +22,7 @@ Method | HTTP request | Description
|
||||
[**test_group_parameters**](FakeApi.md#test_group_parameters) | **DELETE** /fake | Fake endpoint to test group parameters (optional)
|
||||
[**test_inline_additional_properties**](FakeApi.md#test_inline_additional_properties) | **POST** /fake/inline-additionalProperties | test inline additionalProperties
|
||||
[**test_json_form_data**](FakeApi.md#test_json_form_data) | **GET** /fake/jsonFormData | test json serialization of form data
|
||||
[**test_query_parameter_collection_format**](FakeApi.md#test_query_parameter_collection_format) | **PUT** /fake/test-query-paramters |
|
||||
|
||||
|
||||
# **create_xml_item**
|
||||
@ -667,3 +668,56 @@ No authorization required
|
||||
|
||||
[[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)
|
||||
|
||||
# **test_query_parameter_collection_format**
|
||||
> test_query_parameter_collection_format(pipe => $pipe, ioutil => $ioutil, http => $http, url => $url, context => $context)
|
||||
|
||||
|
||||
|
||||
To test the collection format in query parameters
|
||||
|
||||
### Example
|
||||
```perl
|
||||
use Data::Dumper;
|
||||
use WWW::OpenAPIClient::FakeApi;
|
||||
my $api_instance = WWW::OpenAPIClient::FakeApi->new(
|
||||
);
|
||||
|
||||
my $pipe = [("null")]; # ARRAY[string] |
|
||||
my $ioutil = [("null")]; # ARRAY[string] |
|
||||
my $http = [("null")]; # ARRAY[string] |
|
||||
my $url = [("null")]; # ARRAY[string] |
|
||||
my $context = [("null")]; # ARRAY[string] |
|
||||
|
||||
eval {
|
||||
$api_instance->test_query_parameter_collection_format(pipe => $pipe, ioutil => $ioutil, http => $http, url => $url, context => $context);
|
||||
};
|
||||
if ($@) {
|
||||
warn "Exception when calling FakeApi->test_query_parameter_collection_format: $@\n";
|
||||
}
|
||||
```
|
||||
|
||||
### Parameters
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**pipe** | [**ARRAY[string]**](string.md)| |
|
||||
**ioutil** | [**ARRAY[string]**](string.md)| |
|
||||
**http** | [**ARRAY[string]**](string.md)| |
|
||||
**url** | [**ARRAY[string]**](string.md)| |
|
||||
**context** | [**ARRAY[string]**](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)
|
||||
|
||||
|
@ -1169,4 +1169,129 @@ sub test_json_form_data {
|
||||
return;
|
||||
}
|
||||
|
||||
#
|
||||
# test_query_parameter_collection_format
|
||||
#
|
||||
#
|
||||
#
|
||||
# @param ARRAY[string] $pipe (required)
|
||||
# @param ARRAY[string] $ioutil (required)
|
||||
# @param ARRAY[string] $http (required)
|
||||
# @param ARRAY[string] $url (required)
|
||||
# @param ARRAY[string] $context (required)
|
||||
{
|
||||
my $params = {
|
||||
'pipe' => {
|
||||
data_type => 'ARRAY[string]',
|
||||
description => '',
|
||||
required => '1',
|
||||
},
|
||||
'ioutil' => {
|
||||
data_type => 'ARRAY[string]',
|
||||
description => '',
|
||||
required => '1',
|
||||
},
|
||||
'http' => {
|
||||
data_type => 'ARRAY[string]',
|
||||
description => '',
|
||||
required => '1',
|
||||
},
|
||||
'url' => {
|
||||
data_type => 'ARRAY[string]',
|
||||
description => '',
|
||||
required => '1',
|
||||
},
|
||||
'context' => {
|
||||
data_type => 'ARRAY[string]',
|
||||
description => '',
|
||||
required => '1',
|
||||
},
|
||||
};
|
||||
__PACKAGE__->method_documentation->{ 'test_query_parameter_collection_format' } = {
|
||||
summary => '',
|
||||
params => $params,
|
||||
returns => undef,
|
||||
};
|
||||
}
|
||||
# @return void
|
||||
#
|
||||
sub test_query_parameter_collection_format {
|
||||
my ($self, %args) = @_;
|
||||
|
||||
# verify the required parameter 'pipe' is set
|
||||
unless (exists $args{'pipe'}) {
|
||||
croak("Missing the required parameter 'pipe' when calling test_query_parameter_collection_format");
|
||||
}
|
||||
|
||||
# verify the required parameter 'ioutil' is set
|
||||
unless (exists $args{'ioutil'}) {
|
||||
croak("Missing the required parameter 'ioutil' when calling test_query_parameter_collection_format");
|
||||
}
|
||||
|
||||
# verify the required parameter 'http' is set
|
||||
unless (exists $args{'http'}) {
|
||||
croak("Missing the required parameter 'http' when calling test_query_parameter_collection_format");
|
||||
}
|
||||
|
||||
# verify the required parameter 'url' is set
|
||||
unless (exists $args{'url'}) {
|
||||
croak("Missing the required parameter 'url' when calling test_query_parameter_collection_format");
|
||||
}
|
||||
|
||||
# verify the required parameter 'context' is set
|
||||
unless (exists $args{'context'}) {
|
||||
croak("Missing the required parameter 'context' when calling test_query_parameter_collection_format");
|
||||
}
|
||||
|
||||
# parse inputs
|
||||
my $_resource_path = '/fake/test-query-paramters';
|
||||
|
||||
my $_method = 'PUT';
|
||||
my $query_params = {};
|
||||
my $header_params = {};
|
||||
my $form_params = {};
|
||||
|
||||
# 'Accept' and 'Content-Type' header
|
||||
my $_header_accept = $self->{api_client}->select_header_accept();
|
||||
if ($_header_accept) {
|
||||
$header_params->{'Accept'} = $_header_accept;
|
||||
}
|
||||
$header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type();
|
||||
|
||||
# query params
|
||||
if ( exists $args{'pipe'}) {
|
||||
$query_params->{'pipe'} = $self->{api_client}->to_query_value($args{'pipe'});
|
||||
}
|
||||
|
||||
# query params
|
||||
if ( exists $args{'ioutil'}) {
|
||||
$query_params->{'ioutil'} = $self->{api_client}->to_query_value($args{'ioutil'});
|
||||
}
|
||||
|
||||
# query params
|
||||
if ( exists $args{'http'}) {
|
||||
$query_params->{'http'} = $self->{api_client}->to_query_value($args{'http'});
|
||||
}
|
||||
|
||||
# query params
|
||||
if ( exists $args{'url'}) {
|
||||
$query_params->{'url'} = $self->{api_client}->to_query_value($args{'url'});
|
||||
}
|
||||
|
||||
# query params
|
||||
if ( exists $args{'context'}) {
|
||||
$query_params->{'context'} = $self->{api_client}->to_query_value($args{'context'});
|
||||
}
|
||||
|
||||
my $_body_data;
|
||||
# authentication setting, if any
|
||||
my $auth_settings = [qw()];
|
||||
|
||||
# make the API Call
|
||||
$self->{api_client}->call_api($_resource_path, $_method,
|
||||
$query_params, $form_params,
|
||||
$header_params, $_body_data, $auth_settings);
|
||||
return;
|
||||
}
|
||||
|
||||
1;
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user