java-native added WithHttpInfo (#6704)

remove /t
This commit is contained in:
bgong-mdsol
2020-06-22 04:15:11 -04:00
committed by GitHub
parent 1d86d7e3ac
commit 8400d4c6f9
32 changed files with 6251 additions and 1949 deletions

View File

@@ -36,6 +36,7 @@ public class Example {
Client body = new Client(); // Client | client model
try {
CompletableFuture<Client> result = apiInstance.call123testSpecialTags(body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AnotherFakeApi#call123testSpecialTags");

View File

@@ -49,6 +49,7 @@ public class Example {
XmlItem xmlItem = new XmlItem(); // XmlItem | XmlItem Body
try {
CompletableFuture<Void> result = apiInstance.createXmlItem(xmlItem);
} catch (ApiException e) {
System.err.println("Exception when calling FakeApi#createXmlItem");
System.err.println("Status code: " + e.getCode());
@@ -115,6 +116,7 @@ public class Example {
Boolean body = true; // Boolean | Input boolean as post body
try {
CompletableFuture<Boolean> result = apiInstance.fakeOuterBooleanSerialize(body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling FakeApi#fakeOuterBooleanSerialize");
@@ -182,6 +184,7 @@ public class Example {
OuterComposite body = new OuterComposite(); // OuterComposite | Input composite as post body
try {
CompletableFuture<OuterComposite> result = apiInstance.fakeOuterCompositeSerialize(body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling FakeApi#fakeOuterCompositeSerialize");
@@ -249,6 +252,7 @@ public class Example {
BigDecimal body = new BigDecimal(); // BigDecimal | Input number as post body
try {
CompletableFuture<BigDecimal> result = apiInstance.fakeOuterNumberSerialize(body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling FakeApi#fakeOuterNumberSerialize");
@@ -316,6 +320,7 @@ public class Example {
String body = "body_example"; // String | Input string as post body
try {
CompletableFuture<String> result = apiInstance.fakeOuterStringSerialize(body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling FakeApi#fakeOuterStringSerialize");
@@ -383,6 +388,7 @@ public class Example {
FileSchemaTestClass body = new FileSchemaTestClass(); // FileSchemaTestClass |
try {
CompletableFuture<Void> result = apiInstance.testBodyWithFileSchema(body);
} catch (ApiException e) {
System.err.println("Exception when calling FakeApi#testBodyWithFileSchema");
System.err.println("Status code: " + e.getCode());
@@ -448,6 +454,7 @@ public class Example {
User body = new User(); // User |
try {
CompletableFuture<Void> result = apiInstance.testBodyWithQueryParams(query, body);
} catch (ApiException e) {
System.err.println("Exception when calling FakeApi#testBodyWithQueryParams");
System.err.println("Status code: " + e.getCode());
@@ -515,6 +522,7 @@ public class Example {
Client body = new Client(); // Client | client model
try {
CompletableFuture<Client> result = apiInstance.testClientModel(body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling FakeApi#testClientModel");
@@ -601,6 +609,7 @@ public class Example {
String paramCallback = "paramCallback_example"; // String | None
try {
CompletableFuture<Void> result = apiInstance.testEndpointParameters(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, string, binary, date, dateTime, password, paramCallback);
} catch (ApiException e) {
System.err.println("Exception when calling FakeApi#testEndpointParameters");
System.err.println("Status code: " + e.getCode());
@@ -688,6 +697,7 @@ public class Example {
String enumFormString = "-efg"; // String | Form parameter enum test (string)
try {
CompletableFuture<Void> result = apiInstance.testEnumParameters(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumFormStringArray, enumFormString);
} catch (ApiException e) {
System.err.println("Exception when calling FakeApi#testEnumParameters");
System.err.println("Status code: " + e.getCode());
@@ -767,7 +777,6 @@ public class Example {
Boolean booleanGroup = true; // Boolean | Boolean in group parameters
Long int64Group = 56L; // Long | Integer in group parameters
try {
APItestGroupParametersRequest request = APItestGroupParametersRequest.newBuilder()
.requiredStringGroup(requiredStringGroup)
.requiredBooleanGroup(requiredBooleanGroup)
@@ -855,6 +864,7 @@ public class Example {
Map<String, String> param = new HashMap(); // Map<String, String> | request body
try {
CompletableFuture<Void> result = apiInstance.testInlineAdditionalProperties(param);
} catch (ApiException e) {
System.err.println("Exception when calling FakeApi#testInlineAdditionalProperties");
System.err.println("Status code: " + e.getCode());
@@ -920,6 +930,7 @@ public class Example {
String param2 = "param2_example"; // String | field2
try {
CompletableFuture<Void> result = apiInstance.testJsonFormData(param, param2);
} catch (ApiException e) {
System.err.println("Exception when calling FakeApi#testJsonFormData");
System.err.println("Status code: " + e.getCode());
@@ -991,6 +1002,7 @@ public class Example {
List<String> context = Arrays.asList(); // List<String> |
try {
CompletableFuture<Void> result = 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());

View File

@@ -43,6 +43,7 @@ public class Example {
Client body = new Client(); // Client | client model
try {
CompletableFuture<Client> result = apiInstance.testClassname(body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling FakeClassnameTags123Api#testClassname");

View File

@@ -47,6 +47,7 @@ public class Example {
Pet body = new Pet(); // Pet | Pet object that needs to be added to the store
try {
CompletableFuture<Void> result = apiInstance.addPet(body);
} catch (ApiException e) {
System.err.println("Exception when calling PetApi#addPet");
System.err.println("Status code: " + e.getCode());
@@ -118,6 +119,7 @@ public class Example {
String apiKey = "apiKey_example"; // String |
try {
CompletableFuture<Void> result = apiInstance.deletePet(petId, apiKey);
} catch (ApiException e) {
System.err.println("Exception when calling PetApi#deletePet");
System.err.println("Status code: " + e.getCode());
@@ -191,6 +193,7 @@ public class Example {
List<String> status = Arrays.asList("available"); // List<String> | Status values that need to be considered for filter
try {
CompletableFuture<List<Pet>> result = apiInstance.findPetsByStatus(status);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling PetApi#findPetsByStatus");
@@ -264,6 +267,7 @@ public class Example {
Set<String> tags = Arrays.asList(); // Set<String> | Tags to filter by
try {
CompletableFuture<Set<Pet>> result = apiInstance.findPetsByTags(tags);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling PetApi#findPetsByTags");
@@ -339,6 +343,7 @@ public class Example {
Long petId = 56L; // Long | ID of pet to return
try {
CompletableFuture<Pet> result = apiInstance.getPetById(petId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling PetApi#getPetById");
@@ -411,6 +416,7 @@ public class Example {
Pet body = new Pet(); // Pet | Pet object that needs to be added to the store
try {
CompletableFuture<Void> result = apiInstance.updatePet(body);
} catch (ApiException e) {
System.err.println("Exception when calling PetApi#updatePet");
System.err.println("Status code: " + e.getCode());
@@ -485,6 +491,7 @@ public class Example {
String status = "status_example"; // String | Updated status of the pet
try {
CompletableFuture<Void> result = apiInstance.updatePetWithForm(petId, name, status);
} catch (ApiException e) {
System.err.println("Exception when calling PetApi#updatePetWithForm");
System.err.println("Status code: " + e.getCode());
@@ -558,6 +565,7 @@ public class Example {
File file = new File("/path/to/file"); // File | file to upload
try {
CompletableFuture<ModelApiResponse> result = apiInstance.uploadFile(petId, additionalMetadata, file);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling PetApi#uploadFile");
@@ -632,6 +640,7 @@ public class Example {
String additionalMetadata = "additionalMetadata_example"; // String | Additional data to pass to server
try {
CompletableFuture<ModelApiResponse> result = apiInstance.uploadFileWithRequiredFile(petId, requiredFile, additionalMetadata);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling PetApi#uploadFileWithRequiredFile");

View File

@@ -39,6 +39,7 @@ public class Example {
String orderId = "orderId_example"; // String | ID of the order that needs to be deleted
try {
CompletableFuture<Void> result = apiInstance.deleteOrder(orderId);
} catch (ApiException e) {
System.err.println("Exception when calling StoreApi#deleteOrder");
System.err.println("Status code: " + e.getCode());
@@ -112,6 +113,7 @@ public class Example {
StoreApi apiInstance = new StoreApi(defaultClient);
try {
CompletableFuture<Map<String, Integer>> result = apiInstance.getInventory();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling StoreApi#getInventory");
@@ -176,6 +178,7 @@ public class Example {
Long orderId = 56L; // Long | ID of pet that needs to be fetched
try {
CompletableFuture<Order> result = apiInstance.getOrderById(orderId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling StoreApi#getOrderById");
@@ -243,6 +246,7 @@ public class Example {
Order body = new Order(); // Order | order placed for purchasing the pet
try {
CompletableFuture<Order> result = apiInstance.placeOrder(body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling StoreApi#placeOrder");

View File

@@ -43,6 +43,7 @@ public class Example {
User body = new User(); // User | Created user object
try {
CompletableFuture<Void> result = apiInstance.createUser(body);
} catch (ApiException e) {
System.err.println("Exception when calling UserApi#createUser");
System.err.println("Status code: " + e.getCode());
@@ -107,6 +108,7 @@ public class Example {
List<User> body = Arrays.asList(); // List<User> | List of user object
try {
CompletableFuture<Void> result = apiInstance.createUsersWithArrayInput(body);
} catch (ApiException e) {
System.err.println("Exception when calling UserApi#createUsersWithArrayInput");
System.err.println("Status code: " + e.getCode());
@@ -171,6 +173,7 @@ public class Example {
List<User> body = Arrays.asList(); // List<User> | List of user object
try {
CompletableFuture<Void> result = apiInstance.createUsersWithListInput(body);
} catch (ApiException e) {
System.err.println("Exception when calling UserApi#createUsersWithListInput");
System.err.println("Status code: " + e.getCode());
@@ -237,6 +240,7 @@ public class Example {
String username = "username_example"; // String | The name that needs to be deleted
try {
CompletableFuture<Void> result = apiInstance.deleteUser(username);
} catch (ApiException e) {
System.err.println("Exception when calling UserApi#deleteUser");
System.err.println("Status code: " + e.getCode());
@@ -302,6 +306,7 @@ public class Example {
String username = "username_example"; // String | The name that needs to be fetched. Use user1 for testing.
try {
CompletableFuture<User> result = apiInstance.getUserByName(username);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling UserApi#getUserByName");
@@ -370,6 +375,7 @@ public class Example {
String password = "password_example"; // String | The password for login in clear text
try {
CompletableFuture<String> result = apiInstance.loginUser(username, password);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling UserApi#loginUser");
@@ -436,6 +442,7 @@ public class Example {
UserApi apiInstance = new UserApi(defaultClient);
try {
CompletableFuture<Void> result = apiInstance.logoutUser();
} catch (ApiException e) {
System.err.println("Exception when calling UserApi#logoutUser");
System.err.println("Status code: " + e.getCode());
@@ -500,6 +507,7 @@ public class Example {
User body = new User(); // User | Updated user object
try {
CompletableFuture<Void> result = apiInstance.updateUser(username, body);
} catch (ApiException e) {
System.err.println("Exception when calling UserApi#updateUser");
System.err.println("Status code: " + e.getCode());