mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-12-10 01:56:09 +00:00
Add map property in url params (#10154)
* Add map property in request params * Regenerate samples to include map in url property
This commit is contained in:
@@ -800,7 +800,7 @@ No authorization required
|
||||
|
||||
## testQueryParameterCollectionFormat
|
||||
|
||||
> testQueryParameterCollectionFormat(pipe, ioutil, http, url, context)
|
||||
> testQueryParameterCollectionFormat(pipe, ioutil, http, url, context, opts)
|
||||
|
||||
|
||||
|
||||
@@ -817,7 +817,10 @@ let ioutil = ["null"]; // [String] |
|
||||
let http = ["null"]; // [String] |
|
||||
let url = ["null"]; // [String] |
|
||||
let context = ["null"]; // [String] |
|
||||
apiInstance.testQueryParameterCollectionFormat(pipe, ioutil, http, url, context).then(() => {
|
||||
let opts = {
|
||||
'language': {key: "null"} // {String: String} |
|
||||
};
|
||||
apiInstance.testQueryParameterCollectionFormat(pipe, ioutil, http, url, context, opts).then(() => {
|
||||
console.log('API called successfully.');
|
||||
}, (error) => {
|
||||
console.error(error);
|
||||
@@ -835,6 +838,7 @@ Name | Type | Description | Notes
|
||||
**http** | [**[String]**](String.md)| |
|
||||
**url** | [**[String]**](String.md)| |
|
||||
**context** | [**[String]**](String.md)| |
|
||||
**language** | [**{String: String}**](String.md)| | [optional]
|
||||
|
||||
### Return type
|
||||
|
||||
|
||||
@@ -891,9 +891,12 @@ export default class FakeApi {
|
||||
* @param {Array.<String>} http
|
||||
* @param {Array.<String>} url
|
||||
* @param {Array.<String>} context
|
||||
* @param {Object} opts Optional parameters
|
||||
* @param {Object.<String, {String: String}>} opts.language
|
||||
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
||||
*/
|
||||
testQueryParameterCollectionFormatWithHttpInfo(pipe, ioutil, http, url, context) {
|
||||
testQueryParameterCollectionFormatWithHttpInfo(pipe, ioutil, http, url, context, opts) {
|
||||
opts = opts || {};
|
||||
let postBody = null;
|
||||
// verify the required parameter 'pipe' is set
|
||||
if (pipe === undefined || pipe === null) {
|
||||
@@ -923,7 +926,8 @@ export default class FakeApi {
|
||||
'ioutil': this.apiClient.buildCollectionParam(ioutil, 'csv'),
|
||||
'http': this.apiClient.buildCollectionParam(http, 'ssv'),
|
||||
'url': this.apiClient.buildCollectionParam(url, 'csv'),
|
||||
'context': this.apiClient.buildCollectionParam(context, 'multi')
|
||||
'context': this.apiClient.buildCollectionParam(context, 'multi'),
|
||||
'language': opts['language']
|
||||
};
|
||||
let headerParams = {
|
||||
};
|
||||
@@ -948,10 +952,12 @@ export default class FakeApi {
|
||||
* @param {Array.<String>} http
|
||||
* @param {Array.<String>} url
|
||||
* @param {Array.<String>} context
|
||||
* @param {Object} opts Optional parameters
|
||||
* @param {Object.<String, {String: String}>} opts.language
|
||||
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
||||
*/
|
||||
testQueryParameterCollectionFormat(pipe, ioutil, http, url, context) {
|
||||
return this.testQueryParameterCollectionFormatWithHttpInfo(pipe, ioutil, http, url, context)
|
||||
testQueryParameterCollectionFormat(pipe, ioutil, http, url, context, opts) {
|
||||
return this.testQueryParameterCollectionFormatWithHttpInfo(pipe, ioutil, http, url, context, opts)
|
||||
.then(function(response_and_data) {
|
||||
return response_and_data.data;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user