Improve Java native, apache-httpclient with better spec (#14109)

* improve java native, apache client with better spec

* fix java native async tests

* regenerate java native tests
This commit is contained in:
William Cheng
2022-11-24 21:48:09 +08:00
committed by GitHub
parent 6bb6f1b28a
commit 980062f2bb
232 changed files with 14186 additions and 5559 deletions

View File

@@ -11,7 +11,7 @@ All URIs are relative to *http://petstore.swagger.io:80/v2*
## call123testSpecialTags
> CompletableFuture<Client> call123testSpecialTags(body)
> CompletableFuture<Client> call123testSpecialTags(client)
To test special tags
@@ -34,9 +34,9 @@ public class Example {
defaultClient.setBasePath("http://petstore.swagger.io:80/v2");
AnotherFakeApi apiInstance = new AnotherFakeApi(defaultClient);
Client body = new Client(); // Client | client model
Client client = new Client(); // Client | client model
try {
CompletableFuture<Client> result = apiInstance.call123testSpecialTags(body);
CompletableFuture<Client> result = apiInstance.call123testSpecialTags(client);
System.out.println(result.get());
} catch (ApiException e) {
System.err.println("Exception when calling AnotherFakeApi#call123testSpecialTags");
@@ -54,7 +54,7 @@ public class Example {
| Name | Type | Description | Notes |
|------------- | ------------- | ------------- | -------------|
| **body** | [**Client**](Client.md)| client model | |
| **client** | [**Client**](Client.md)| client model | |
### Return type
@@ -77,7 +77,7 @@ No authorization required
## call123testSpecialTagsWithHttpInfo
> CompletableFuture<ApiResponse<Client>> call123testSpecialTags call123testSpecialTagsWithHttpInfo(body)
> CompletableFuture<ApiResponse<Client>> call123testSpecialTags call123testSpecialTagsWithHttpInfo(client)
To test special tags
@@ -101,9 +101,9 @@ public class Example {
defaultClient.setBasePath("http://petstore.swagger.io:80/v2");
AnotherFakeApi apiInstance = new AnotherFakeApi(defaultClient);
Client body = new Client(); // Client | client model
Client client = new Client(); // Client | client model
try {
CompletableFuture<ApiResponse<Client>> response = apiInstance.call123testSpecialTagsWithHttpInfo(body);
CompletableFuture<ApiResponse<Client>> response = apiInstance.call123testSpecialTagsWithHttpInfo(client);
System.out.println("Status code: " + response.get().getStatusCode());
System.out.println("Response headers: " + response.get().getHeaders());
System.out.println("Response body: " + response.get().getData());
@@ -130,7 +130,7 @@ public class Example {
| Name | Type | Description | Notes |
|------------- | ------------- | ------------- | -------------|
| **body** | [**Client**](Client.md)| client model | |
| **client** | [**Client**](Client.md)| client model | |
### Return type