[Java][native][apache-httpclient] Update toUrlQueryString to support form style for object (#14478)

* update toUrlQueryString

* add new files

* minor bug fixes

* support object in query parameter - java apache httpclient

* rename variable - java native

* update samples

* fix try catch
This commit is contained in:
William Cheng
2023-01-19 16:13:51 +08:00
committed by GitHub
parent d1cde7febe
commit 6cd7989e9e
228 changed files with 8867 additions and 688 deletions

View File

@@ -0,0 +1,15 @@
# DataQuery
## Properties
| Name | Type | Description | Notes |
|------------ | ------------- | ------------- | -------------|
|**suffix** | **String** | test suffix | [optional] |
|**text** | **String** | Some text containing white spaces | [optional] |
|**date** | **OffsetDateTime** | A date | [optional] |

View File

@@ -0,0 +1,15 @@
# DataQueryAllOf
## Properties
| Name | Type | Description | Notes |
|------------ | ------------- | ------------- | -------------|
|**suffix** | **String** | test suffix | [optional] |
|**text** | **String** | Some text containing white spaces | [optional] |
|**date** | **OffsetDateTime** | A date | [optional] |

View File

@@ -0,0 +1,24 @@
# Query
## Properties
| Name | Type | Description | Notes |
|------------ | ------------- | ------------- | -------------|
|**id** | **Long** | Query | [optional] |
|**outcomes** | [**List<OutcomesEnum>**](#List<OutcomesEnum>) | | [optional] |
## Enum: List<OutcomesEnum>
| Name | Value |
|---- | -----|
| SUCCESS | "SUCCESS" |
| FAILURE | "FAILURE" |
| SKIPPED | "SKIPPED" |

View File

@@ -9,6 +9,7 @@ All URIs are relative to *http://localhost:3000*
| [**testQueryStyleDeepObjectExplodeTrueObjectAllOf**](QueryApi.md#testQueryStyleDeepObjectExplodeTrueObjectAllOf) | **GET** /query/style_deepObject/explode_true/object/allOf | Test query parameter(s) |
| [**testQueryStyleFormExplodeTrueArrayString**](QueryApi.md#testQueryStyleFormExplodeTrueArrayString) | **GET** /query/style_form/explode_true/array_string | Test query parameter(s) |
| [**testQueryStyleFormExplodeTrueObject**](QueryApi.md#testQueryStyleFormExplodeTrueObject) | **GET** /query/style_form/explode_true/object | Test query parameter(s) |
| [**testQueryStyleFormExplodeTrueObjectAllOf**](QueryApi.md#testQueryStyleFormExplodeTrueObjectAllOf) | **GET** /query/style_form/explode_true/object/allOf | Test query parameter(s) |
<a name="testQueryIntegerBooleanString"></a>
@@ -325,3 +326,65 @@ No authorization required
|-------------|-------------|------------------|
| **200** | Successful operation | - |
<a name="testQueryStyleFormExplodeTrueObjectAllOf"></a>
# **testQueryStyleFormExplodeTrueObjectAllOf**
> String testQueryStyleFormExplodeTrueObjectAllOf(queryObject)
Test query parameter(s)
Test query parameter(s)
### 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.QueryApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost:3000");
QueryApi apiInstance = new QueryApi(defaultClient);
DataQuery queryObject = new DataQuery(); // DataQuery |
try {
String result = apiInstance.testQueryStyleFormExplodeTrueObjectAllOf(queryObject);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling QueryApi#testQueryStyleFormExplodeTrueObjectAllOf");
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 |
|------------- | ------------- | ------------- | -------------|
| **queryObject** | [**DataQuery**](.md)| | [optional] |
### Return type
**String**
### Authorization
No authorization required
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: text/plain
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
| **200** | Successful operation | - |