[Java][jersey2] Use builder pattern for requests (#4666)

* Use builder pattern for requests

* petstore

* Add @throws annotation

* regenerate jersey2 test files

* Also group bodyParam in builder class

* petstore java6

* regenerate java8

* ensure up to date
This commit is contained in:
Hippolyte HENRY 2020-01-18 09:12:20 +01:00 committed by William Cheng
parent 420039c9eb
commit ee984c38a5
139 changed files with 2378 additions and 1330 deletions

View File

@ -38,8 +38,8 @@ public class {{classname}} {
public void setApiClient(ApiClient apiClient) { public void setApiClient(ApiClient apiClient) {
this.apiClient = apiClient; this.apiClient = apiClient;
} }
{{#operation}} {{#operation}}
{{^vendorExtensions.x-group-parameters}}
/** /**
* {{summary}} * {{summary}}
* {{notes}} * {{notes}}
@ -71,13 +71,11 @@ public class {{classname}} {
@Deprecated @Deprecated
{{/isDeprecated}} {{/isDeprecated}}
public {{#returnType}}{{{returnType}}} {{/returnType}}{{^returnType}}void {{/returnType}}{{operationId}}({{#allParams}}{{{dataType}}} {{paramName}}{{#hasMore}}, {{/hasMore}}{{/allParams}}) throws ApiException { public {{#returnType}}{{{returnType}}} {{/returnType}}{{^returnType}}void {{/returnType}}{{operationId}}({{#allParams}}{{{dataType}}} {{paramName}}{{#hasMore}}, {{/hasMore}}{{/allParams}}) throws ApiException {
{{#returnType}} {{#returnType}}return {{/returnType}}{{operationId}}WithHttpInfo({{#allParams}}{{paramName}}{{#hasMore}}, {{/hasMore}}{{/allParams}}){{#returnType}}.getData(){{/returnType}};
return {{operationId}}WithHttpInfo({{#allParams}}{{paramName}}{{#hasMore}}, {{/hasMore}}{{/allParams}}).getData();
{{/returnType}}{{^returnType}}
{{operationId}}WithHttpInfo({{#allParams}}{{paramName}}{{#hasMore}}, {{/hasMore}}{{/allParams}});
{{/returnType}}
} }
{{/vendorExtensions.x-group-parameters}}
{{^vendorExtensions.x-group-parameters}}
/** /**
* {{summary}} * {{summary}}
* {{notes}} * {{notes}}
@ -106,7 +104,7 @@ public class {{classname}} {
{{#isDeprecated}} {{#isDeprecated}}
@Deprecated @Deprecated
{{/isDeprecated}} {{/isDeprecated}}
public ApiResponse<{{#returnType}}{{{returnType}}}{{/returnType}}{{^returnType}}Void{{/returnType}}> {{operationId}}WithHttpInfo({{#allParams}}{{{dataType}}} {{paramName}}{{#hasMore}}, {{/hasMore}}{{/allParams}}) throws ApiException { public{{/vendorExtensions.x-group-parameters}}{{#vendorExtensions.x-group-parameters}}private{{/vendorExtensions.x-group-parameters}} ApiResponse<{{#returnType}}{{{returnType}}}{{/returnType}}{{^returnType}}Void{{/returnType}}> {{operationId}}WithHttpInfo({{#allParams}}{{{dataType}}} {{paramName}}{{#hasMore}}, {{/hasMore}}{{/allParams}}) throws ApiException {
Object localVarPostBody = {{#bodyParam}}{{paramName}}{{/bodyParam}}{{^bodyParam}}null{{/bodyParam}}; Object localVarPostBody = {{#bodyParam}}{{paramName}}{{/bodyParam}}{{^bodyParam}}null{{/bodyParam}};
{{#allParams}}{{#required}} {{#allParams}}{{#required}}
// verify the required parameter '{{paramName}}' is set // verify the required parameter '{{paramName}}' is set
@ -152,13 +150,90 @@ public class {{classname}} {
String[] localVarAuthNames = new String[] { {{#authMethods}}"{{name}}"{{#hasMore}}, {{/hasMore}}{{/authMethods}} }; String[] localVarAuthNames = new String[] { {{#authMethods}}"{{name}}"{{#hasMore}}, {{/hasMore}}{{/authMethods}} };
{{#returnType}} {{#returnType}}GenericType<{{{returnType}}}> localVarReturnType = new GenericType<{{{returnType}}}>() {};{{/returnType}}
GenericType<{{{returnType}}}> localVarReturnType = new GenericType<{{{returnType}}}>() {}; return apiClient.invokeAPI(localVarPath, "{{httpMethod}}", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, {{#returnType}}localVarReturnType{{/returnType}}{{^returnType}}null{{/returnType}});
return apiClient.invokeAPI(localVarPath, "{{httpMethod}}", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
{{/returnType}}{{^returnType}}
return apiClient.invokeAPI(localVarPath, "{{httpMethod}}", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null);
{{/returnType}}
} }
{{#vendorExtensions.x-group-parameters}}
public class API{{operationId}}Request {
{{#allParams}}
private {{#isRequired}}final {{/isRequired}}{{{dataType}}} {{localVariablePrefix}}{{paramName}};
{{/allParams}}
private API{{operationId}}Request({{#pathParams}}{{{dataType}}} {{paramName}}{{#hasMore}}, {{/hasMore}}{{/pathParams}}) {
{{#pathParams}}
this.{{localVariablePrefix}}{{paramName}} = {{paramName}};
{{/pathParams}}
}
{{#allParams}}{{^isPathParam}}
/**
* Set {{paramName}}
* @param {{paramName}} {{description}} ({{^required}}optional{{^isContainer}}{{#defaultValue}}, default to {{.}}{{/defaultValue}}{{/isContainer}}{{/required}}{{#required}}required{{/required}})
* @return API{{operationId}}Request
*/
public API{{operationId}}Request {{paramName}}({{{dataType}}} {{paramName}}) {
this.{{localVariablePrefix}}{{paramName}} = {{paramName}};
return this;
}
{{/isPathParam}}{{/allParams}}
/**
* Execute {{operationId}} request
{{#returnType}}* @return {{.}}{{/returnType}}
* @throws ApiException if fails to make API call
{{#responses.0}}
* @http.response.details
<table summary="Response Details" border="1">
<tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
{{#responses}}
<tr><td> {{code}} </td><td> {{message}} </td><td> {{#headers}} * {{baseName}} - {{description}} <br> {{/headers}}{{^headers.0}} - {{/headers.0}} </td></tr>
{{/responses}}
</table>
{{/responses.0}}
{{#isDeprecated}}* @deprecated{{/isDeprecated}}
*/
{{#isDeprecated}}@Deprecated{{/isDeprecated}}
public {{#returnType}}{{{.}}}{{/returnType}}{{^returnType}}void{{/returnType}} execute() throws ApiException {
{{#returnType}}return {{/returnType}}this.executeWithHttpInfo().getData();
}
/**
* Execute {{operationId}} request with HTTP info returned
* @return ApiResponse&lt;{{#returnType}}{{.}}{{/returnType}}{{^returnType}}Void{{/returnType}}&gt;
* @throws ApiException if fails to make API call
{{#responses.0}}
* @http.response.details
<table summary="Response Details" border="1">
<tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
{{#responses}}
<tr><td> {{code}} </td><td> {{message}} </td><td> {{#headers}} * {{baseName}} - {{description}} <br> {{/headers}}{{^headers.0}} - {{/headers.0}} </td></tr>
{{/responses}}
</table>
{{/responses.0}}
{{#isDeprecated}}* @deprecated{{/isDeprecated}}
*/
{{#isDeprecated}}@Deprecated{{/isDeprecated}}
public ApiResponse<{{#returnType}}{{{.}}}{{/returnType}}{{^returnType}}Void{{/returnType}}> executeWithHttpInfo() throws ApiException {
return {{operationId}}WithHttpInfo({{#allParams}}{{localVariablePrefix}}{{paramName}}{{#hasMore}}, {{/hasMore}}{{/allParams}});
}
}
/**
* {{summary}}
* {{notes}}{{#pathParams}}
* @param {{paramName}} {{description}} (required){{/pathParams}}
* @return {{operationId}}Request
* @throws ApiException if fails to make API call
{{#isDeprecated}}* @deprecated{{/isDeprecated}}
{{#externalDocs}}* {{description}}
* @see <a href="{{url}}">{{summary}} Documentation</a>{{/externalDocs}}
*/
{{#isDeprecated}}@Deprecated{{/isDeprecated}}
public API{{operationId}}Request {{operationId}}({{#pathParams}}{{{dataType}}} {{paramName}}{{#hasMore}}, {{/hasMore}}{{/pathParams}}) throws ApiException {
return new API{{operationId}}Request({{#pathParams}}{{paramName}}{{#hasMore}}, {{/hasMore}}{{/pathParams}});
}
{{/vendorExtensions.x-group-parameters}}
{{/operation}} {{/operation}}
} }
{{/operations}} {{/operations}}

View File

@ -0,0 +1,111 @@
# {{classname}}{{#description}}
{{description}}{{/description}}
All URIs are relative to *{{basePath}}*
Method | HTTP request | Description
------------- | ------------- | -------------
{{#operations}}{{#operation}}[**{{operationId}}**]({{classname}}.md#{{operationId}}) | **{{httpMethod}}** {{path}} | {{#summary}}{{summary}}{{/summary}}
{{/operation}}{{/operations}}
{{#operations}}
{{#operation}}
## {{operationId}}
{{^vendorExtensions.x-group-parameters}}> {{#returnType}}{{returnType}} {{/returnType}}{{operationId}}({{#allParams}}{{paramName}}{{#hasMore}}, {{/hasMore}}{{/allParams}}){{/vendorExtensions.x-group-parameters}}
{{#vendorExtensions.x-group-parameters}}> {{#returnType}}{{returnType}} {{/returnType}}{{operationId}}({{#pathParams}}{{paramName}}{{#hasMore}}, {{/hasMore}}{{/pathParams}}){{#allParams}}{{^isPathParam}}.{{paramName}}({{paramName}}){{/isPathParam}}{{/allParams}}.execute();{{/vendorExtensions.x-group-parameters}}
{{summary}}{{#notes}}
{{{unescapedNotes}}}{{/notes}}
### Example
```java
// Import classes:
import {{{invokerPackage}}}.ApiClient;
import {{{invokerPackage}}}.ApiException;
import {{{invokerPackage}}}.Configuration;{{#hasAuthMethods}}
import {{{invokerPackage}}}.auth.*;{{/hasAuthMethods}}
import {{{invokerPackage}}}.models.*;
import {{{package}}}.{{{classname}}};
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("{{{basePath}}}");
{{#hasAuthMethods}}
{{#authMethods}}{{#isBasic}}{{#isBasicBasic}}
// Configure HTTP basic authorization: {{{name}}}
HttpBasicAuth {{{name}}} = (HttpBasicAuth) defaultClient.getAuthentication("{{{name}}}");
{{{name}}}.setUsername("YOUR USERNAME");
{{{name}}}.setPassword("YOUR PASSWORD");{{/isBasicBasic}}{{#isBasicBearer}}
// Configure HTTP bearer authorization: {{{name}}}
HttpBearerAuth {{{name}}} = (HttpBearerAuth) defaultClient.getAuthentication("{{{name}}}");
{{{name}}}.setBearerToken("BEARER TOKEN");{{/isBasicBearer}}{{/isBasic}}{{#isApiKey}}
// Configure API key authorization: {{{name}}}
ApiKeyAuth {{{name}}} = (ApiKeyAuth) defaultClient.getAuthentication("{{{name}}}");
{{{name}}}.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//{{{name}}}.setApiKeyPrefix("Token");{{/isApiKey}}{{#isOAuth}}
// Configure OAuth2 access token for authorization: {{{name}}}
OAuth {{{name}}} = (OAuth) defaultClient.getAuthentication("{{{name}}}");
{{{name}}}.setAccessToken("YOUR ACCESS TOKEN");{{/isOAuth}}
{{/authMethods}}
{{/hasAuthMethods}}
{{{classname}}} apiInstance = new {{{classname}}}(defaultClient);
{{#allParams}}
{{{dataType}}} {{{paramName}}} = {{{example}}}; // {{{dataType}}} | {{{description}}}
{{/allParams}}
try { {{^vendorExtensions.x-group-parameters}}
{{#returnType}}{{{returnType}}} result = {{/returnType}}apiInstance.{{{operationId}}}({{#allParams}}{{{paramName}}}{{#hasMore}}, {{/hasMore}}{{/allParams}});{{/vendorExtensions.x-group-parameters}}
{{#vendorExtensions.x-group-parameters}}{{#returnType}}{{{returnType}}} result = {{/returnType}}api.{{operationId}}({{#pathParams}}{{paramName}}{{#hasMore}}, {{/hasMore}}{{/pathParams}}){{#allParams}}{{^isPathParam}}
.{{paramName}}({{paramName}}){{/isPathParam}}{{/allParams}}
.execute();{{/vendorExtensions.x-group-parameters}}
{{#returnType}}System.out.println(result);{{/returnType}}
} catch (ApiException e) {
System.err.println("Exception when calling {{{classname}}}#{{{operationId}}}");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
```
### Parameters
{{^allParams}}This endpoint does not need any parameter.{{/allParams}}{{#allParams}}{{#-last}}
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------{{/-last}}{{/allParams}}
{{#allParams}} **{{paramName}}** | {{#isPrimitiveType}}**{{dataType}}**{{/isPrimitiveType}}{{^isPrimitiveType}}{{#isFile}}**{{dataType}}**{{/isFile}}{{^isFile}}[**{{dataType}}**]({{baseType}}.md){{/isFile}}{{/isPrimitiveType}}| {{description}} |{{^required}} [optional]{{/required}}{{^isContainer}}{{#defaultValue}} [default to {{defaultValue}}]{{/defaultValue}}{{/isContainer}}{{#allowableValues}} [enum: {{#values}}{{{.}}}{{^-last}}, {{/-last}}{{/values}}]{{/allowableValues}}
{{/allParams}}
### Return type
{{#returnType}}{{#returnTypeIsPrimitive}}**{{returnType}}**{{/returnTypeIsPrimitive}}{{^returnTypeIsPrimitive}}[**{{returnType}}**]({{returnBaseType}}.md){{/returnTypeIsPrimitive}}{{/returnType}}{{^returnType}}null (empty response body){{/returnType}}
### Authorization
{{^authMethods}}No authorization required{{/authMethods}}{{#authMethods}}[{{name}}](../README.md#{{name}}){{^-last}}, {{/-last}}{{/authMethods}}
### HTTP request headers
- **Content-Type**: {{#consumes}}{{{mediaType}}}{{#hasMore}}, {{/hasMore}}{{/consumes}}{{^consumes}}Not defined{{/consumes}}
- **Accept**: {{#produces}}{{{mediaType}}}{{#hasMore}}, {{/hasMore}}{{/produces}}{{^produces}}Not defined{{/produces}}
{{#responses.0}}
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
{{#responses}}
| **{{code}}** | {{message}} | {{#headers}} * {{baseName}} - {{description}} <br> {{/headers}}{{^headers.0}} - {{/headers.0}} |
{{/responses}}
{{/responses.0}}
{{/operation}}
{{/operations}}

View File

@ -0,0 +1,51 @@
{{>licenseInfo}}
package {{package}};
import {{invokerPackage}}.ApiException;
{{#imports}}import {{import}};
{{/imports}}
import org.junit.Test;
import org.junit.Ignore;
{{^fullJavaUtil}}
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
{{/fullJavaUtil}}
/**
* API tests for {{classname}}
*/
@Ignore
public class {{classname}}Test {
private final {{classname}} api = new {{classname}}();
{{#operations}}{{#operation}}
/**
* {{summary}}
*
* {{notes}}
*
* @throws ApiException
* if the Api call fails
*/
@Test
public void {{operationId}}Test() throws ApiException {
{{#allParams}}
{{{dataType}}} {{paramName}} = null;
{{/allParams}}
{{^vendorExtensions.x-group-parameters}}
{{#returnType}}{{{returnType}}} response = {{/returnType}}api.{{operationId}}({{#allParams}}{{paramName}}{{#hasMore}}, {{/hasMore}}{{/allParams}});
{{/vendorExtensions.x-group-parameters}}
{{#vendorExtensions.x-group-parameters}}
{{#returnType}}{{{returnType}}} response = {{/returnType}}api.{{operationId}}({{#pathParams}}{{paramName}}{{#hasMore}}, {{/hasMore}}{{/pathParams}}){{#allParams}}{{^isPathParam}}
.{{paramName}}({{paramName}}){{/isPathParam}}{{/allParams}}
.execute();
{{/vendorExtensions.x-group-parameters}}
// TODO: test validations
}
{{/operation}}{{/operations}}
}

View File

@ -12,6 +12,7 @@ Method | HTTP request | Description
> Client call123testSpecialTags(body) > Client call123testSpecialTags(body)
To test special tags To test special tags
To test special tags and operation ID starting with number To test special tags and operation ID starting with number
@ -35,6 +36,7 @@ public class Example {
Client body = new Client(); // Client | client model Client body = new Client(); // Client | client model
try { try {
Client result = apiInstance.call123testSpecialTags(body); Client result = apiInstance.call123testSpecialTags(body);
System.out.println(result); System.out.println(result);
} catch (ApiException e) { } catch (ApiException e) {
System.err.println("Exception when calling AnotherFakeApi#call123testSpecialTags"); System.err.println("Exception when calling AnotherFakeApi#call123testSpecialTags");

View File

@ -25,6 +25,7 @@ Method | HTTP request | Description
> createXmlItem(xmlItem) > createXmlItem(xmlItem)
creates an XmlItem creates an XmlItem
this route creates an XmlItem this route creates an XmlItem
@ -48,6 +49,8 @@ public class Example {
XmlItem xmlItem = new XmlItem(); // XmlItem | XmlItem Body XmlItem xmlItem = new XmlItem(); // XmlItem | XmlItem Body
try { try {
apiInstance.createXmlItem(xmlItem); apiInstance.createXmlItem(xmlItem);
} catch (ApiException e) { } catch (ApiException e) {
System.err.println("Exception when calling FakeApi#createXmlItem"); System.err.println("Exception when calling FakeApi#createXmlItem");
System.err.println("Status code: " + e.getCode()); System.err.println("Status code: " + e.getCode());
@ -91,6 +94,7 @@ No authorization required
Test serialization of outer boolean types Test serialization of outer boolean types
### Example ### Example
@ -112,6 +116,7 @@ public class Example {
Boolean body = true; // Boolean | Input boolean as post body Boolean body = true; // Boolean | Input boolean as post body
try { try {
Boolean result = apiInstance.fakeOuterBooleanSerialize(body); Boolean result = apiInstance.fakeOuterBooleanSerialize(body);
System.out.println(result); System.out.println(result);
} catch (ApiException e) { } catch (ApiException e) {
System.err.println("Exception when calling FakeApi#fakeOuterBooleanSerialize"); System.err.println("Exception when calling FakeApi#fakeOuterBooleanSerialize");
@ -156,6 +161,7 @@ No authorization required
Test serialization of object with outer number type Test serialization of object with outer number type
### Example ### Example
@ -177,6 +183,7 @@ public class Example {
OuterComposite body = new OuterComposite(); // OuterComposite | Input composite as post body OuterComposite body = new OuterComposite(); // OuterComposite | Input composite as post body
try { try {
OuterComposite result = apiInstance.fakeOuterCompositeSerialize(body); OuterComposite result = apiInstance.fakeOuterCompositeSerialize(body);
System.out.println(result); System.out.println(result);
} catch (ApiException e) { } catch (ApiException e) {
System.err.println("Exception when calling FakeApi#fakeOuterCompositeSerialize"); System.err.println("Exception when calling FakeApi#fakeOuterCompositeSerialize");
@ -221,6 +228,7 @@ No authorization required
Test serialization of outer number types Test serialization of outer number types
### Example ### Example
@ -242,6 +250,7 @@ public class Example {
BigDecimal body = new BigDecimal(); // BigDecimal | Input number as post body BigDecimal body = new BigDecimal(); // BigDecimal | Input number as post body
try { try {
BigDecimal result = apiInstance.fakeOuterNumberSerialize(body); BigDecimal result = apiInstance.fakeOuterNumberSerialize(body);
System.out.println(result); System.out.println(result);
} catch (ApiException e) { } catch (ApiException e) {
System.err.println("Exception when calling FakeApi#fakeOuterNumberSerialize"); System.err.println("Exception when calling FakeApi#fakeOuterNumberSerialize");
@ -286,6 +295,7 @@ No authorization required
Test serialization of outer string types Test serialization of outer string types
### Example ### Example
@ -307,6 +317,7 @@ public class Example {
String body = "body_example"; // String | Input string as post body String body = "body_example"; // String | Input string as post body
try { try {
String result = apiInstance.fakeOuterStringSerialize(body); String result = apiInstance.fakeOuterStringSerialize(body);
System.out.println(result); System.out.println(result);
} catch (ApiException e) { } catch (ApiException e) {
System.err.println("Exception when calling FakeApi#fakeOuterStringSerialize"); System.err.println("Exception when calling FakeApi#fakeOuterStringSerialize");
@ -351,7 +362,8 @@ No authorization required
For this test, the body for this request much reference a schema named &#x60;File&#x60;.
For this test, the body for this request much reference a schema named `File`.
### Example ### Example
@ -372,6 +384,8 @@ public class Example {
FileSchemaTestClass body = new FileSchemaTestClass(); // FileSchemaTestClass | FileSchemaTestClass body = new FileSchemaTestClass(); // FileSchemaTestClass |
try { try {
apiInstance.testBodyWithFileSchema(body); apiInstance.testBodyWithFileSchema(body);
} catch (ApiException e) { } catch (ApiException e) {
System.err.println("Exception when calling FakeApi#testBodyWithFileSchema"); System.err.println("Exception when calling FakeApi#testBodyWithFileSchema");
System.err.println("Status code: " + e.getCode()); System.err.println("Status code: " + e.getCode());
@ -415,6 +429,7 @@ No authorization required
### Example ### Example
```java ```java
@ -435,6 +450,8 @@ public class Example {
User body = new User(); // User | User body = new User(); // User |
try { try {
apiInstance.testBodyWithQueryParams(query, body); apiInstance.testBodyWithQueryParams(query, body);
} catch (ApiException e) { } catch (ApiException e) {
System.err.println("Exception when calling FakeApi#testBodyWithQueryParams"); System.err.println("Exception when calling FakeApi#testBodyWithQueryParams");
System.err.println("Status code: " + e.getCode()); System.err.println("Status code: " + e.getCode());
@ -477,10 +494,11 @@ No authorization required
> Client testClientModel(body) > Client testClientModel(body)
To test \&quot;client\&quot; model
To test \&quot;client\&quot; model To test \&quot;client\&quot; model
To test "client" model
### Example ### Example
```java ```java
@ -500,6 +518,7 @@ public class Example {
Client body = new Client(); // Client | client model Client body = new Client(); // Client | client model
try { try {
Client result = apiInstance.testClientModel(body); Client result = apiInstance.testClientModel(body);
System.out.println(result); System.out.println(result);
} catch (ApiException e) { } catch (ApiException e) {
System.err.println("Exception when calling FakeApi#testClientModel"); System.err.println("Exception when calling FakeApi#testClientModel");
@ -542,10 +561,14 @@ No authorization required
> testEndpointParameters(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, string, binary, date, dateTime, password, paramCallback) > testEndpointParameters(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, string, binary, date, dateTime, password, paramCallback)
Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
Fake endpoint for testing various parameters
假端點
偽のエンドポイント
가짜 엔드 포인트
### Example ### Example
```java ```java
@ -584,6 +607,8 @@ public class Example {
String paramCallback = "paramCallback_example"; // String | None String paramCallback = "paramCallback_example"; // String | None
try { try {
apiInstance.testEndpointParameters(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, string, binary, date, dateTime, password, paramCallback); apiInstance.testEndpointParameters(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, string, binary, date, dateTime, password, paramCallback);
} catch (ApiException e) { } catch (ApiException e) {
System.err.println("Exception when calling FakeApi#testEndpointParameters"); System.err.println("Exception when calling FakeApi#testEndpointParameters");
System.err.println("Status code: " + e.getCode()); System.err.println("Status code: " + e.getCode());
@ -639,6 +664,7 @@ null (empty response body)
> testEnumParameters(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumFormStringArray, enumFormString) > testEnumParameters(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumFormStringArray, enumFormString)
To test enum parameters To test enum parameters
To test enum parameters To test enum parameters
@ -669,6 +695,8 @@ public class Example {
String enumFormString = "-efg"; // String | Form parameter enum test (string) String enumFormString = "-efg"; // String | Form parameter enum test (string)
try { try {
apiInstance.testEnumParameters(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumFormStringArray, enumFormString); apiInstance.testEnumParameters(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumFormStringArray, enumFormString);
} catch (ApiException e) { } catch (ApiException e) {
System.err.println("Exception when calling FakeApi#testEnumParameters"); System.err.println("Exception when calling FakeApi#testEnumParameters");
System.err.println("Status code: " + e.getCode()); System.err.println("Status code: " + e.getCode());
@ -716,7 +744,8 @@ No authorization required
## testGroupParameters ## testGroupParameters
> testGroupParameters(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group)
> testGroupParameters().requiredStringGroup(requiredStringGroup).requiredBooleanGroup(requiredBooleanGroup).requiredInt64Group(requiredInt64Group).stringGroup(stringGroup).booleanGroup(booleanGroup).int64Group(int64Group).execute();
Fake endpoint to test group parameters (optional) Fake endpoint to test group parameters (optional)
@ -745,7 +774,15 @@ public class Example {
Boolean booleanGroup = true; // Boolean | Boolean in group parameters Boolean booleanGroup = true; // Boolean | Boolean in group parameters
Long int64Group = 56L; // Long | Integer in group parameters Long int64Group = 56L; // Long | Integer in group parameters
try { try {
apiInstance.testGroupParameters(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group); api.testGroupParameters()
.requiredStringGroup(requiredStringGroup)
.requiredBooleanGroup(requiredBooleanGroup)
.requiredInt64Group(requiredInt64Group)
.stringGroup(stringGroup)
.booleanGroup(booleanGroup)
.int64Group(int64Group)
.execute();
} catch (ApiException e) { } catch (ApiException e) {
System.err.println("Exception when calling FakeApi#testGroupParameters"); System.err.println("Exception when calling FakeApi#testGroupParameters");
System.err.println("Status code: " + e.getCode()); System.err.println("Status code: " + e.getCode());
@ -792,6 +829,7 @@ No authorization required
> testInlineAdditionalProperties(param) > testInlineAdditionalProperties(param)
test inline additionalProperties test inline additionalProperties
### Example ### Example
@ -813,6 +851,8 @@ public class Example {
Map<String, String> param = new HashMap(); // Map<String, String> | request body Map<String, String> param = new HashMap(); // Map<String, String> | request body
try { try {
apiInstance.testInlineAdditionalProperties(param); apiInstance.testInlineAdditionalProperties(param);
} catch (ApiException e) { } catch (ApiException e) {
System.err.println("Exception when calling FakeApi#testInlineAdditionalProperties"); System.err.println("Exception when calling FakeApi#testInlineAdditionalProperties");
System.err.println("Status code: " + e.getCode()); System.err.println("Status code: " + e.getCode());
@ -854,6 +894,7 @@ No authorization required
> testJsonFormData(param, param2) > testJsonFormData(param, param2)
test json serialization of form data test json serialization of form data
### Example ### Example
@ -876,6 +917,8 @@ public class Example {
String param2 = "param2_example"; // String | field2 String param2 = "param2_example"; // String | field2
try { try {
apiInstance.testJsonFormData(param, param2); apiInstance.testJsonFormData(param, param2);
} catch (ApiException e) { } catch (ApiException e) {
System.err.println("Exception when calling FakeApi#testJsonFormData"); System.err.println("Exception when calling FakeApi#testJsonFormData");
System.err.println("Status code: " + e.getCode()); System.err.println("Status code: " + e.getCode());
@ -920,6 +963,7 @@ No authorization required
To test the collection format in query parameters To test the collection format in query parameters
### Example ### Example
@ -945,6 +989,8 @@ public class Example {
List<String> context = Arrays.asList(); // List<String> | List<String> context = Arrays.asList(); // List<String> |
try { try {
apiInstance.testQueryParameterCollectionFormat(pipe, ioutil, http, url, context); apiInstance.testQueryParameterCollectionFormat(pipe, ioutil, http, url, context);
} catch (ApiException e) { } catch (ApiException e) {
System.err.println("Exception when calling FakeApi#testQueryParameterCollectionFormat"); System.err.println("Exception when calling FakeApi#testQueryParameterCollectionFormat");
System.err.println("Status code: " + e.getCode()); System.err.println("Status code: " + e.getCode());

View File

@ -12,6 +12,7 @@ Method | HTTP request | Description
> Client testClassname(body) > Client testClassname(body)
To test class name in snake case To test class name in snake case
To test class name in snake case To test class name in snake case
@ -42,6 +43,7 @@ public class Example {
Client body = new Client(); // Client | client model Client body = new Client(); // Client | client model
try { try {
Client result = apiInstance.testClassname(body); Client result = apiInstance.testClassname(body);
System.out.println(result); System.out.println(result);
} catch (ApiException e) { } catch (ApiException e) {
System.err.println("Exception when calling FakeClassnameTags123Api#testClassname"); System.err.println("Exception when calling FakeClassnameTags123Api#testClassname");

View File

@ -20,6 +20,7 @@ Method | HTTP request | Description
> addPet(body) > addPet(body)
Add a new pet to the store Add a new pet to the store
### Example ### Example
@ -46,6 +47,8 @@ public class Example {
Pet body = new Pet(); // Pet | Pet object that needs to be added to the store Pet body = new Pet(); // Pet | Pet object that needs to be added to the store
try { try {
apiInstance.addPet(body); apiInstance.addPet(body);
} catch (ApiException e) { } catch (ApiException e) {
System.err.println("Exception when calling PetApi#addPet"); System.err.println("Exception when calling PetApi#addPet");
System.err.println("Status code: " + e.getCode()); System.err.println("Status code: " + e.getCode());
@ -88,6 +91,7 @@ null (empty response body)
> deletePet(petId, apiKey) > deletePet(petId, apiKey)
Deletes a pet Deletes a pet
### Example ### Example
@ -115,6 +119,8 @@ public class Example {
String apiKey = "apiKey_example"; // String | String apiKey = "apiKey_example"; // String |
try { try {
apiInstance.deletePet(petId, apiKey); apiInstance.deletePet(petId, apiKey);
} catch (ApiException e) { } catch (ApiException e) {
System.err.println("Exception when calling PetApi#deletePet"); System.err.println("Exception when calling PetApi#deletePet");
System.err.println("Status code: " + e.getCode()); System.err.println("Status code: " + e.getCode());
@ -158,6 +164,7 @@ null (empty response body)
> List&lt;Pet&gt; findPetsByStatus(status) > List&lt;Pet&gt; findPetsByStatus(status)
Finds Pets by status Finds Pets by status
Multiple status values can be provided with comma separated strings Multiple status values can be provided with comma separated strings
@ -186,6 +193,7 @@ public class Example {
List<String> status = Arrays.asList("available"); // List<String> | Status values that need to be considered for filter List<String> status = Arrays.asList("available"); // List<String> | Status values that need to be considered for filter
try { try {
List<Pet> result = apiInstance.findPetsByStatus(status); List<Pet> result = apiInstance.findPetsByStatus(status);
System.out.println(result); System.out.println(result);
} catch (ApiException e) { } catch (ApiException e) {
System.err.println("Exception when calling PetApi#findPetsByStatus"); System.err.println("Exception when calling PetApi#findPetsByStatus");
@ -229,6 +237,7 @@ Name | Type | Description | Notes
> List&lt;Pet&gt; findPetsByTags(tags) > List&lt;Pet&gt; findPetsByTags(tags)
Finds Pets by tags Finds Pets by tags
Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing. Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.
@ -257,6 +266,7 @@ public class Example {
List<String> tags = Arrays.asList(); // List<String> | Tags to filter by List<String> tags = Arrays.asList(); // List<String> | Tags to filter by
try { try {
List<Pet> result = apiInstance.findPetsByTags(tags); List<Pet> result = apiInstance.findPetsByTags(tags);
System.out.println(result); System.out.println(result);
} catch (ApiException e) { } catch (ApiException e) {
System.err.println("Exception when calling PetApi#findPetsByTags"); System.err.println("Exception when calling PetApi#findPetsByTags");
@ -300,6 +310,7 @@ Name | Type | Description | Notes
> Pet getPetById(petId) > Pet getPetById(petId)
Find pet by ID Find pet by ID
Returns a single pet Returns a single pet
@ -330,6 +341,7 @@ public class Example {
Long petId = 56L; // Long | ID of pet to return Long petId = 56L; // Long | ID of pet to return
try { try {
Pet result = apiInstance.getPetById(petId); Pet result = apiInstance.getPetById(petId);
System.out.println(result); System.out.println(result);
} catch (ApiException e) { } catch (ApiException e) {
System.err.println("Exception when calling PetApi#getPetById"); System.err.println("Exception when calling PetApi#getPetById");
@ -374,6 +386,7 @@ Name | Type | Description | Notes
> updatePet(body) > updatePet(body)
Update an existing pet Update an existing pet
### Example ### Example
@ -400,6 +413,8 @@ public class Example {
Pet body = new Pet(); // Pet | Pet object that needs to be added to the store Pet body = new Pet(); // Pet | Pet object that needs to be added to the store
try { try {
apiInstance.updatePet(body); apiInstance.updatePet(body);
} catch (ApiException e) { } catch (ApiException e) {
System.err.println("Exception when calling PetApi#updatePet"); System.err.println("Exception when calling PetApi#updatePet");
System.err.println("Status code: " + e.getCode()); System.err.println("Status code: " + e.getCode());
@ -444,6 +459,7 @@ null (empty response body)
> updatePetWithForm(petId, name, status) > updatePetWithForm(petId, name, status)
Updates a pet in the store with form data Updates a pet in the store with form data
### Example ### Example
@ -472,6 +488,8 @@ public class Example {
String status = "status_example"; // String | Updated status of the pet String status = "status_example"; // String | Updated status of the pet
try { try {
apiInstance.updatePetWithForm(petId, name, status); apiInstance.updatePetWithForm(petId, name, status);
} catch (ApiException e) { } catch (ApiException e) {
System.err.println("Exception when calling PetApi#updatePetWithForm"); System.err.println("Exception when calling PetApi#updatePetWithForm");
System.err.println("Status code: " + e.getCode()); System.err.println("Status code: " + e.getCode());
@ -515,6 +533,7 @@ null (empty response body)
> ModelApiResponse uploadFile(petId, additionalMetadata, file) > ModelApiResponse uploadFile(petId, additionalMetadata, file)
uploads an image uploads an image
### Example ### Example
@ -543,6 +562,7 @@ public class Example {
File file = new File("/path/to/file"); // File | file to upload File file = new File("/path/to/file"); // File | file to upload
try { try {
ModelApiResponse result = apiInstance.uploadFile(petId, additionalMetadata, file); ModelApiResponse result = apiInstance.uploadFile(petId, additionalMetadata, file);
System.out.println(result); System.out.println(result);
} catch (ApiException e) { } catch (ApiException e) {
System.err.println("Exception when calling PetApi#uploadFile"); System.err.println("Exception when calling PetApi#uploadFile");
@ -587,6 +607,7 @@ Name | Type | Description | Notes
> ModelApiResponse uploadFileWithRequiredFile(petId, requiredFile, additionalMetadata) > ModelApiResponse uploadFileWithRequiredFile(petId, requiredFile, additionalMetadata)
uploads an image (required) uploads an image (required)
### Example ### Example
@ -615,6 +636,7 @@ public class Example {
String additionalMetadata = "additionalMetadata_example"; // String | Additional data to pass to server String additionalMetadata = "additionalMetadata_example"; // String | Additional data to pass to server
try { try {
ModelApiResponse result = apiInstance.uploadFileWithRequiredFile(petId, requiredFile, additionalMetadata); ModelApiResponse result = apiInstance.uploadFileWithRequiredFile(petId, requiredFile, additionalMetadata);
System.out.println(result); System.out.println(result);
} catch (ApiException e) { } catch (ApiException e) {
System.err.println("Exception when calling PetApi#uploadFileWithRequiredFile"); System.err.println("Exception when calling PetApi#uploadFileWithRequiredFile");

View File

@ -15,9 +15,10 @@ Method | HTTP request | Description
> deleteOrder(orderId) > deleteOrder(orderId)
Delete purchase order by ID Delete purchase order by ID
For valid response try integer IDs with value &lt; 1000. Anything above 1000 or nonintegers will generate API errors For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors
### Example ### Example
@ -38,6 +39,8 @@ public class Example {
String orderId = "orderId_example"; // String | ID of the order that needs to be deleted String orderId = "orderId_example"; // String | ID of the order that needs to be deleted
try { try {
apiInstance.deleteOrder(orderId); apiInstance.deleteOrder(orderId);
} catch (ApiException e) { } catch (ApiException e) {
System.err.println("Exception when calling StoreApi#deleteOrder"); System.err.println("Exception when calling StoreApi#deleteOrder");
System.err.println("Status code: " + e.getCode()); System.err.println("Status code: " + e.getCode());
@ -80,6 +83,7 @@ No authorization required
> Map&lt;String, Integer&gt; getInventory() > Map&lt;String, Integer&gt; getInventory()
Returns pet inventories by status Returns pet inventories by status
Returns a map of status codes to quantities Returns a map of status codes to quantities
@ -109,6 +113,7 @@ public class Example {
StoreApi apiInstance = new StoreApi(defaultClient); StoreApi apiInstance = new StoreApi(defaultClient);
try { try {
Map<String, Integer> result = apiInstance.getInventory(); Map<String, Integer> result = apiInstance.getInventory();
System.out.println(result); System.out.println(result);
} catch (ApiException e) { } catch (ApiException e) {
System.err.println("Exception when calling StoreApi#getInventory"); System.err.println("Exception when calling StoreApi#getInventory");
@ -148,9 +153,10 @@ This endpoint does not need any parameter.
> Order getOrderById(orderId) > Order getOrderById(orderId)
Find purchase order by ID Find purchase order by ID
For valid response try integer IDs with value &lt;&#x3D; 5 or &gt; 10. Other values will generated exceptions For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions
### Example ### Example
@ -171,6 +177,7 @@ public class Example {
Long orderId = 56L; // Long | ID of pet that needs to be fetched Long orderId = 56L; // Long | ID of pet that needs to be fetched
try { try {
Order result = apiInstance.getOrderById(orderId); Order result = apiInstance.getOrderById(orderId);
System.out.println(result); System.out.println(result);
} catch (ApiException e) { } catch (ApiException e) {
System.err.println("Exception when calling StoreApi#getOrderById"); System.err.println("Exception when calling StoreApi#getOrderById");
@ -215,6 +222,7 @@ No authorization required
> Order placeOrder(body) > Order placeOrder(body)
Place an order for a pet Place an order for a pet
### Example ### Example
@ -236,6 +244,7 @@ public class Example {
Order body = new Order(); // Order | order placed for purchasing the pet Order body = new Order(); // Order | order placed for purchasing the pet
try { try {
Order result = apiInstance.placeOrder(body); Order result = apiInstance.placeOrder(body);
System.out.println(result); System.out.println(result);
} catch (ApiException e) { } catch (ApiException e) {
System.err.println("Exception when calling StoreApi#placeOrder"); System.err.println("Exception when calling StoreApi#placeOrder");

View File

@ -19,6 +19,7 @@ Method | HTTP request | Description
> createUser(body) > createUser(body)
Create user Create user
This can only be done by the logged in user. This can only be done by the logged in user.
@ -42,6 +43,8 @@ public class Example {
User body = new User(); // User | Created user object User body = new User(); // User | Created user object
try { try {
apiInstance.createUser(body); apiInstance.createUser(body);
} catch (ApiException e) { } catch (ApiException e) {
System.err.println("Exception when calling UserApi#createUser"); System.err.println("Exception when calling UserApi#createUser");
System.err.println("Status code: " + e.getCode()); System.err.println("Status code: " + e.getCode());
@ -83,6 +86,7 @@ No authorization required
> createUsersWithArrayInput(body) > createUsersWithArrayInput(body)
Creates list of users with given input array Creates list of users with given input array
### Example ### Example
@ -104,6 +108,8 @@ public class Example {
List<User> body = Arrays.asList(); // List<User> | List of user object List<User> body = Arrays.asList(); // List<User> | List of user object
try { try {
apiInstance.createUsersWithArrayInput(body); apiInstance.createUsersWithArrayInput(body);
} catch (ApiException e) { } catch (ApiException e) {
System.err.println("Exception when calling UserApi#createUsersWithArrayInput"); System.err.println("Exception when calling UserApi#createUsersWithArrayInput");
System.err.println("Status code: " + e.getCode()); System.err.println("Status code: " + e.getCode());
@ -145,6 +151,7 @@ No authorization required
> createUsersWithListInput(body) > createUsersWithListInput(body)
Creates list of users with given input array Creates list of users with given input array
### Example ### Example
@ -166,6 +173,8 @@ public class Example {
List<User> body = Arrays.asList(); // List<User> | List of user object List<User> body = Arrays.asList(); // List<User> | List of user object
try { try {
apiInstance.createUsersWithListInput(body); apiInstance.createUsersWithListInput(body);
} catch (ApiException e) { } catch (ApiException e) {
System.err.println("Exception when calling UserApi#createUsersWithListInput"); System.err.println("Exception when calling UserApi#createUsersWithListInput");
System.err.println("Status code: " + e.getCode()); System.err.println("Status code: " + e.getCode());
@ -207,6 +216,7 @@ No authorization required
> deleteUser(username) > deleteUser(username)
Delete user Delete user
This can only be done by the logged in user. This can only be done by the logged in user.
@ -230,6 +240,8 @@ public class Example {
String username = "username_example"; // String | The name that needs to be deleted String username = "username_example"; // String | The name that needs to be deleted
try { try {
apiInstance.deleteUser(username); apiInstance.deleteUser(username);
} catch (ApiException e) { } catch (ApiException e) {
System.err.println("Exception when calling UserApi#deleteUser"); System.err.println("Exception when calling UserApi#deleteUser");
System.err.println("Status code: " + e.getCode()); System.err.println("Status code: " + e.getCode());
@ -272,6 +284,7 @@ No authorization required
> User getUserByName(username) > User getUserByName(username)
Get user by user name Get user by user name
### Example ### Example
@ -293,6 +306,7 @@ public class Example {
String username = "username_example"; // String | The name that needs to be fetched. Use user1 for testing. String username = "username_example"; // String | The name that needs to be fetched. Use user1 for testing.
try { try {
User result = apiInstance.getUserByName(username); User result = apiInstance.getUserByName(username);
System.out.println(result); System.out.println(result);
} catch (ApiException e) { } catch (ApiException e) {
System.err.println("Exception when calling UserApi#getUserByName"); System.err.println("Exception when calling UserApi#getUserByName");
@ -337,6 +351,7 @@ No authorization required
> String loginUser(username, password) > String loginUser(username, password)
Logs user into the system Logs user into the system
### Example ### Example
@ -359,6 +374,7 @@ public class Example {
String password = "password_example"; // String | The password for login in clear text String password = "password_example"; // String | The password for login in clear text
try { try {
String result = apiInstance.loginUser(username, password); String result = apiInstance.loginUser(username, password);
System.out.println(result); System.out.println(result);
} catch (ApiException e) { } catch (ApiException e) {
System.err.println("Exception when calling UserApi#loginUser"); System.err.println("Exception when calling UserApi#loginUser");
@ -403,6 +419,7 @@ No authorization required
> logoutUser() > logoutUser()
Logs out current logged in user session Logs out current logged in user session
### Example ### Example
@ -423,6 +440,8 @@ public class Example {
UserApi apiInstance = new UserApi(defaultClient); UserApi apiInstance = new UserApi(defaultClient);
try { try {
apiInstance.logoutUser(); apiInstance.logoutUser();
} catch (ApiException e) { } catch (ApiException e) {
System.err.println("Exception when calling UserApi#logoutUser"); System.err.println("Exception when calling UserApi#logoutUser");
System.err.println("Status code: " + e.getCode()); System.err.println("Status code: " + e.getCode());
@ -461,6 +480,7 @@ No authorization required
> updateUser(username, body) > updateUser(username, body)
Updated user Updated user
This can only be done by the logged in user. This can only be done by the logged in user.
@ -485,6 +505,8 @@ public class Example {
User body = new User(); // User | Updated user object User body = new User(); // User | Updated user object
try { try {
apiInstance.updateUser(username, body); apiInstance.updateUser(username, body);
} catch (ApiException e) { } catch (ApiException e) {
System.err.println("Exception when calling UserApi#updateUser"); System.err.println("Exception when calling UserApi#updateUser");
System.err.println("Status code: " + e.getCode()); System.err.println("Status code: " + e.getCode());

View File

@ -34,7 +34,6 @@ public class AnotherFakeApi {
public void setApiClient(ApiClient apiClient) { public void setApiClient(ApiClient apiClient) {
this.apiClient = apiClient; this.apiClient = apiClient;
} }
/** /**
* To test special tags * To test special tags
* To test special tags and operation ID starting with number * To test special tags and operation ID starting with number

View File

@ -42,7 +42,6 @@ public class FakeApi {
public void setApiClient(ApiClient apiClient) { public void setApiClient(ApiClient apiClient) {
this.apiClient = apiClient; this.apiClient = apiClient;
} }
/** /**
* creates an XmlItem * creates an XmlItem
* this route creates an XmlItem * this route creates an XmlItem
@ -55,7 +54,6 @@ public class FakeApi {
</table> </table>
*/ */
public void createXmlItem(XmlItem xmlItem) throws ApiException { public void createXmlItem(XmlItem xmlItem) throws ApiException {
createXmlItemWithHttpInfo(xmlItem); createXmlItemWithHttpInfo(xmlItem);
} }
@ -355,7 +353,6 @@ public class FakeApi {
</table> </table>
*/ */
public void testBodyWithFileSchema(FileSchemaTestClass body) throws ApiException { public void testBodyWithFileSchema(FileSchemaTestClass body) throws ApiException {
testBodyWithFileSchemaWithHttpInfo(body); testBodyWithFileSchemaWithHttpInfo(body);
} }
@ -420,7 +417,6 @@ public class FakeApi {
</table> </table>
*/ */
public void testBodyWithQueryParams(String query, User body) throws ApiException { public void testBodyWithQueryParams(String query, User body) throws ApiException {
testBodyWithQueryParamsWithHttpInfo(query, body); testBodyWithQueryParamsWithHttpInfo(query, body);
} }
@ -569,7 +565,6 @@ public class FakeApi {
</table> </table>
*/ */
public void testEndpointParameters(BigDecimal number, Double _double, String patternWithoutDelimiter, byte[] _byte, Integer integer, Integer int32, Long int64, Float _float, String string, File binary, LocalDate date, OffsetDateTime dateTime, String password, String paramCallback) throws ApiException { public void testEndpointParameters(BigDecimal number, Double _double, String patternWithoutDelimiter, byte[] _byte, Integer integer, Integer int32, Long int64, Float _float, String string, File binary, LocalDate date, OffsetDateTime dateTime, String password, String paramCallback) throws ApiException {
testEndpointParametersWithHttpInfo(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, string, binary, date, dateTime, password, paramCallback); testEndpointParametersWithHttpInfo(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, string, binary, date, dateTime, password, paramCallback);
} }
@ -698,7 +693,6 @@ if (paramCallback != null)
</table> </table>
*/ */
public void testEnumParameters(List<String> enumHeaderStringArray, String enumHeaderString, List<String> enumQueryStringArray, String enumQueryString, Integer enumQueryInteger, Double enumQueryDouble, List<String> enumFormStringArray, String enumFormString) throws ApiException { public void testEnumParameters(List<String> enumHeaderStringArray, String enumHeaderString, List<String> enumQueryStringArray, String enumQueryString, Integer enumQueryInteger, Double enumQueryDouble, List<String> enumFormStringArray, String enumFormString) throws ApiException {
testEnumParametersWithHttpInfo(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumFormStringArray, enumFormString); testEnumParametersWithHttpInfo(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumFormStringArray, enumFormString);
} }
@ -765,45 +759,8 @@ if (enumFormString != null)
return apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null); return apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null);
} }
/**
* Fake endpoint to test group parameters (optional)
* Fake endpoint to test group parameters (optional)
* @param requiredStringGroup Required String in group parameters (required)
* @param requiredBooleanGroup Required Boolean in group parameters (required)
* @param requiredInt64Group Required Integer in group parameters (required)
* @param stringGroup String in group parameters (optional)
* @param booleanGroup Boolean in group parameters (optional)
* @param int64Group Integer in group parameters (optional)
* @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> 400 </td><td> Someting wrong </td><td> - </td></tr>
</table>
*/
public void testGroupParameters(Integer requiredStringGroup, Boolean requiredBooleanGroup, Long requiredInt64Group, Integer stringGroup, Boolean booleanGroup, Long int64Group) throws ApiException {
testGroupParametersWithHttpInfo(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group); private ApiResponse<Void> testGroupParametersWithHttpInfo(Integer requiredStringGroup, Boolean requiredBooleanGroup, Long requiredInt64Group, Integer stringGroup, Boolean booleanGroup, Long int64Group) throws ApiException {
}
/**
* Fake endpoint to test group parameters (optional)
* Fake endpoint to test group parameters (optional)
* @param requiredStringGroup Required String in group parameters (required)
* @param requiredBooleanGroup Required Boolean in group parameters (required)
* @param requiredInt64Group Required Integer in group parameters (required)
* @param stringGroup String in group parameters (optional)
* @param booleanGroup Boolean in group parameters (optional)
* @param int64Group Integer in group parameters (optional)
* @return ApiResponse&lt;Void&gt;
* @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> 400 </td><td> Someting wrong </td><td> - </td></tr>
</table>
*/
public ApiResponse<Void> testGroupParametersWithHttpInfo(Integer requiredStringGroup, Boolean requiredBooleanGroup, Long requiredInt64Group, Integer stringGroup, Boolean booleanGroup, Long int64Group) throws ApiException {
Object localVarPostBody = null; Object localVarPostBody = null;
// verify the required parameter 'requiredStringGroup' is set // verify the required parameter 'requiredStringGroup' is set
@ -857,6 +814,130 @@ if (booleanGroup != null)
return apiClient.invokeAPI(localVarPath, "DELETE", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null); return apiClient.invokeAPI(localVarPath, "DELETE", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null);
} }
public class APItestGroupParametersRequest {
private Integer requiredStringGroup;
private Boolean requiredBooleanGroup;
private Long requiredInt64Group;
private Integer stringGroup;
private Boolean booleanGroup;
private Long int64Group;
private APItestGroupParametersRequest() {
}
/**
* Set requiredStringGroup
* @param requiredStringGroup Required String in group parameters (required)
* @return APItestGroupParametersRequest
*/
public APItestGroupParametersRequest requiredStringGroup(Integer requiredStringGroup) {
this.requiredStringGroup = requiredStringGroup;
return this;
}
/**
* Set requiredBooleanGroup
* @param requiredBooleanGroup Required Boolean in group parameters (required)
* @return APItestGroupParametersRequest
*/
public APItestGroupParametersRequest requiredBooleanGroup(Boolean requiredBooleanGroup) {
this.requiredBooleanGroup = requiredBooleanGroup;
return this;
}
/**
* Set requiredInt64Group
* @param requiredInt64Group Required Integer in group parameters (required)
* @return APItestGroupParametersRequest
*/
public APItestGroupParametersRequest requiredInt64Group(Long requiredInt64Group) {
this.requiredInt64Group = requiredInt64Group;
return this;
}
/**
* Set stringGroup
* @param stringGroup String in group parameters (optional)
* @return APItestGroupParametersRequest
*/
public APItestGroupParametersRequest stringGroup(Integer stringGroup) {
this.stringGroup = stringGroup;
return this;
}
/**
* Set booleanGroup
* @param booleanGroup Boolean in group parameters (optional)
* @return APItestGroupParametersRequest
*/
public APItestGroupParametersRequest booleanGroup(Boolean booleanGroup) {
this.booleanGroup = booleanGroup;
return this;
}
/**
* Set int64Group
* @param int64Group Integer in group parameters (optional)
* @return APItestGroupParametersRequest
*/
public APItestGroupParametersRequest int64Group(Long int64Group) {
this.int64Group = int64Group;
return this;
}
/**
* Execute testGroupParameters request
* @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> 400 </td><td> Someting wrong </td><td> - </td></tr>
</table>
*/
public void execute() throws ApiException {
this.executeWithHttpInfo().getData();
}
/**
* Execute testGroupParameters request with HTTP info returned
* @return ApiResponse&lt;Void&gt;
* @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> 400 </td><td> Someting wrong </td><td> - </td></tr>
</table>
*/
public ApiResponse<Void> executeWithHttpInfo() throws ApiException {
return testGroupParametersWithHttpInfo(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group);
}
}
/**
* Fake endpoint to test group parameters (optional)
* Fake endpoint to test group parameters (optional)
* @return testGroupParametersRequest
* @throws ApiException if fails to make API call
*/
public APItestGroupParametersRequest testGroupParameters() throws ApiException {
return new APItestGroupParametersRequest();
}
/** /**
* test inline additionalProperties * test inline additionalProperties
* *
@ -869,7 +950,6 @@ if (booleanGroup != null)
</table> </table>
*/ */
public void testInlineAdditionalProperties(Map<String, String> param) throws ApiException { public void testInlineAdditionalProperties(Map<String, String> param) throws ApiException {
testInlineAdditionalPropertiesWithHttpInfo(param); testInlineAdditionalPropertiesWithHttpInfo(param);
} }
@ -934,7 +1014,6 @@ if (booleanGroup != null)
</table> </table>
*/ */
public void testJsonFormData(String param, String param2) throws ApiException { public void testJsonFormData(String param, String param2) throws ApiException {
testJsonFormDataWithHttpInfo(param, param2); testJsonFormDataWithHttpInfo(param, param2);
} }
@ -1012,7 +1091,6 @@ if (param2 != null)
</table> </table>
*/ */
public void testQueryParameterCollectionFormat(List<String> pipe, List<String> ioutil, List<String> http, List<String> url, List<String> context) throws ApiException { 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); testQueryParameterCollectionFormatWithHttpInfo(pipe, ioutil, http, url, context);
} }

View File

@ -34,7 +34,6 @@ public class FakeClassnameTags123Api {
public void setApiClient(ApiClient apiClient) { public void setApiClient(ApiClient apiClient) {
this.apiClient = apiClient; this.apiClient = apiClient;
} }
/** /**
* To test class name in snake case * To test class name in snake case
* To test class name in snake case * To test class name in snake case

View File

@ -36,7 +36,6 @@ public class PetApi {
public void setApiClient(ApiClient apiClient) { public void setApiClient(ApiClient apiClient) {
this.apiClient = apiClient; this.apiClient = apiClient;
} }
/** /**
* Add a new pet to the store * Add a new pet to the store
* *
@ -50,7 +49,6 @@ public class PetApi {
</table> </table>
*/ */
public void addPet(Pet body) throws ApiException { public void addPet(Pet body) throws ApiException {
addPetWithHttpInfo(body); addPetWithHttpInfo(body);
} }
@ -117,7 +115,6 @@ public class PetApi {
</table> </table>
*/ */
public void deletePet(Long petId, String apiKey) throws ApiException { public void deletePet(Long petId, String apiKey) throws ApiException {
deletePetWithHttpInfo(petId, apiKey); deletePetWithHttpInfo(petId, apiKey);
} }
@ -396,7 +393,6 @@ public class PetApi {
</table> </table>
*/ */
public void updatePet(Pet body) throws ApiException { public void updatePet(Pet body) throws ApiException {
updatePetWithHttpInfo(body); updatePetWithHttpInfo(body);
} }
@ -465,7 +461,6 @@ public class PetApi {
</table> </table>
*/ */
public void updatePetWithForm(Long petId, String name, String status) throws ApiException { public void updatePetWithForm(Long petId, String name, String status) throws ApiException {
updatePetWithFormWithHttpInfo(petId, name, status); updatePetWithFormWithHttpInfo(petId, name, status);
} }

View File

@ -34,7 +34,6 @@ public class StoreApi {
public void setApiClient(ApiClient apiClient) { public void setApiClient(ApiClient apiClient) {
this.apiClient = apiClient; this.apiClient = apiClient;
} }
/** /**
* Delete purchase order by ID * Delete purchase order by ID
* For valid response try integer IDs with value &lt; 1000. Anything above 1000 or nonintegers will generate API errors * For valid response try integer IDs with value &lt; 1000. Anything above 1000 or nonintegers will generate API errors
@ -48,7 +47,6 @@ public class StoreApi {
</table> </table>
*/ */
public void deleteOrder(String orderId) throws ApiException { public void deleteOrder(String orderId) throws ApiException {
deleteOrderWithHttpInfo(orderId); deleteOrderWithHttpInfo(orderId);
} }

View File

@ -34,7 +34,6 @@ public class UserApi {
public void setApiClient(ApiClient apiClient) { public void setApiClient(ApiClient apiClient) {
this.apiClient = apiClient; this.apiClient = apiClient;
} }
/** /**
* Create user * Create user
* This can only be done by the logged in user. * This can only be done by the logged in user.
@ -47,7 +46,6 @@ public class UserApi {
</table> </table>
*/ */
public void createUser(User body) throws ApiException { public void createUser(User body) throws ApiException {
createUserWithHttpInfo(body); createUserWithHttpInfo(body);
} }
@ -111,7 +109,6 @@ public class UserApi {
</table> </table>
*/ */
public void createUsersWithArrayInput(List<User> body) throws ApiException { public void createUsersWithArrayInput(List<User> body) throws ApiException {
createUsersWithArrayInputWithHttpInfo(body); createUsersWithArrayInputWithHttpInfo(body);
} }
@ -175,7 +172,6 @@ public class UserApi {
</table> </table>
*/ */
public void createUsersWithListInput(List<User> body) throws ApiException { public void createUsersWithListInput(List<User> body) throws ApiException {
createUsersWithListInputWithHttpInfo(body); createUsersWithListInputWithHttpInfo(body);
} }
@ -240,7 +236,6 @@ public class UserApi {
</table> </table>
*/ */
public void deleteUser(String username) throws ApiException { public void deleteUser(String username) throws ApiException {
deleteUserWithHttpInfo(username); deleteUserWithHttpInfo(username);
} }
@ -449,7 +444,6 @@ public class UserApi {
</table> </table>
*/ */
public void logoutUser() throws ApiException { public void logoutUser() throws ApiException {
logoutUserWithHttpInfo(); logoutUserWithHttpInfo();
} }
@ -509,7 +503,6 @@ public class UserApi {
</table> </table>
*/ */
public void updateUser(String username, User body) throws ApiException { public void updateUser(String username, User body) throws ApiException {
updateUserWithHttpInfo(username, body); updateUserWithHttpInfo(username, body);
} }

View File

@ -12,6 +12,7 @@ Method | HTTP request | Description
> Client call123testSpecialTags(body) > Client call123testSpecialTags(body)
To test special tags To test special tags
To test special tags and operation ID starting with number To test special tags and operation ID starting with number
@ -35,6 +36,7 @@ public class Example {
Client body = new Client(); // Client | client model Client body = new Client(); // Client | client model
try { try {
Client result = apiInstance.call123testSpecialTags(body); Client result = apiInstance.call123testSpecialTags(body);
System.out.println(result); System.out.println(result);
} catch (ApiException e) { } catch (ApiException e) {
System.err.println("Exception when calling AnotherFakeApi#call123testSpecialTags"); System.err.println("Exception when calling AnotherFakeApi#call123testSpecialTags");

View File

@ -25,6 +25,7 @@ Method | HTTP request | Description
> createXmlItem(xmlItem) > createXmlItem(xmlItem)
creates an XmlItem creates an XmlItem
this route creates an XmlItem this route creates an XmlItem
@ -48,6 +49,8 @@ public class Example {
XmlItem xmlItem = new XmlItem(); // XmlItem | XmlItem Body XmlItem xmlItem = new XmlItem(); // XmlItem | XmlItem Body
try { try {
apiInstance.createXmlItem(xmlItem); apiInstance.createXmlItem(xmlItem);
} catch (ApiException e) { } catch (ApiException e) {
System.err.println("Exception when calling FakeApi#createXmlItem"); System.err.println("Exception when calling FakeApi#createXmlItem");
System.err.println("Status code: " + e.getCode()); System.err.println("Status code: " + e.getCode());
@ -91,6 +94,7 @@ No authorization required
Test serialization of outer boolean types Test serialization of outer boolean types
### Example ### Example
@ -112,6 +116,7 @@ public class Example {
Boolean body = true; // Boolean | Input boolean as post body Boolean body = true; // Boolean | Input boolean as post body
try { try {
Boolean result = apiInstance.fakeOuterBooleanSerialize(body); Boolean result = apiInstance.fakeOuterBooleanSerialize(body);
System.out.println(result); System.out.println(result);
} catch (ApiException e) { } catch (ApiException e) {
System.err.println("Exception when calling FakeApi#fakeOuterBooleanSerialize"); System.err.println("Exception when calling FakeApi#fakeOuterBooleanSerialize");
@ -156,6 +161,7 @@ No authorization required
Test serialization of object with outer number type Test serialization of object with outer number type
### Example ### Example
@ -177,6 +183,7 @@ public class Example {
OuterComposite body = new OuterComposite(); // OuterComposite | Input composite as post body OuterComposite body = new OuterComposite(); // OuterComposite | Input composite as post body
try { try {
OuterComposite result = apiInstance.fakeOuterCompositeSerialize(body); OuterComposite result = apiInstance.fakeOuterCompositeSerialize(body);
System.out.println(result); System.out.println(result);
} catch (ApiException e) { } catch (ApiException e) {
System.err.println("Exception when calling FakeApi#fakeOuterCompositeSerialize"); System.err.println("Exception when calling FakeApi#fakeOuterCompositeSerialize");
@ -221,6 +228,7 @@ No authorization required
Test serialization of outer number types Test serialization of outer number types
### Example ### Example
@ -242,6 +250,7 @@ public class Example {
BigDecimal body = new BigDecimal(); // BigDecimal | Input number as post body BigDecimal body = new BigDecimal(); // BigDecimal | Input number as post body
try { try {
BigDecimal result = apiInstance.fakeOuterNumberSerialize(body); BigDecimal result = apiInstance.fakeOuterNumberSerialize(body);
System.out.println(result); System.out.println(result);
} catch (ApiException e) { } catch (ApiException e) {
System.err.println("Exception when calling FakeApi#fakeOuterNumberSerialize"); System.err.println("Exception when calling FakeApi#fakeOuterNumberSerialize");
@ -286,6 +295,7 @@ No authorization required
Test serialization of outer string types Test serialization of outer string types
### Example ### Example
@ -307,6 +317,7 @@ public class Example {
String body = "body_example"; // String | Input string as post body String body = "body_example"; // String | Input string as post body
try { try {
String result = apiInstance.fakeOuterStringSerialize(body); String result = apiInstance.fakeOuterStringSerialize(body);
System.out.println(result); System.out.println(result);
} catch (ApiException e) { } catch (ApiException e) {
System.err.println("Exception when calling FakeApi#fakeOuterStringSerialize"); System.err.println("Exception when calling FakeApi#fakeOuterStringSerialize");
@ -351,7 +362,8 @@ No authorization required
For this test, the body for this request much reference a schema named &#x60;File&#x60;.
For this test, the body for this request much reference a schema named `File`.
### Example ### Example
@ -372,6 +384,8 @@ public class Example {
FileSchemaTestClass body = new FileSchemaTestClass(); // FileSchemaTestClass | FileSchemaTestClass body = new FileSchemaTestClass(); // FileSchemaTestClass |
try { try {
apiInstance.testBodyWithFileSchema(body); apiInstance.testBodyWithFileSchema(body);
} catch (ApiException e) { } catch (ApiException e) {
System.err.println("Exception when calling FakeApi#testBodyWithFileSchema"); System.err.println("Exception when calling FakeApi#testBodyWithFileSchema");
System.err.println("Status code: " + e.getCode()); System.err.println("Status code: " + e.getCode());
@ -415,6 +429,7 @@ No authorization required
### Example ### Example
```java ```java
@ -435,6 +450,8 @@ public class Example {
User body = new User(); // User | User body = new User(); // User |
try { try {
apiInstance.testBodyWithQueryParams(query, body); apiInstance.testBodyWithQueryParams(query, body);
} catch (ApiException e) { } catch (ApiException e) {
System.err.println("Exception when calling FakeApi#testBodyWithQueryParams"); System.err.println("Exception when calling FakeApi#testBodyWithQueryParams");
System.err.println("Status code: " + e.getCode()); System.err.println("Status code: " + e.getCode());
@ -477,10 +494,11 @@ No authorization required
> Client testClientModel(body) > Client testClientModel(body)
To test \&quot;client\&quot; model
To test \&quot;client\&quot; model To test \&quot;client\&quot; model
To test "client" model
### Example ### Example
```java ```java
@ -500,6 +518,7 @@ public class Example {
Client body = new Client(); // Client | client model Client body = new Client(); // Client | client model
try { try {
Client result = apiInstance.testClientModel(body); Client result = apiInstance.testClientModel(body);
System.out.println(result); System.out.println(result);
} catch (ApiException e) { } catch (ApiException e) {
System.err.println("Exception when calling FakeApi#testClientModel"); System.err.println("Exception when calling FakeApi#testClientModel");
@ -542,10 +561,14 @@ No authorization required
> testEndpointParameters(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, string, binary, date, dateTime, password, paramCallback) > testEndpointParameters(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, string, binary, date, dateTime, password, paramCallback)
Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
Fake endpoint for testing various parameters
假端點
偽のエンドポイント
가짜 엔드 포인트
### Example ### Example
```java ```java
@ -584,6 +607,8 @@ public class Example {
String paramCallback = "paramCallback_example"; // String | None String paramCallback = "paramCallback_example"; // String | None
try { try {
apiInstance.testEndpointParameters(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, string, binary, date, dateTime, password, paramCallback); apiInstance.testEndpointParameters(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, string, binary, date, dateTime, password, paramCallback);
} catch (ApiException e) { } catch (ApiException e) {
System.err.println("Exception when calling FakeApi#testEndpointParameters"); System.err.println("Exception when calling FakeApi#testEndpointParameters");
System.err.println("Status code: " + e.getCode()); System.err.println("Status code: " + e.getCode());
@ -639,6 +664,7 @@ null (empty response body)
> testEnumParameters(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumFormStringArray, enumFormString) > testEnumParameters(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumFormStringArray, enumFormString)
To test enum parameters To test enum parameters
To test enum parameters To test enum parameters
@ -669,6 +695,8 @@ public class Example {
String enumFormString = "-efg"; // String | Form parameter enum test (string) String enumFormString = "-efg"; // String | Form parameter enum test (string)
try { try {
apiInstance.testEnumParameters(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumFormStringArray, enumFormString); apiInstance.testEnumParameters(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumFormStringArray, enumFormString);
} catch (ApiException e) { } catch (ApiException e) {
System.err.println("Exception when calling FakeApi#testEnumParameters"); System.err.println("Exception when calling FakeApi#testEnumParameters");
System.err.println("Status code: " + e.getCode()); System.err.println("Status code: " + e.getCode());
@ -716,7 +744,8 @@ No authorization required
## testGroupParameters ## testGroupParameters
> testGroupParameters(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group)
> testGroupParameters().requiredStringGroup(requiredStringGroup).requiredBooleanGroup(requiredBooleanGroup).requiredInt64Group(requiredInt64Group).stringGroup(stringGroup).booleanGroup(booleanGroup).int64Group(int64Group).execute();
Fake endpoint to test group parameters (optional) Fake endpoint to test group parameters (optional)
@ -745,7 +774,15 @@ public class Example {
Boolean booleanGroup = true; // Boolean | Boolean in group parameters Boolean booleanGroup = true; // Boolean | Boolean in group parameters
Long int64Group = 56L; // Long | Integer in group parameters Long int64Group = 56L; // Long | Integer in group parameters
try { try {
apiInstance.testGroupParameters(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group); api.testGroupParameters()
.requiredStringGroup(requiredStringGroup)
.requiredBooleanGroup(requiredBooleanGroup)
.requiredInt64Group(requiredInt64Group)
.stringGroup(stringGroup)
.booleanGroup(booleanGroup)
.int64Group(int64Group)
.execute();
} catch (ApiException e) { } catch (ApiException e) {
System.err.println("Exception when calling FakeApi#testGroupParameters"); System.err.println("Exception when calling FakeApi#testGroupParameters");
System.err.println("Status code: " + e.getCode()); System.err.println("Status code: " + e.getCode());
@ -792,6 +829,7 @@ No authorization required
> testInlineAdditionalProperties(param) > testInlineAdditionalProperties(param)
test inline additionalProperties test inline additionalProperties
### Example ### Example
@ -813,6 +851,8 @@ public class Example {
Map<String, String> param = new HashMap(); // Map<String, String> | request body Map<String, String> param = new HashMap(); // Map<String, String> | request body
try { try {
apiInstance.testInlineAdditionalProperties(param); apiInstance.testInlineAdditionalProperties(param);
} catch (ApiException e) { } catch (ApiException e) {
System.err.println("Exception when calling FakeApi#testInlineAdditionalProperties"); System.err.println("Exception when calling FakeApi#testInlineAdditionalProperties");
System.err.println("Status code: " + e.getCode()); System.err.println("Status code: " + e.getCode());
@ -854,6 +894,7 @@ No authorization required
> testJsonFormData(param, param2) > testJsonFormData(param, param2)
test json serialization of form data test json serialization of form data
### Example ### Example
@ -876,6 +917,8 @@ public class Example {
String param2 = "param2_example"; // String | field2 String param2 = "param2_example"; // String | field2
try { try {
apiInstance.testJsonFormData(param, param2); apiInstance.testJsonFormData(param, param2);
} catch (ApiException e) { } catch (ApiException e) {
System.err.println("Exception when calling FakeApi#testJsonFormData"); System.err.println("Exception when calling FakeApi#testJsonFormData");
System.err.println("Status code: " + e.getCode()); System.err.println("Status code: " + e.getCode());
@ -920,6 +963,7 @@ No authorization required
To test the collection format in query parameters To test the collection format in query parameters
### Example ### Example
@ -945,6 +989,8 @@ public class Example {
List<String> context = Arrays.asList(); // List<String> | List<String> context = Arrays.asList(); // List<String> |
try { try {
apiInstance.testQueryParameterCollectionFormat(pipe, ioutil, http, url, context); apiInstance.testQueryParameterCollectionFormat(pipe, ioutil, http, url, context);
} catch (ApiException e) { } catch (ApiException e) {
System.err.println("Exception when calling FakeApi#testQueryParameterCollectionFormat"); System.err.println("Exception when calling FakeApi#testQueryParameterCollectionFormat");
System.err.println("Status code: " + e.getCode()); System.err.println("Status code: " + e.getCode());

View File

@ -12,6 +12,7 @@ Method | HTTP request | Description
> Client testClassname(body) > Client testClassname(body)
To test class name in snake case To test class name in snake case
To test class name in snake case To test class name in snake case
@ -42,6 +43,7 @@ public class Example {
Client body = new Client(); // Client | client model Client body = new Client(); // Client | client model
try { try {
Client result = apiInstance.testClassname(body); Client result = apiInstance.testClassname(body);
System.out.println(result); System.out.println(result);
} catch (ApiException e) { } catch (ApiException e) {
System.err.println("Exception when calling FakeClassnameTags123Api#testClassname"); System.err.println("Exception when calling FakeClassnameTags123Api#testClassname");

View File

@ -20,6 +20,7 @@ Method | HTTP request | Description
> addPet(body) > addPet(body)
Add a new pet to the store Add a new pet to the store
### Example ### Example
@ -46,6 +47,8 @@ public class Example {
Pet body = new Pet(); // Pet | Pet object that needs to be added to the store Pet body = new Pet(); // Pet | Pet object that needs to be added to the store
try { try {
apiInstance.addPet(body); apiInstance.addPet(body);
} catch (ApiException e) { } catch (ApiException e) {
System.err.println("Exception when calling PetApi#addPet"); System.err.println("Exception when calling PetApi#addPet");
System.err.println("Status code: " + e.getCode()); System.err.println("Status code: " + e.getCode());
@ -88,6 +91,7 @@ null (empty response body)
> deletePet(petId, apiKey) > deletePet(petId, apiKey)
Deletes a pet Deletes a pet
### Example ### Example
@ -115,6 +119,8 @@ public class Example {
String apiKey = "apiKey_example"; // String | String apiKey = "apiKey_example"; // String |
try { try {
apiInstance.deletePet(petId, apiKey); apiInstance.deletePet(petId, apiKey);
} catch (ApiException e) { } catch (ApiException e) {
System.err.println("Exception when calling PetApi#deletePet"); System.err.println("Exception when calling PetApi#deletePet");
System.err.println("Status code: " + e.getCode()); System.err.println("Status code: " + e.getCode());
@ -158,6 +164,7 @@ null (empty response body)
> List&lt;Pet&gt; findPetsByStatus(status) > List&lt;Pet&gt; findPetsByStatus(status)
Finds Pets by status Finds Pets by status
Multiple status values can be provided with comma separated strings Multiple status values can be provided with comma separated strings
@ -186,6 +193,7 @@ public class Example {
List<String> status = Arrays.asList("available"); // List<String> | Status values that need to be considered for filter List<String> status = Arrays.asList("available"); // List<String> | Status values that need to be considered for filter
try { try {
List<Pet> result = apiInstance.findPetsByStatus(status); List<Pet> result = apiInstance.findPetsByStatus(status);
System.out.println(result); System.out.println(result);
} catch (ApiException e) { } catch (ApiException e) {
System.err.println("Exception when calling PetApi#findPetsByStatus"); System.err.println("Exception when calling PetApi#findPetsByStatus");
@ -229,6 +237,7 @@ Name | Type | Description | Notes
> List&lt;Pet&gt; findPetsByTags(tags) > List&lt;Pet&gt; findPetsByTags(tags)
Finds Pets by tags Finds Pets by tags
Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing. Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.
@ -257,6 +266,7 @@ public class Example {
List<String> tags = Arrays.asList(); // List<String> | Tags to filter by List<String> tags = Arrays.asList(); // List<String> | Tags to filter by
try { try {
List<Pet> result = apiInstance.findPetsByTags(tags); List<Pet> result = apiInstance.findPetsByTags(tags);
System.out.println(result); System.out.println(result);
} catch (ApiException e) { } catch (ApiException e) {
System.err.println("Exception when calling PetApi#findPetsByTags"); System.err.println("Exception when calling PetApi#findPetsByTags");
@ -300,6 +310,7 @@ Name | Type | Description | Notes
> Pet getPetById(petId) > Pet getPetById(petId)
Find pet by ID Find pet by ID
Returns a single pet Returns a single pet
@ -330,6 +341,7 @@ public class Example {
Long petId = 56L; // Long | ID of pet to return Long petId = 56L; // Long | ID of pet to return
try { try {
Pet result = apiInstance.getPetById(petId); Pet result = apiInstance.getPetById(petId);
System.out.println(result); System.out.println(result);
} catch (ApiException e) { } catch (ApiException e) {
System.err.println("Exception when calling PetApi#getPetById"); System.err.println("Exception when calling PetApi#getPetById");
@ -374,6 +386,7 @@ Name | Type | Description | Notes
> updatePet(body) > updatePet(body)
Update an existing pet Update an existing pet
### Example ### Example
@ -400,6 +413,8 @@ public class Example {
Pet body = new Pet(); // Pet | Pet object that needs to be added to the store Pet body = new Pet(); // Pet | Pet object that needs to be added to the store
try { try {
apiInstance.updatePet(body); apiInstance.updatePet(body);
} catch (ApiException e) { } catch (ApiException e) {
System.err.println("Exception when calling PetApi#updatePet"); System.err.println("Exception when calling PetApi#updatePet");
System.err.println("Status code: " + e.getCode()); System.err.println("Status code: " + e.getCode());
@ -444,6 +459,7 @@ null (empty response body)
> updatePetWithForm(petId, name, status) > updatePetWithForm(petId, name, status)
Updates a pet in the store with form data Updates a pet in the store with form data
### Example ### Example
@ -472,6 +488,8 @@ public class Example {
String status = "status_example"; // String | Updated status of the pet String status = "status_example"; // String | Updated status of the pet
try { try {
apiInstance.updatePetWithForm(petId, name, status); apiInstance.updatePetWithForm(petId, name, status);
} catch (ApiException e) { } catch (ApiException e) {
System.err.println("Exception when calling PetApi#updatePetWithForm"); System.err.println("Exception when calling PetApi#updatePetWithForm");
System.err.println("Status code: " + e.getCode()); System.err.println("Status code: " + e.getCode());
@ -515,6 +533,7 @@ null (empty response body)
> ModelApiResponse uploadFile(petId, additionalMetadata, file) > ModelApiResponse uploadFile(petId, additionalMetadata, file)
uploads an image uploads an image
### Example ### Example
@ -543,6 +562,7 @@ public class Example {
File file = new File("/path/to/file"); // File | file to upload File file = new File("/path/to/file"); // File | file to upload
try { try {
ModelApiResponse result = apiInstance.uploadFile(petId, additionalMetadata, file); ModelApiResponse result = apiInstance.uploadFile(petId, additionalMetadata, file);
System.out.println(result); System.out.println(result);
} catch (ApiException e) { } catch (ApiException e) {
System.err.println("Exception when calling PetApi#uploadFile"); System.err.println("Exception when calling PetApi#uploadFile");
@ -587,6 +607,7 @@ Name | Type | Description | Notes
> ModelApiResponse uploadFileWithRequiredFile(petId, requiredFile, additionalMetadata) > ModelApiResponse uploadFileWithRequiredFile(petId, requiredFile, additionalMetadata)
uploads an image (required) uploads an image (required)
### Example ### Example
@ -615,6 +636,7 @@ public class Example {
String additionalMetadata = "additionalMetadata_example"; // String | Additional data to pass to server String additionalMetadata = "additionalMetadata_example"; // String | Additional data to pass to server
try { try {
ModelApiResponse result = apiInstance.uploadFileWithRequiredFile(petId, requiredFile, additionalMetadata); ModelApiResponse result = apiInstance.uploadFileWithRequiredFile(petId, requiredFile, additionalMetadata);
System.out.println(result); System.out.println(result);
} catch (ApiException e) { } catch (ApiException e) {
System.err.println("Exception when calling PetApi#uploadFileWithRequiredFile"); System.err.println("Exception when calling PetApi#uploadFileWithRequiredFile");

View File

@ -15,9 +15,10 @@ Method | HTTP request | Description
> deleteOrder(orderId) > deleteOrder(orderId)
Delete purchase order by ID Delete purchase order by ID
For valid response try integer IDs with value &lt; 1000. Anything above 1000 or nonintegers will generate API errors For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors
### Example ### Example
@ -38,6 +39,8 @@ public class Example {
String orderId = "orderId_example"; // String | ID of the order that needs to be deleted String orderId = "orderId_example"; // String | ID of the order that needs to be deleted
try { try {
apiInstance.deleteOrder(orderId); apiInstance.deleteOrder(orderId);
} catch (ApiException e) { } catch (ApiException e) {
System.err.println("Exception when calling StoreApi#deleteOrder"); System.err.println("Exception when calling StoreApi#deleteOrder");
System.err.println("Status code: " + e.getCode()); System.err.println("Status code: " + e.getCode());
@ -80,6 +83,7 @@ No authorization required
> Map&lt;String, Integer&gt; getInventory() > Map&lt;String, Integer&gt; getInventory()
Returns pet inventories by status Returns pet inventories by status
Returns a map of status codes to quantities Returns a map of status codes to quantities
@ -109,6 +113,7 @@ public class Example {
StoreApi apiInstance = new StoreApi(defaultClient); StoreApi apiInstance = new StoreApi(defaultClient);
try { try {
Map<String, Integer> result = apiInstance.getInventory(); Map<String, Integer> result = apiInstance.getInventory();
System.out.println(result); System.out.println(result);
} catch (ApiException e) { } catch (ApiException e) {
System.err.println("Exception when calling StoreApi#getInventory"); System.err.println("Exception when calling StoreApi#getInventory");
@ -148,9 +153,10 @@ This endpoint does not need any parameter.
> Order getOrderById(orderId) > Order getOrderById(orderId)
Find purchase order by ID Find purchase order by ID
For valid response try integer IDs with value &lt;&#x3D; 5 or &gt; 10. Other values will generated exceptions For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions
### Example ### Example
@ -171,6 +177,7 @@ public class Example {
Long orderId = 56L; // Long | ID of pet that needs to be fetched Long orderId = 56L; // Long | ID of pet that needs to be fetched
try { try {
Order result = apiInstance.getOrderById(orderId); Order result = apiInstance.getOrderById(orderId);
System.out.println(result); System.out.println(result);
} catch (ApiException e) { } catch (ApiException e) {
System.err.println("Exception when calling StoreApi#getOrderById"); System.err.println("Exception when calling StoreApi#getOrderById");
@ -215,6 +222,7 @@ No authorization required
> Order placeOrder(body) > Order placeOrder(body)
Place an order for a pet Place an order for a pet
### Example ### Example
@ -236,6 +244,7 @@ public class Example {
Order body = new Order(); // Order | order placed for purchasing the pet Order body = new Order(); // Order | order placed for purchasing the pet
try { try {
Order result = apiInstance.placeOrder(body); Order result = apiInstance.placeOrder(body);
System.out.println(result); System.out.println(result);
} catch (ApiException e) { } catch (ApiException e) {
System.err.println("Exception when calling StoreApi#placeOrder"); System.err.println("Exception when calling StoreApi#placeOrder");

View File

@ -19,6 +19,7 @@ Method | HTTP request | Description
> createUser(body) > createUser(body)
Create user Create user
This can only be done by the logged in user. This can only be done by the logged in user.
@ -42,6 +43,8 @@ public class Example {
User body = new User(); // User | Created user object User body = new User(); // User | Created user object
try { try {
apiInstance.createUser(body); apiInstance.createUser(body);
} catch (ApiException e) { } catch (ApiException e) {
System.err.println("Exception when calling UserApi#createUser"); System.err.println("Exception when calling UserApi#createUser");
System.err.println("Status code: " + e.getCode()); System.err.println("Status code: " + e.getCode());
@ -83,6 +86,7 @@ No authorization required
> createUsersWithArrayInput(body) > createUsersWithArrayInput(body)
Creates list of users with given input array Creates list of users with given input array
### Example ### Example
@ -104,6 +108,8 @@ public class Example {
List<User> body = Arrays.asList(); // List<User> | List of user object List<User> body = Arrays.asList(); // List<User> | List of user object
try { try {
apiInstance.createUsersWithArrayInput(body); apiInstance.createUsersWithArrayInput(body);
} catch (ApiException e) { } catch (ApiException e) {
System.err.println("Exception when calling UserApi#createUsersWithArrayInput"); System.err.println("Exception when calling UserApi#createUsersWithArrayInput");
System.err.println("Status code: " + e.getCode()); System.err.println("Status code: " + e.getCode());
@ -145,6 +151,7 @@ No authorization required
> createUsersWithListInput(body) > createUsersWithListInput(body)
Creates list of users with given input array Creates list of users with given input array
### Example ### Example
@ -166,6 +173,8 @@ public class Example {
List<User> body = Arrays.asList(); // List<User> | List of user object List<User> body = Arrays.asList(); // List<User> | List of user object
try { try {
apiInstance.createUsersWithListInput(body); apiInstance.createUsersWithListInput(body);
} catch (ApiException e) { } catch (ApiException e) {
System.err.println("Exception when calling UserApi#createUsersWithListInput"); System.err.println("Exception when calling UserApi#createUsersWithListInput");
System.err.println("Status code: " + e.getCode()); System.err.println("Status code: " + e.getCode());
@ -207,6 +216,7 @@ No authorization required
> deleteUser(username) > deleteUser(username)
Delete user Delete user
This can only be done by the logged in user. This can only be done by the logged in user.
@ -230,6 +240,8 @@ public class Example {
String username = "username_example"; // String | The name that needs to be deleted String username = "username_example"; // String | The name that needs to be deleted
try { try {
apiInstance.deleteUser(username); apiInstance.deleteUser(username);
} catch (ApiException e) { } catch (ApiException e) {
System.err.println("Exception when calling UserApi#deleteUser"); System.err.println("Exception when calling UserApi#deleteUser");
System.err.println("Status code: " + e.getCode()); System.err.println("Status code: " + e.getCode());
@ -272,6 +284,7 @@ No authorization required
> User getUserByName(username) > User getUserByName(username)
Get user by user name Get user by user name
### Example ### Example
@ -293,6 +306,7 @@ public class Example {
String username = "username_example"; // String | The name that needs to be fetched. Use user1 for testing. String username = "username_example"; // String | The name that needs to be fetched. Use user1 for testing.
try { try {
User result = apiInstance.getUserByName(username); User result = apiInstance.getUserByName(username);
System.out.println(result); System.out.println(result);
} catch (ApiException e) { } catch (ApiException e) {
System.err.println("Exception when calling UserApi#getUserByName"); System.err.println("Exception when calling UserApi#getUserByName");
@ -337,6 +351,7 @@ No authorization required
> String loginUser(username, password) > String loginUser(username, password)
Logs user into the system Logs user into the system
### Example ### Example
@ -359,6 +374,7 @@ public class Example {
String password = "password_example"; // String | The password for login in clear text String password = "password_example"; // String | The password for login in clear text
try { try {
String result = apiInstance.loginUser(username, password); String result = apiInstance.loginUser(username, password);
System.out.println(result); System.out.println(result);
} catch (ApiException e) { } catch (ApiException e) {
System.err.println("Exception when calling UserApi#loginUser"); System.err.println("Exception when calling UserApi#loginUser");
@ -403,6 +419,7 @@ No authorization required
> logoutUser() > logoutUser()
Logs out current logged in user session Logs out current logged in user session
### Example ### Example
@ -423,6 +440,8 @@ public class Example {
UserApi apiInstance = new UserApi(defaultClient); UserApi apiInstance = new UserApi(defaultClient);
try { try {
apiInstance.logoutUser(); apiInstance.logoutUser();
} catch (ApiException e) { } catch (ApiException e) {
System.err.println("Exception when calling UserApi#logoutUser"); System.err.println("Exception when calling UserApi#logoutUser");
System.err.println("Status code: " + e.getCode()); System.err.println("Status code: " + e.getCode());
@ -461,6 +480,7 @@ No authorization required
> updateUser(username, body) > updateUser(username, body)
Updated user Updated user
This can only be done by the logged in user. This can only be done by the logged in user.
@ -485,6 +505,8 @@ public class Example {
User body = new User(); // User | Updated user object User body = new User(); // User | Updated user object
try { try {
apiInstance.updateUser(username, body); apiInstance.updateUser(username, body);
} catch (ApiException e) { } catch (ApiException e) {
System.err.println("Exception when calling UserApi#updateUser"); System.err.println("Exception when calling UserApi#updateUser");
System.err.println("Status code: " + e.getCode()); System.err.println("Status code: " + e.getCode());

View File

@ -34,7 +34,6 @@ public class AnotherFakeApi {
public void setApiClient(ApiClient apiClient) { public void setApiClient(ApiClient apiClient) {
this.apiClient = apiClient; this.apiClient = apiClient;
} }
/** /**
* To test special tags * To test special tags
* To test special tags and operation ID starting with number * To test special tags and operation ID starting with number

View File

@ -42,7 +42,6 @@ public class FakeApi {
public void setApiClient(ApiClient apiClient) { public void setApiClient(ApiClient apiClient) {
this.apiClient = apiClient; this.apiClient = apiClient;
} }
/** /**
* creates an XmlItem * creates an XmlItem
* this route creates an XmlItem * this route creates an XmlItem
@ -55,7 +54,6 @@ public class FakeApi {
</table> </table>
*/ */
public void createXmlItem(XmlItem xmlItem) throws ApiException { public void createXmlItem(XmlItem xmlItem) throws ApiException {
createXmlItemWithHttpInfo(xmlItem); createXmlItemWithHttpInfo(xmlItem);
} }
@ -355,7 +353,6 @@ public class FakeApi {
</table> </table>
*/ */
public void testBodyWithFileSchema(FileSchemaTestClass body) throws ApiException { public void testBodyWithFileSchema(FileSchemaTestClass body) throws ApiException {
testBodyWithFileSchemaWithHttpInfo(body); testBodyWithFileSchemaWithHttpInfo(body);
} }
@ -420,7 +417,6 @@ public class FakeApi {
</table> </table>
*/ */
public void testBodyWithQueryParams(String query, User body) throws ApiException { public void testBodyWithQueryParams(String query, User body) throws ApiException {
testBodyWithQueryParamsWithHttpInfo(query, body); testBodyWithQueryParamsWithHttpInfo(query, body);
} }
@ -569,7 +565,6 @@ public class FakeApi {
</table> </table>
*/ */
public void testEndpointParameters(BigDecimal number, Double _double, String patternWithoutDelimiter, byte[] _byte, Integer integer, Integer int32, Long int64, Float _float, String string, File binary, LocalDate date, OffsetDateTime dateTime, String password, String paramCallback) throws ApiException { public void testEndpointParameters(BigDecimal number, Double _double, String patternWithoutDelimiter, byte[] _byte, Integer integer, Integer int32, Long int64, Float _float, String string, File binary, LocalDate date, OffsetDateTime dateTime, String password, String paramCallback) throws ApiException {
testEndpointParametersWithHttpInfo(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, string, binary, date, dateTime, password, paramCallback); testEndpointParametersWithHttpInfo(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, string, binary, date, dateTime, password, paramCallback);
} }
@ -698,7 +693,6 @@ if (paramCallback != null)
</table> </table>
*/ */
public void testEnumParameters(List<String> enumHeaderStringArray, String enumHeaderString, List<String> enumQueryStringArray, String enumQueryString, Integer enumQueryInteger, Double enumQueryDouble, List<String> enumFormStringArray, String enumFormString) throws ApiException { public void testEnumParameters(List<String> enumHeaderStringArray, String enumHeaderString, List<String> enumQueryStringArray, String enumQueryString, Integer enumQueryInteger, Double enumQueryDouble, List<String> enumFormStringArray, String enumFormString) throws ApiException {
testEnumParametersWithHttpInfo(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumFormStringArray, enumFormString); testEnumParametersWithHttpInfo(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumFormStringArray, enumFormString);
} }
@ -765,45 +759,8 @@ if (enumFormString != null)
return apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null); return apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null);
} }
/**
* Fake endpoint to test group parameters (optional)
* Fake endpoint to test group parameters (optional)
* @param requiredStringGroup Required String in group parameters (required)
* @param requiredBooleanGroup Required Boolean in group parameters (required)
* @param requiredInt64Group Required Integer in group parameters (required)
* @param stringGroup String in group parameters (optional)
* @param booleanGroup Boolean in group parameters (optional)
* @param int64Group Integer in group parameters (optional)
* @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> 400 </td><td> Someting wrong </td><td> - </td></tr>
</table>
*/
public void testGroupParameters(Integer requiredStringGroup, Boolean requiredBooleanGroup, Long requiredInt64Group, Integer stringGroup, Boolean booleanGroup, Long int64Group) throws ApiException {
testGroupParametersWithHttpInfo(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group); private ApiResponse<Void> testGroupParametersWithHttpInfo(Integer requiredStringGroup, Boolean requiredBooleanGroup, Long requiredInt64Group, Integer stringGroup, Boolean booleanGroup, Long int64Group) throws ApiException {
}
/**
* Fake endpoint to test group parameters (optional)
* Fake endpoint to test group parameters (optional)
* @param requiredStringGroup Required String in group parameters (required)
* @param requiredBooleanGroup Required Boolean in group parameters (required)
* @param requiredInt64Group Required Integer in group parameters (required)
* @param stringGroup String in group parameters (optional)
* @param booleanGroup Boolean in group parameters (optional)
* @param int64Group Integer in group parameters (optional)
* @return ApiResponse&lt;Void&gt;
* @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> 400 </td><td> Someting wrong </td><td> - </td></tr>
</table>
*/
public ApiResponse<Void> testGroupParametersWithHttpInfo(Integer requiredStringGroup, Boolean requiredBooleanGroup, Long requiredInt64Group, Integer stringGroup, Boolean booleanGroup, Long int64Group) throws ApiException {
Object localVarPostBody = null; Object localVarPostBody = null;
// verify the required parameter 'requiredStringGroup' is set // verify the required parameter 'requiredStringGroup' is set
@ -857,6 +814,130 @@ if (booleanGroup != null)
return apiClient.invokeAPI(localVarPath, "DELETE", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null); return apiClient.invokeAPI(localVarPath, "DELETE", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null);
} }
public class APItestGroupParametersRequest {
private Integer requiredStringGroup;
private Boolean requiredBooleanGroup;
private Long requiredInt64Group;
private Integer stringGroup;
private Boolean booleanGroup;
private Long int64Group;
private APItestGroupParametersRequest() {
}
/**
* Set requiredStringGroup
* @param requiredStringGroup Required String in group parameters (required)
* @return APItestGroupParametersRequest
*/
public APItestGroupParametersRequest requiredStringGroup(Integer requiredStringGroup) {
this.requiredStringGroup = requiredStringGroup;
return this;
}
/**
* Set requiredBooleanGroup
* @param requiredBooleanGroup Required Boolean in group parameters (required)
* @return APItestGroupParametersRequest
*/
public APItestGroupParametersRequest requiredBooleanGroup(Boolean requiredBooleanGroup) {
this.requiredBooleanGroup = requiredBooleanGroup;
return this;
}
/**
* Set requiredInt64Group
* @param requiredInt64Group Required Integer in group parameters (required)
* @return APItestGroupParametersRequest
*/
public APItestGroupParametersRequest requiredInt64Group(Long requiredInt64Group) {
this.requiredInt64Group = requiredInt64Group;
return this;
}
/**
* Set stringGroup
* @param stringGroup String in group parameters (optional)
* @return APItestGroupParametersRequest
*/
public APItestGroupParametersRequest stringGroup(Integer stringGroup) {
this.stringGroup = stringGroup;
return this;
}
/**
* Set booleanGroup
* @param booleanGroup Boolean in group parameters (optional)
* @return APItestGroupParametersRequest
*/
public APItestGroupParametersRequest booleanGroup(Boolean booleanGroup) {
this.booleanGroup = booleanGroup;
return this;
}
/**
* Set int64Group
* @param int64Group Integer in group parameters (optional)
* @return APItestGroupParametersRequest
*/
public APItestGroupParametersRequest int64Group(Long int64Group) {
this.int64Group = int64Group;
return this;
}
/**
* Execute testGroupParameters request
* @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> 400 </td><td> Someting wrong </td><td> - </td></tr>
</table>
*/
public void execute() throws ApiException {
this.executeWithHttpInfo().getData();
}
/**
* Execute testGroupParameters request with HTTP info returned
* @return ApiResponse&lt;Void&gt;
* @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> 400 </td><td> Someting wrong </td><td> - </td></tr>
</table>
*/
public ApiResponse<Void> executeWithHttpInfo() throws ApiException {
return testGroupParametersWithHttpInfo(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group);
}
}
/**
* Fake endpoint to test group parameters (optional)
* Fake endpoint to test group parameters (optional)
* @return testGroupParametersRequest
* @throws ApiException if fails to make API call
*/
public APItestGroupParametersRequest testGroupParameters() throws ApiException {
return new APItestGroupParametersRequest();
}
/** /**
* test inline additionalProperties * test inline additionalProperties
* *
@ -869,7 +950,6 @@ if (booleanGroup != null)
</table> </table>
*/ */
public void testInlineAdditionalProperties(Map<String, String> param) throws ApiException { public void testInlineAdditionalProperties(Map<String, String> param) throws ApiException {
testInlineAdditionalPropertiesWithHttpInfo(param); testInlineAdditionalPropertiesWithHttpInfo(param);
} }
@ -934,7 +1014,6 @@ if (booleanGroup != null)
</table> </table>
*/ */
public void testJsonFormData(String param, String param2) throws ApiException { public void testJsonFormData(String param, String param2) throws ApiException {
testJsonFormDataWithHttpInfo(param, param2); testJsonFormDataWithHttpInfo(param, param2);
} }
@ -1012,7 +1091,6 @@ if (param2 != null)
</table> </table>
*/ */
public void testQueryParameterCollectionFormat(List<String> pipe, List<String> ioutil, List<String> http, List<String> url, List<String> context) throws ApiException { 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); testQueryParameterCollectionFormatWithHttpInfo(pipe, ioutil, http, url, context);
} }

View File

@ -34,7 +34,6 @@ public class FakeClassnameTags123Api {
public void setApiClient(ApiClient apiClient) { public void setApiClient(ApiClient apiClient) {
this.apiClient = apiClient; this.apiClient = apiClient;
} }
/** /**
* To test class name in snake case * To test class name in snake case
* To test class name in snake case * To test class name in snake case

View File

@ -36,7 +36,6 @@ public class PetApi {
public void setApiClient(ApiClient apiClient) { public void setApiClient(ApiClient apiClient) {
this.apiClient = apiClient; this.apiClient = apiClient;
} }
/** /**
* Add a new pet to the store * Add a new pet to the store
* *
@ -50,7 +49,6 @@ public class PetApi {
</table> </table>
*/ */
public void addPet(Pet body) throws ApiException { public void addPet(Pet body) throws ApiException {
addPetWithHttpInfo(body); addPetWithHttpInfo(body);
} }
@ -117,7 +115,6 @@ public class PetApi {
</table> </table>
*/ */
public void deletePet(Long petId, String apiKey) throws ApiException { public void deletePet(Long petId, String apiKey) throws ApiException {
deletePetWithHttpInfo(petId, apiKey); deletePetWithHttpInfo(petId, apiKey);
} }
@ -396,7 +393,6 @@ public class PetApi {
</table> </table>
*/ */
public void updatePet(Pet body) throws ApiException { public void updatePet(Pet body) throws ApiException {
updatePetWithHttpInfo(body); updatePetWithHttpInfo(body);
} }
@ -465,7 +461,6 @@ public class PetApi {
</table> </table>
*/ */
public void updatePetWithForm(Long petId, String name, String status) throws ApiException { public void updatePetWithForm(Long petId, String name, String status) throws ApiException {
updatePetWithFormWithHttpInfo(petId, name, status); updatePetWithFormWithHttpInfo(petId, name, status);
} }

View File

@ -34,7 +34,6 @@ public class StoreApi {
public void setApiClient(ApiClient apiClient) { public void setApiClient(ApiClient apiClient) {
this.apiClient = apiClient; this.apiClient = apiClient;
} }
/** /**
* Delete purchase order by ID * Delete purchase order by ID
* For valid response try integer IDs with value &lt; 1000. Anything above 1000 or nonintegers will generate API errors * For valid response try integer IDs with value &lt; 1000. Anything above 1000 or nonintegers will generate API errors
@ -48,7 +47,6 @@ public class StoreApi {
</table> </table>
*/ */
public void deleteOrder(String orderId) throws ApiException { public void deleteOrder(String orderId) throws ApiException {
deleteOrderWithHttpInfo(orderId); deleteOrderWithHttpInfo(orderId);
} }

View File

@ -34,7 +34,6 @@ public class UserApi {
public void setApiClient(ApiClient apiClient) { public void setApiClient(ApiClient apiClient) {
this.apiClient = apiClient; this.apiClient = apiClient;
} }
/** /**
* Create user * Create user
* This can only be done by the logged in user. * This can only be done by the logged in user.
@ -47,7 +46,6 @@ public class UserApi {
</table> </table>
*/ */
public void createUser(User body) throws ApiException { public void createUser(User body) throws ApiException {
createUserWithHttpInfo(body); createUserWithHttpInfo(body);
} }
@ -111,7 +109,6 @@ public class UserApi {
</table> </table>
*/ */
public void createUsersWithArrayInput(List<User> body) throws ApiException { public void createUsersWithArrayInput(List<User> body) throws ApiException {
createUsersWithArrayInputWithHttpInfo(body); createUsersWithArrayInputWithHttpInfo(body);
} }
@ -175,7 +172,6 @@ public class UserApi {
</table> </table>
*/ */
public void createUsersWithListInput(List<User> body) throws ApiException { public void createUsersWithListInput(List<User> body) throws ApiException {
createUsersWithListInputWithHttpInfo(body); createUsersWithListInputWithHttpInfo(body);
} }
@ -240,7 +236,6 @@ public class UserApi {
</table> </table>
*/ */
public void deleteUser(String username) throws ApiException { public void deleteUser(String username) throws ApiException {
deleteUserWithHttpInfo(username); deleteUserWithHttpInfo(username);
} }
@ -449,7 +444,6 @@ public class UserApi {
</table> </table>
*/ */
public void logoutUser() throws ApiException { public void logoutUser() throws ApiException {
logoutUserWithHttpInfo(); logoutUserWithHttpInfo();
} }
@ -509,7 +503,6 @@ public class UserApi {
</table> </table>
*/ */
public void updateUser(String username, User body) throws ApiException { public void updateUser(String username, User body) throws ApiException {
updateUserWithHttpInfo(username, body); updateUserWithHttpInfo(username, body);
} }

View File

@ -2,7 +2,7 @@
* OpenAPI Petstore * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *
* OpenAPI spec version: 1.0.0 * The version of the OpenAPI document: 1.0.0
* *
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@ -42,9 +42,8 @@ public class AnotherFakeApiTest {
*/ */
@Test @Test
public void call123testSpecialTagsTest() throws ApiException { public void call123testSpecialTagsTest() throws ApiException {
Client client = null; Client body = null;
Client response = api.call123testSpecialTags(client); Client response = api.call123testSpecialTags(body);
// TODO: test validations // TODO: test validations
} }

View File

@ -2,7 +2,7 @@
* OpenAPI Petstore * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *
* OpenAPI spec version: 1.0.0 * The version of the OpenAPI document: 1.0.0
* *
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@ -22,6 +22,7 @@ import java.time.LocalDate;
import java.time.OffsetDateTime; import java.time.OffsetDateTime;
import org.openapitools.client.model.OuterComposite; import org.openapitools.client.model.OuterComposite;
import org.openapitools.client.model.User; import org.openapitools.client.model.User;
import org.openapitools.client.model.XmlItem;
import org.junit.Test; import org.junit.Test;
import org.junit.Ignore; import org.junit.Ignore;
@ -39,6 +40,21 @@ public class FakeApiTest {
private final FakeApi api = new FakeApi(); private final FakeApi api = new FakeApi();
/**
* creates an XmlItem
*
* this route creates an XmlItem
*
* @throws ApiException
* if the Api call fails
*/
@Test
public void createXmlItemTest() throws ApiException {
XmlItem xmlItem = null;
api.createXmlItem(xmlItem);
// TODO: test validations
}
/** /**
* *
* *
@ -51,7 +67,6 @@ public class FakeApiTest {
public void fakeOuterBooleanSerializeTest() throws ApiException { public void fakeOuterBooleanSerializeTest() throws ApiException {
Boolean body = null; Boolean body = null;
Boolean response = api.fakeOuterBooleanSerialize(body); Boolean response = api.fakeOuterBooleanSerialize(body);
// TODO: test validations // TODO: test validations
} }
@ -65,9 +80,8 @@ public class FakeApiTest {
*/ */
@Test @Test
public void fakeOuterCompositeSerializeTest() throws ApiException { public void fakeOuterCompositeSerializeTest() throws ApiException {
OuterComposite outerComposite = null; OuterComposite body = null;
OuterComposite response = api.fakeOuterCompositeSerialize(outerComposite); OuterComposite response = api.fakeOuterCompositeSerialize(body);
// TODO: test validations // TODO: test validations
} }
@ -83,7 +97,6 @@ public class FakeApiTest {
public void fakeOuterNumberSerializeTest() throws ApiException { public void fakeOuterNumberSerializeTest() throws ApiException {
BigDecimal body = null; BigDecimal body = null;
BigDecimal response = api.fakeOuterNumberSerialize(body); BigDecimal response = api.fakeOuterNumberSerialize(body);
// TODO: test validations // TODO: test validations
} }
@ -99,7 +112,6 @@ public class FakeApiTest {
public void fakeOuterStringSerializeTest() throws ApiException { public void fakeOuterStringSerializeTest() throws ApiException {
String body = null; String body = null;
String response = api.fakeOuterStringSerialize(body); String response = api.fakeOuterStringSerialize(body);
// TODO: test validations // TODO: test validations
} }
@ -113,9 +125,8 @@ public class FakeApiTest {
*/ */
@Test @Test
public void testBodyWithFileSchemaTest() throws ApiException { public void testBodyWithFileSchemaTest() throws ApiException {
FileSchemaTestClass fileSchemaTestClass = null; FileSchemaTestClass body = null;
api.testBodyWithFileSchema(fileSchemaTestClass); api.testBodyWithFileSchema(body);
// TODO: test validations // TODO: test validations
} }
@ -130,9 +141,8 @@ public class FakeApiTest {
@Test @Test
public void testBodyWithQueryParamsTest() throws ApiException { public void testBodyWithQueryParamsTest() throws ApiException {
String query = null; String query = null;
User user = null; User body = null;
api.testBodyWithQueryParams(query, user); api.testBodyWithQueryParams(query, body);
// TODO: test validations // TODO: test validations
} }
@ -146,9 +156,8 @@ public class FakeApiTest {
*/ */
@Test @Test
public void testClientModelTest() throws ApiException { public void testClientModelTest() throws ApiException {
Client client = null; Client body = null;
Client response = api.testClientModel(client); Client response = api.testClientModel(body);
// TODO: test validations // TODO: test validations
} }
@ -177,7 +186,6 @@ public class FakeApiTest {
String password = null; String password = null;
String paramCallback = null; String paramCallback = null;
api.testEndpointParameters(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, string, binary, date, dateTime, password, paramCallback); api.testEndpointParameters(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, string, binary, date, dateTime, password, paramCallback);
// TODO: test validations // TODO: test validations
} }
@ -200,7 +208,6 @@ public class FakeApiTest {
List<String> enumFormStringArray = null; List<String> enumFormStringArray = null;
String enumFormString = null; String enumFormString = null;
api.testEnumParameters(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumFormStringArray, enumFormString); api.testEnumParameters(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumFormStringArray, enumFormString);
// TODO: test validations // TODO: test validations
} }
@ -220,8 +227,14 @@ public class FakeApiTest {
Integer stringGroup = null; Integer stringGroup = null;
Boolean booleanGroup = null; Boolean booleanGroup = null;
Long int64Group = null; Long int64Group = null;
api.testGroupParameters(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group); api.testGroupParameters()
.requiredStringGroup(requiredStringGroup)
.requiredBooleanGroup(requiredBooleanGroup)
.requiredInt64Group(requiredInt64Group)
.stringGroup(stringGroup)
.booleanGroup(booleanGroup)
.int64Group(int64Group)
.execute();
// TODO: test validations // TODO: test validations
} }
@ -235,9 +248,8 @@ public class FakeApiTest {
*/ */
@Test @Test
public void testInlineAdditionalPropertiesTest() throws ApiException { public void testInlineAdditionalPropertiesTest() throws ApiException {
Map<String, String> requestBody = null; Map<String, String> param = null;
api.testInlineAdditionalProperties(requestBody); api.testInlineAdditionalProperties(param);
// TODO: test validations // TODO: test validations
} }
@ -254,7 +266,25 @@ public class FakeApiTest {
String param = null; String param = null;
String param2 = null; String param2 = null;
api.testJsonFormData(param, param2); api.testJsonFormData(param, param2);
// TODO: test validations
}
/**
*
*
* To test the collection format in query parameters
*
* @throws ApiException
* if the Api call fails
*/
@Test
public void testQueryParameterCollectionFormatTest() throws ApiException {
List<String> pipe = null;
List<String> ioutil = null;
List<String> http = null;
List<String> url = null;
List<String> context = null;
api.testQueryParameterCollectionFormat(pipe, ioutil, http, url, context);
// TODO: test validations // TODO: test validations
} }

View File

@ -2,7 +2,7 @@
* OpenAPI Petstore * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *
* OpenAPI spec version: 1.0.0 * The version of the OpenAPI document: 1.0.0
* *
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@ -42,9 +42,8 @@ public class FakeClassnameTags123ApiTest {
*/ */
@Test @Test
public void testClassnameTest() throws ApiException { public void testClassnameTest() throws ApiException {
Client client = null; Client body = null;
Client response = api.testClassname(client); Client response = api.testClassname(body);
// TODO: test validations // TODO: test validations
} }

View File

@ -2,7 +2,7 @@
* OpenAPI Petstore * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *
* OpenAPI spec version: 1.0.0 * The version of the OpenAPI document: 1.0.0
* *
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@ -44,9 +44,8 @@ public class PetApiTest {
*/ */
@Test @Test
public void addPetTest() throws ApiException { public void addPetTest() throws ApiException {
Pet pet = null; Pet body = null;
api.addPet(pet); api.addPet(body);
// TODO: test validations // TODO: test validations
} }
@ -63,7 +62,6 @@ public class PetApiTest {
Long petId = null; Long petId = null;
String apiKey = null; String apiKey = null;
api.deletePet(petId, apiKey); api.deletePet(petId, apiKey);
// TODO: test validations // TODO: test validations
} }
@ -79,7 +77,6 @@ public class PetApiTest {
public void findPetsByStatusTest() throws ApiException { public void findPetsByStatusTest() throws ApiException {
List<String> status = null; List<String> status = null;
List<Pet> response = api.findPetsByStatus(status); List<Pet> response = api.findPetsByStatus(status);
// TODO: test validations // TODO: test validations
} }
@ -95,7 +92,6 @@ public class PetApiTest {
public void findPetsByTagsTest() throws ApiException { public void findPetsByTagsTest() throws ApiException {
List<String> tags = null; List<String> tags = null;
List<Pet> response = api.findPetsByTags(tags); List<Pet> response = api.findPetsByTags(tags);
// TODO: test validations // TODO: test validations
} }
@ -111,7 +107,6 @@ public class PetApiTest {
public void getPetByIdTest() throws ApiException { public void getPetByIdTest() throws ApiException {
Long petId = null; Long petId = null;
Pet response = api.getPetById(petId); Pet response = api.getPetById(petId);
// TODO: test validations // TODO: test validations
} }
@ -125,9 +120,8 @@ public class PetApiTest {
*/ */
@Test @Test
public void updatePetTest() throws ApiException { public void updatePetTest() throws ApiException {
Pet pet = null; Pet body = null;
api.updatePet(pet); api.updatePet(body);
// TODO: test validations // TODO: test validations
} }
@ -145,7 +139,6 @@ public class PetApiTest {
String name = null; String name = null;
String status = null; String status = null;
api.updatePetWithForm(petId, name, status); api.updatePetWithForm(petId, name, status);
// TODO: test validations // TODO: test validations
} }
@ -163,7 +156,23 @@ public class PetApiTest {
String additionalMetadata = null; String additionalMetadata = null;
File file = null; File file = null;
ModelApiResponse response = api.uploadFile(petId, additionalMetadata, file); ModelApiResponse response = api.uploadFile(petId, additionalMetadata, file);
// TODO: test validations
}
/**
* uploads an image (required)
*
*
*
* @throws ApiException
* if the Api call fails
*/
@Test
public void uploadFileWithRequiredFileTest() throws ApiException {
Long petId = null;
File requiredFile = null;
String additionalMetadata = null;
ModelApiResponse response = api.uploadFileWithRequiredFile(petId, requiredFile, additionalMetadata);
// TODO: test validations // TODO: test validations
} }

View File

@ -2,7 +2,7 @@
* OpenAPI Petstore * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *
* OpenAPI spec version: 1.0.0 * The version of the OpenAPI document: 1.0.0
* *
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@ -44,7 +44,6 @@ public class StoreApiTest {
public void deleteOrderTest() throws ApiException { public void deleteOrderTest() throws ApiException {
String orderId = null; String orderId = null;
api.deleteOrder(orderId); api.deleteOrder(orderId);
// TODO: test validations // TODO: test validations
} }
@ -59,7 +58,6 @@ public class StoreApiTest {
@Test @Test
public void getInventoryTest() throws ApiException { public void getInventoryTest() throws ApiException {
Map<String, Integer> response = api.getInventory(); Map<String, Integer> response = api.getInventory();
// TODO: test validations // TODO: test validations
} }
@ -75,7 +73,6 @@ public class StoreApiTest {
public void getOrderByIdTest() throws ApiException { public void getOrderByIdTest() throws ApiException {
Long orderId = null; Long orderId = null;
Order response = api.getOrderById(orderId); Order response = api.getOrderById(orderId);
// TODO: test validations // TODO: test validations
} }
@ -89,9 +86,8 @@ public class StoreApiTest {
*/ */
@Test @Test
public void placeOrderTest() throws ApiException { public void placeOrderTest() throws ApiException {
Order order = null; Order body = null;
Order response = api.placeOrder(order); Order response = api.placeOrder(body);
// TODO: test validations // TODO: test validations
} }

View File

@ -2,7 +2,7 @@
* OpenAPI Petstore * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *
* OpenAPI spec version: 1.0.0 * The version of the OpenAPI document: 1.0.0
* *
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@ -42,9 +42,8 @@ public class UserApiTest {
*/ */
@Test @Test
public void createUserTest() throws ApiException { public void createUserTest() throws ApiException {
User user = null; User body = null;
api.createUser(user); api.createUser(body);
// TODO: test validations // TODO: test validations
} }
@ -58,9 +57,8 @@ public class UserApiTest {
*/ */
@Test @Test
public void createUsersWithArrayInputTest() throws ApiException { public void createUsersWithArrayInputTest() throws ApiException {
List<User> user = null; List<User> body = null;
api.createUsersWithArrayInput(user); api.createUsersWithArrayInput(body);
// TODO: test validations // TODO: test validations
} }
@ -74,9 +72,8 @@ public class UserApiTest {
*/ */
@Test @Test
public void createUsersWithListInputTest() throws ApiException { public void createUsersWithListInputTest() throws ApiException {
List<User> user = null; List<User> body = null;
api.createUsersWithListInput(user); api.createUsersWithListInput(body);
// TODO: test validations // TODO: test validations
} }
@ -92,7 +89,6 @@ public class UserApiTest {
public void deleteUserTest() throws ApiException { public void deleteUserTest() throws ApiException {
String username = null; String username = null;
api.deleteUser(username); api.deleteUser(username);
// TODO: test validations // TODO: test validations
} }
@ -108,7 +104,6 @@ public class UserApiTest {
public void getUserByNameTest() throws ApiException { public void getUserByNameTest() throws ApiException {
String username = null; String username = null;
User response = api.getUserByName(username); User response = api.getUserByName(username);
// TODO: test validations // TODO: test validations
} }
@ -125,7 +120,6 @@ public class UserApiTest {
String username = null; String username = null;
String password = null; String password = null;
String response = api.loginUser(username, password); String response = api.loginUser(username, password);
// TODO: test validations // TODO: test validations
} }
@ -140,7 +134,6 @@ public class UserApiTest {
@Test @Test
public void logoutUserTest() throws ApiException { public void logoutUserTest() throws ApiException {
api.logoutUser(); api.logoutUser();
// TODO: test validations // TODO: test validations
} }
@ -155,9 +148,8 @@ public class UserApiTest {
@Test @Test
public void updateUserTest() throws ApiException { public void updateUserTest() throws ApiException {
String username = null; String username = null;
User user = null; User body = null;
api.updateUser(username, user); api.updateUser(username, body);
// TODO: test validations // TODO: test validations
} }

View File

@ -2,7 +2,7 @@
* OpenAPI Petstore * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *
* OpenAPI spec version: 1.0.0 * The version of the OpenAPI document: 1.0.0
* *
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@ -13,6 +13,7 @@
package org.openapitools.client.model; package org.openapitools.client.model;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.annotation.JsonValue;

View File

@ -2,7 +2,7 @@
* OpenAPI Petstore * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *
* OpenAPI spec version: 1.0.0 * The version of the OpenAPI document: 1.0.0
* *
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@ -13,6 +13,7 @@
package org.openapitools.client.model; package org.openapitools.client.model;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.annotation.JsonValue;

View File

@ -2,7 +2,7 @@
* OpenAPI Petstore * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *
* OpenAPI spec version: 1.0.0 * The version of the OpenAPI document: 1.0.0
* *
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@ -13,6 +13,7 @@
package org.openapitools.client.model; package org.openapitools.client.model;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.annotation.JsonValue;

View File

@ -2,7 +2,7 @@
* OpenAPI Petstore * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *
* OpenAPI spec version: 1.0.0 * The version of the OpenAPI document: 1.0.0
* *
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@ -13,11 +13,13 @@
package org.openapitools.client.model; package org.openapitools.client.model;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import java.math.BigDecimal;
import java.util.HashMap; import java.util.HashMap;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
@ -41,19 +43,91 @@ public class AdditionalPropertiesClassTest {
} }
/** /**
* Test the property 'mapProperty' * Test the property 'mapString'
*/ */
@Test @Test
public void mapPropertyTest() { public void mapStringTest() {
// TODO: test mapProperty // TODO: test mapString
} }
/** /**
* Test the property 'mapOfMapProperty' * Test the property 'mapNumber'
*/ */
@Test @Test
public void mapOfMapPropertyTest() { public void mapNumberTest() {
// TODO: test mapOfMapProperty // TODO: test mapNumber
}
/**
* Test the property 'mapInteger'
*/
@Test
public void mapIntegerTest() {
// TODO: test mapInteger
}
/**
* Test the property 'mapBoolean'
*/
@Test
public void mapBooleanTest() {
// TODO: test mapBoolean
}
/**
* Test the property 'mapArrayInteger'
*/
@Test
public void mapArrayIntegerTest() {
// TODO: test mapArrayInteger
}
/**
* Test the property 'mapArrayAnytype'
*/
@Test
public void mapArrayAnytypeTest() {
// TODO: test mapArrayAnytype
}
/**
* Test the property 'mapMapString'
*/
@Test
public void mapMapStringTest() {
// TODO: test mapMapString
}
/**
* Test the property 'mapMapAnytype'
*/
@Test
public void mapMapAnytypeTest() {
// TODO: test mapMapAnytype
}
/**
* Test the property 'anytype1'
*/
@Test
public void anytype1Test() {
// TODO: test anytype1
}
/**
* Test the property 'anytype2'
*/
@Test
public void anytype2Test() {
// TODO: test anytype2
}
/**
* Test the property 'anytype3'
*/
@Test
public void anytype3Test() {
// TODO: test anytype3
} }
} }

View File

@ -2,7 +2,7 @@
* OpenAPI Petstore * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *
* OpenAPI spec version: 1.0.0 * The version of the OpenAPI document: 1.0.0
* *
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@ -13,6 +13,7 @@
package org.openapitools.client.model; package org.openapitools.client.model;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.annotation.JsonValue;

View File

@ -2,7 +2,7 @@
* OpenAPI Petstore * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *
* OpenAPI spec version: 1.0.0 * The version of the OpenAPI document: 1.0.0
* *
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@ -13,6 +13,7 @@
package org.openapitools.client.model; package org.openapitools.client.model;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.annotation.JsonValue;

View File

@ -2,7 +2,7 @@
* OpenAPI Petstore * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *
* OpenAPI spec version: 1.0.0 * The version of the OpenAPI document: 1.0.0
* *
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@ -13,6 +13,7 @@
package org.openapitools.client.model; package org.openapitools.client.model;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.annotation.JsonValue;

View File

@ -2,7 +2,7 @@
* OpenAPI Petstore * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *
* OpenAPI spec version: 1.0.0 * The version of the OpenAPI document: 1.0.0
* *
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@ -13,6 +13,7 @@
package org.openapitools.client.model; package org.openapitools.client.model;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.annotation.JsonValue;

View File

@ -2,7 +2,7 @@
* OpenAPI Petstore * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *
* OpenAPI spec version: 1.0.0 * The version of the OpenAPI document: 1.0.0
* *
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@ -13,6 +13,7 @@
package org.openapitools.client.model; package org.openapitools.client.model;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonSubTypes; import com.fasterxml.jackson.annotation.JsonSubTypes;

View File

@ -2,7 +2,7 @@
* OpenAPI Petstore * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *
* OpenAPI spec version: 1.0.0 * The version of the OpenAPI document: 1.0.0
* *
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@ -13,6 +13,7 @@
package org.openapitools.client.model; package org.openapitools.client.model;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.annotation.JsonValue;

View File

@ -2,7 +2,7 @@
* OpenAPI Petstore * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *
* OpenAPI spec version: 1.0.0 * The version of the OpenAPI document: 1.0.0
* *
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@ -13,6 +13,7 @@
package org.openapitools.client.model; package org.openapitools.client.model;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.annotation.JsonValue;

View File

@ -2,7 +2,7 @@
* OpenAPI Petstore * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *
* OpenAPI spec version: 1.0.0 * The version of the OpenAPI document: 1.0.0
* *
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@ -13,6 +13,7 @@
package org.openapitools.client.model; package org.openapitools.client.model;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.annotation.JsonValue;

View File

@ -2,7 +2,7 @@
* OpenAPI Petstore * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *
* OpenAPI spec version: 1.0.0 * The version of the OpenAPI document: 1.0.0
* *
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@ -13,6 +13,7 @@
package org.openapitools.client.model; package org.openapitools.client.model;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.annotation.JsonValue;

View File

@ -2,7 +2,7 @@
* OpenAPI Petstore * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *
* OpenAPI spec version: 1.0.0 * The version of the OpenAPI document: 1.0.0
* *
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@ -13,6 +13,7 @@
package org.openapitools.client.model; package org.openapitools.client.model;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.annotation.JsonValue;

View File

@ -2,7 +2,7 @@
* OpenAPI Petstore * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *
* OpenAPI spec version: 1.0.0 * The version of the OpenAPI document: 1.0.0
* *
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@ -13,12 +13,14 @@
package org.openapitools.client.model; package org.openapitools.client.model;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import org.openapitools.client.model.Animal; import org.openapitools.client.model.Animal;
import org.openapitools.client.model.CatAllOf;
import org.junit.Assert; import org.junit.Assert;
import org.junit.Ignore; import org.junit.Ignore;
import org.junit.Test; import org.junit.Test;

View File

@ -2,7 +2,7 @@
* OpenAPI Petstore * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *
* OpenAPI spec version: 1.0.0 * The version of the OpenAPI document: 1.0.0
* *
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@ -13,6 +13,7 @@
package org.openapitools.client.model; package org.openapitools.client.model;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.annotation.JsonValue;

View File

@ -2,7 +2,7 @@
* OpenAPI Petstore * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *
* OpenAPI spec version: 1.0.0 * The version of the OpenAPI document: 1.0.0
* *
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@ -13,6 +13,7 @@
package org.openapitools.client.model; package org.openapitools.client.model;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.annotation.JsonValue;

View File

@ -2,7 +2,7 @@
* OpenAPI Petstore * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *
* OpenAPI spec version: 1.0.0 * The version of the OpenAPI document: 1.0.0
* *
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@ -13,6 +13,7 @@
package org.openapitools.client.model; package org.openapitools.client.model;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.annotation.JsonValue;

View File

@ -2,7 +2,7 @@
* OpenAPI Petstore * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *
* OpenAPI spec version: 1.0.0 * The version of the OpenAPI document: 1.0.0
* *
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@ -13,6 +13,7 @@
package org.openapitools.client.model; package org.openapitools.client.model;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.annotation.JsonValue;

View File

@ -2,7 +2,7 @@
* OpenAPI Petstore * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *
* OpenAPI spec version: 1.0.0 * The version of the OpenAPI document: 1.0.0
* *
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@ -13,12 +13,14 @@
package org.openapitools.client.model; package org.openapitools.client.model;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import org.openapitools.client.model.Animal; import org.openapitools.client.model.Animal;
import org.openapitools.client.model.DogAllOf;
import org.junit.Assert; import org.junit.Assert;
import org.junit.Ignore; import org.junit.Ignore;
import org.junit.Test; import org.junit.Test;

View File

@ -2,7 +2,7 @@
* OpenAPI Petstore * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *
* OpenAPI spec version: 1.0.0 * The version of the OpenAPI document: 1.0.0
* *
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@ -13,6 +13,7 @@
package org.openapitools.client.model; package org.openapitools.client.model;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.annotation.JsonValue;

View File

@ -2,7 +2,7 @@
* OpenAPI Petstore * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *
* OpenAPI spec version: 1.0.0 * The version of the OpenAPI document: 1.0.0
* *
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

View File

@ -2,7 +2,7 @@
* OpenAPI Petstore * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *
* OpenAPI spec version: 1.0.0 * The version of the OpenAPI document: 1.0.0
* *
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@ -13,6 +13,7 @@
package org.openapitools.client.model; package org.openapitools.client.model;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.annotation.JsonValue;

View File

@ -2,7 +2,7 @@
* OpenAPI Petstore * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *
* OpenAPI spec version: 1.0.0 * The version of the OpenAPI document: 1.0.0
* *
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@ -13,6 +13,7 @@
package org.openapitools.client.model; package org.openapitools.client.model;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.annotation.JsonValue;

View File

@ -2,7 +2,7 @@
* OpenAPI Petstore * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *
* OpenAPI spec version: 1.0.0 * The version of the OpenAPI document: 1.0.0
* *
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@ -13,6 +13,7 @@
package org.openapitools.client.model; package org.openapitools.client.model;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.annotation.JsonValue;
@ -146,4 +147,12 @@ public class FormatTestTest {
// TODO: test password // TODO: test password
} }
/**
* Test the property 'bigDecimal'
*/
@Test
public void bigDecimalTest() {
// TODO: test bigDecimal
}
} }

View File

@ -2,7 +2,7 @@
* OpenAPI Petstore * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *
* OpenAPI spec version: 1.0.0 * The version of the OpenAPI document: 1.0.0
* *
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@ -13,6 +13,7 @@
package org.openapitools.client.model; package org.openapitools.client.model;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.annotation.JsonValue;

View File

@ -2,7 +2,7 @@
* OpenAPI Petstore * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *
* OpenAPI spec version: 1.0.0 * The version of the OpenAPI document: 1.0.0
* *
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@ -13,6 +13,7 @@
package org.openapitools.client.model; package org.openapitools.client.model;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.annotation.JsonValue;

View File

@ -2,7 +2,7 @@
* OpenAPI Petstore * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *
* OpenAPI spec version: 1.0.0 * The version of the OpenAPI document: 1.0.0
* *
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@ -13,6 +13,7 @@
package org.openapitools.client.model; package org.openapitools.client.model;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.annotation.JsonValue;

View File

@ -2,7 +2,7 @@
* OpenAPI Petstore * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *
* OpenAPI spec version: 1.0.0 * The version of the OpenAPI document: 1.0.0
* *
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@ -13,6 +13,7 @@
package org.openapitools.client.model; package org.openapitools.client.model;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.annotation.JsonValue;

View File

@ -2,7 +2,7 @@
* OpenAPI Petstore * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *
* OpenAPI spec version: 1.0.0 * The version of the OpenAPI document: 1.0.0
* *
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@ -13,6 +13,7 @@
package org.openapitools.client.model; package org.openapitools.client.model;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.annotation.JsonValue;

View File

@ -2,7 +2,7 @@
* OpenAPI Petstore * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *
* OpenAPI spec version: 1.0.0 * The version of the OpenAPI document: 1.0.0
* *
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@ -13,6 +13,7 @@
package org.openapitools.client.model; package org.openapitools.client.model;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.annotation.JsonValue;

View File

@ -2,7 +2,7 @@
* OpenAPI Petstore * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *
* OpenAPI spec version: 1.0.0 * The version of the OpenAPI document: 1.0.0
* *
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@ -13,6 +13,7 @@
package org.openapitools.client.model; package org.openapitools.client.model;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.annotation.JsonValue;

View File

@ -2,7 +2,7 @@
* OpenAPI Petstore * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *
* OpenAPI spec version: 1.0.0 * The version of the OpenAPI document: 1.0.0
* *
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@ -13,6 +13,7 @@
package org.openapitools.client.model; package org.openapitools.client.model;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.annotation.JsonValue;

View File

@ -2,7 +2,7 @@
* OpenAPI Petstore * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *
* OpenAPI spec version: 1.0.0 * The version of the OpenAPI document: 1.0.0
* *
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@ -13,6 +13,7 @@
package org.openapitools.client.model; package org.openapitools.client.model;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.annotation.JsonValue;

View File

@ -2,7 +2,7 @@
* OpenAPI Petstore * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *
* OpenAPI spec version: 1.0.0 * The version of the OpenAPI document: 1.0.0
* *
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@ -13,6 +13,7 @@
package org.openapitools.client.model; package org.openapitools.client.model;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.annotation.JsonValue;

View File

@ -2,7 +2,7 @@
* OpenAPI Petstore * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *
* OpenAPI spec version: 1.0.0 * The version of the OpenAPI document: 1.0.0
* *
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

View File

@ -2,7 +2,7 @@
* OpenAPI Petstore * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *
* OpenAPI spec version: 1.0.0 * The version of the OpenAPI document: 1.0.0
* *
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@ -13,6 +13,7 @@
package org.openapitools.client.model; package org.openapitools.client.model;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.annotation.JsonValue;

View File

@ -2,7 +2,7 @@
* OpenAPI Petstore * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *
* OpenAPI spec version: 1.0.0 * The version of the OpenAPI document: 1.0.0
* *
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@ -13,6 +13,7 @@
package org.openapitools.client.model; package org.openapitools.client.model;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.annotation.JsonValue;

View File

@ -2,7 +2,7 @@
* OpenAPI Petstore * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *
* OpenAPI spec version: 1.0.0 * The version of the OpenAPI document: 1.0.0
* *
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@ -13,6 +13,7 @@
package org.openapitools.client.model; package org.openapitools.client.model;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.annotation.JsonValue;

View File

@ -2,7 +2,7 @@
* OpenAPI Petstore * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *
* OpenAPI spec version: 1.0.0 * The version of the OpenAPI document: 1.0.0
* *
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@ -13,6 +13,7 @@
package org.openapitools.client.model; package org.openapitools.client.model;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.annotation.JsonValue;

View File

@ -2,7 +2,7 @@
* OpenAPI Petstore * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *
* OpenAPI spec version: 1.0.0 * The version of the OpenAPI document: 1.0.0
* *
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@ -13,6 +13,7 @@
package org.openapitools.client.model; package org.openapitools.client.model;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.annotation.JsonValue;

View File

@ -2,7 +2,7 @@
* OpenAPI Petstore * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *
* OpenAPI spec version: 1.0.0 * The version of the OpenAPI document: 1.0.0
* *
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@ -13,6 +13,7 @@
package org.openapitools.client.model; package org.openapitools.client.model;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.annotation.JsonValue;
@ -56,6 +57,14 @@ public class TypeHolderExampleTest {
// TODO: test numberItem // TODO: test numberItem
} }
/**
* Test the property 'floatItem'
*/
@Test
public void floatItemTest() {
// TODO: test floatItem
}
/** /**
* Test the property 'integerItem' * Test the property 'integerItem'
*/ */

View File

@ -2,7 +2,7 @@
* OpenAPI Petstore * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *
* OpenAPI spec version: 1.0.0 * The version of the OpenAPI document: 1.0.0
* *
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@ -13,6 +13,7 @@
package org.openapitools.client.model; package org.openapitools.client.model;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.annotation.JsonValue;

View File

@ -2,7 +2,7 @@
* OpenAPI Petstore * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *
* OpenAPI spec version: 1.0.0 * The version of the OpenAPI document: 1.0.0
* *
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@ -13,6 +13,7 @@
package org.openapitools.client.model; package org.openapitools.client.model;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.annotation.JsonValue;
@ -225,51 +226,51 @@ public class XmlItemTest {
} }
/** /**
* Test the property 'prefixNamespaceString' * Test the property 'prefixNsString'
*/ */
@Test @Test
public void prefixNamespaceStringTest() { public void prefixNsStringTest() {
// TODO: test prefixNamespaceString // TODO: test prefixNsString
} }
/** /**
* Test the property 'prefixNamespaceNumber' * Test the property 'prefixNsNumber'
*/ */
@Test @Test
public void prefixNamespaceNumberTest() { public void prefixNsNumberTest() {
// TODO: test prefixNamespaceNumber // TODO: test prefixNsNumber
} }
/** /**
* Test the property 'prefixNamespaceInteger' * Test the property 'prefixNsInteger'
*/ */
@Test @Test
public void prefixNamespaceIntegerTest() { public void prefixNsIntegerTest() {
// TODO: test prefixNamespaceInteger // TODO: test prefixNsInteger
} }
/** /**
* Test the property 'prefixNamespaceBoolean' * Test the property 'prefixNsBoolean'
*/ */
@Test @Test
public void prefixNamespaceBooleanTest() { public void prefixNsBooleanTest() {
// TODO: test prefixNamespaceBoolean // TODO: test prefixNsBoolean
} }
/** /**
* Test the property 'prefixNamespaceArray' * Test the property 'prefixNsArray'
*/ */
@Test @Test
public void prefixNamespaceArrayTest() { public void prefixNsArrayTest() {
// TODO: test prefixNamespaceArray // TODO: test prefixNsArray
} }
/** /**
* Test the property 'prefixNamespaceWrappedArray' * Test the property 'prefixNsWrappedArray'
*/ */
@Test @Test
public void prefixNamespaceWrappedArrayTest() { public void prefixNsWrappedArrayTest() {
// TODO: test prefixNamespaceWrappedArray // TODO: test prefixNsWrappedArray
} }
} }

View File

@ -12,6 +12,7 @@ Method | HTTP request | Description
> Client call123testSpecialTags(body) > Client call123testSpecialTags(body)
To test special tags To test special tags
To test special tags and operation ID starting with number To test special tags and operation ID starting with number
@ -35,6 +36,7 @@ public class Example {
Client body = new Client(); // Client | client model Client body = new Client(); // Client | client model
try { try {
Client result = apiInstance.call123testSpecialTags(body); Client result = apiInstance.call123testSpecialTags(body);
System.out.println(result); System.out.println(result);
} catch (ApiException e) { } catch (ApiException e) {
System.err.println("Exception when calling AnotherFakeApi#call123testSpecialTags"); System.err.println("Exception when calling AnotherFakeApi#call123testSpecialTags");

View File

@ -25,6 +25,7 @@ Method | HTTP request | Description
> createXmlItem(xmlItem) > createXmlItem(xmlItem)
creates an XmlItem creates an XmlItem
this route creates an XmlItem this route creates an XmlItem
@ -48,6 +49,8 @@ public class Example {
XmlItem xmlItem = new XmlItem(); // XmlItem | XmlItem Body XmlItem xmlItem = new XmlItem(); // XmlItem | XmlItem Body
try { try {
apiInstance.createXmlItem(xmlItem); apiInstance.createXmlItem(xmlItem);
} catch (ApiException e) { } catch (ApiException e) {
System.err.println("Exception when calling FakeApi#createXmlItem"); System.err.println("Exception when calling FakeApi#createXmlItem");
System.err.println("Status code: " + e.getCode()); System.err.println("Status code: " + e.getCode());
@ -91,6 +94,7 @@ No authorization required
Test serialization of outer boolean types Test serialization of outer boolean types
### Example ### Example
@ -112,6 +116,7 @@ public class Example {
Boolean body = true; // Boolean | Input boolean as post body Boolean body = true; // Boolean | Input boolean as post body
try { try {
Boolean result = apiInstance.fakeOuterBooleanSerialize(body); Boolean result = apiInstance.fakeOuterBooleanSerialize(body);
System.out.println(result); System.out.println(result);
} catch (ApiException e) { } catch (ApiException e) {
System.err.println("Exception when calling FakeApi#fakeOuterBooleanSerialize"); System.err.println("Exception when calling FakeApi#fakeOuterBooleanSerialize");
@ -156,6 +161,7 @@ No authorization required
Test serialization of object with outer number type Test serialization of object with outer number type
### Example ### Example
@ -177,6 +183,7 @@ public class Example {
OuterComposite body = new OuterComposite(); // OuterComposite | Input composite as post body OuterComposite body = new OuterComposite(); // OuterComposite | Input composite as post body
try { try {
OuterComposite result = apiInstance.fakeOuterCompositeSerialize(body); OuterComposite result = apiInstance.fakeOuterCompositeSerialize(body);
System.out.println(result); System.out.println(result);
} catch (ApiException e) { } catch (ApiException e) {
System.err.println("Exception when calling FakeApi#fakeOuterCompositeSerialize"); System.err.println("Exception when calling FakeApi#fakeOuterCompositeSerialize");
@ -221,6 +228,7 @@ No authorization required
Test serialization of outer number types Test serialization of outer number types
### Example ### Example
@ -242,6 +250,7 @@ public class Example {
BigDecimal body = new BigDecimal(); // BigDecimal | Input number as post body BigDecimal body = new BigDecimal(); // BigDecimal | Input number as post body
try { try {
BigDecimal result = apiInstance.fakeOuterNumberSerialize(body); BigDecimal result = apiInstance.fakeOuterNumberSerialize(body);
System.out.println(result); System.out.println(result);
} catch (ApiException e) { } catch (ApiException e) {
System.err.println("Exception when calling FakeApi#fakeOuterNumberSerialize"); System.err.println("Exception when calling FakeApi#fakeOuterNumberSerialize");
@ -286,6 +295,7 @@ No authorization required
Test serialization of outer string types Test serialization of outer string types
### Example ### Example
@ -307,6 +317,7 @@ public class Example {
String body = "body_example"; // String | Input string as post body String body = "body_example"; // String | Input string as post body
try { try {
String result = apiInstance.fakeOuterStringSerialize(body); String result = apiInstance.fakeOuterStringSerialize(body);
System.out.println(result); System.out.println(result);
} catch (ApiException e) { } catch (ApiException e) {
System.err.println("Exception when calling FakeApi#fakeOuterStringSerialize"); System.err.println("Exception when calling FakeApi#fakeOuterStringSerialize");
@ -351,7 +362,8 @@ No authorization required
For this test, the body for this request much reference a schema named &#x60;File&#x60;.
For this test, the body for this request much reference a schema named `File`.
### Example ### Example
@ -372,6 +384,8 @@ public class Example {
FileSchemaTestClass body = new FileSchemaTestClass(); // FileSchemaTestClass | FileSchemaTestClass body = new FileSchemaTestClass(); // FileSchemaTestClass |
try { try {
apiInstance.testBodyWithFileSchema(body); apiInstance.testBodyWithFileSchema(body);
} catch (ApiException e) { } catch (ApiException e) {
System.err.println("Exception when calling FakeApi#testBodyWithFileSchema"); System.err.println("Exception when calling FakeApi#testBodyWithFileSchema");
System.err.println("Status code: " + e.getCode()); System.err.println("Status code: " + e.getCode());
@ -415,6 +429,7 @@ No authorization required
### Example ### Example
```java ```java
@ -435,6 +450,8 @@ public class Example {
User body = new User(); // User | User body = new User(); // User |
try { try {
apiInstance.testBodyWithQueryParams(query, body); apiInstance.testBodyWithQueryParams(query, body);
} catch (ApiException e) { } catch (ApiException e) {
System.err.println("Exception when calling FakeApi#testBodyWithQueryParams"); System.err.println("Exception when calling FakeApi#testBodyWithQueryParams");
System.err.println("Status code: " + e.getCode()); System.err.println("Status code: " + e.getCode());
@ -477,10 +494,11 @@ No authorization required
> Client testClientModel(body) > Client testClientModel(body)
To test \&quot;client\&quot; model
To test \&quot;client\&quot; model To test \&quot;client\&quot; model
To test "client" model
### Example ### Example
```java ```java
@ -500,6 +518,7 @@ public class Example {
Client body = new Client(); // Client | client model Client body = new Client(); // Client | client model
try { try {
Client result = apiInstance.testClientModel(body); Client result = apiInstance.testClientModel(body);
System.out.println(result); System.out.println(result);
} catch (ApiException e) { } catch (ApiException e) {
System.err.println("Exception when calling FakeApi#testClientModel"); System.err.println("Exception when calling FakeApi#testClientModel");
@ -542,10 +561,14 @@ No authorization required
> testEndpointParameters(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, string, binary, date, dateTime, password, paramCallback) > testEndpointParameters(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, string, binary, date, dateTime, password, paramCallback)
Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
Fake endpoint for testing various parameters
假端點
偽のエンドポイント
가짜 엔드 포인트
### Example ### Example
```java ```java
@ -584,6 +607,8 @@ public class Example {
String paramCallback = "paramCallback_example"; // String | None String paramCallback = "paramCallback_example"; // String | None
try { try {
apiInstance.testEndpointParameters(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, string, binary, date, dateTime, password, paramCallback); apiInstance.testEndpointParameters(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, string, binary, date, dateTime, password, paramCallback);
} catch (ApiException e) { } catch (ApiException e) {
System.err.println("Exception when calling FakeApi#testEndpointParameters"); System.err.println("Exception when calling FakeApi#testEndpointParameters");
System.err.println("Status code: " + e.getCode()); System.err.println("Status code: " + e.getCode());
@ -639,6 +664,7 @@ null (empty response body)
> testEnumParameters(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumFormStringArray, enumFormString) > testEnumParameters(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumFormStringArray, enumFormString)
To test enum parameters To test enum parameters
To test enum parameters To test enum parameters
@ -669,6 +695,8 @@ public class Example {
String enumFormString = "-efg"; // String | Form parameter enum test (string) String enumFormString = "-efg"; // String | Form parameter enum test (string)
try { try {
apiInstance.testEnumParameters(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumFormStringArray, enumFormString); apiInstance.testEnumParameters(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumFormStringArray, enumFormString);
} catch (ApiException e) { } catch (ApiException e) {
System.err.println("Exception when calling FakeApi#testEnumParameters"); System.err.println("Exception when calling FakeApi#testEnumParameters");
System.err.println("Status code: " + e.getCode()); System.err.println("Status code: " + e.getCode());
@ -716,7 +744,8 @@ No authorization required
## testGroupParameters ## testGroupParameters
> testGroupParameters(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group)
> testGroupParameters().requiredStringGroup(requiredStringGroup).requiredBooleanGroup(requiredBooleanGroup).requiredInt64Group(requiredInt64Group).stringGroup(stringGroup).booleanGroup(booleanGroup).int64Group(int64Group).execute();
Fake endpoint to test group parameters (optional) Fake endpoint to test group parameters (optional)
@ -745,7 +774,15 @@ public class Example {
Boolean booleanGroup = true; // Boolean | Boolean in group parameters Boolean booleanGroup = true; // Boolean | Boolean in group parameters
Long int64Group = 56L; // Long | Integer in group parameters Long int64Group = 56L; // Long | Integer in group parameters
try { try {
apiInstance.testGroupParameters(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group); api.testGroupParameters()
.requiredStringGroup(requiredStringGroup)
.requiredBooleanGroup(requiredBooleanGroup)
.requiredInt64Group(requiredInt64Group)
.stringGroup(stringGroup)
.booleanGroup(booleanGroup)
.int64Group(int64Group)
.execute();
} catch (ApiException e) { } catch (ApiException e) {
System.err.println("Exception when calling FakeApi#testGroupParameters"); System.err.println("Exception when calling FakeApi#testGroupParameters");
System.err.println("Status code: " + e.getCode()); System.err.println("Status code: " + e.getCode());
@ -792,6 +829,7 @@ No authorization required
> testInlineAdditionalProperties(param) > testInlineAdditionalProperties(param)
test inline additionalProperties test inline additionalProperties
### Example ### Example
@ -813,6 +851,8 @@ public class Example {
Map<String, String> param = new HashMap(); // Map<String, String> | request body Map<String, String> param = new HashMap(); // Map<String, String> | request body
try { try {
apiInstance.testInlineAdditionalProperties(param); apiInstance.testInlineAdditionalProperties(param);
} catch (ApiException e) { } catch (ApiException e) {
System.err.println("Exception when calling FakeApi#testInlineAdditionalProperties"); System.err.println("Exception when calling FakeApi#testInlineAdditionalProperties");
System.err.println("Status code: " + e.getCode()); System.err.println("Status code: " + e.getCode());
@ -854,6 +894,7 @@ No authorization required
> testJsonFormData(param, param2) > testJsonFormData(param, param2)
test json serialization of form data test json serialization of form data
### Example ### Example
@ -876,6 +917,8 @@ public class Example {
String param2 = "param2_example"; // String | field2 String param2 = "param2_example"; // String | field2
try { try {
apiInstance.testJsonFormData(param, param2); apiInstance.testJsonFormData(param, param2);
} catch (ApiException e) { } catch (ApiException e) {
System.err.println("Exception when calling FakeApi#testJsonFormData"); System.err.println("Exception when calling FakeApi#testJsonFormData");
System.err.println("Status code: " + e.getCode()); System.err.println("Status code: " + e.getCode());
@ -920,6 +963,7 @@ No authorization required
To test the collection format in query parameters To test the collection format in query parameters
### Example ### Example
@ -945,6 +989,8 @@ public class Example {
List<String> context = Arrays.asList(); // List<String> | List<String> context = Arrays.asList(); // List<String> |
try { try {
apiInstance.testQueryParameterCollectionFormat(pipe, ioutil, http, url, context); apiInstance.testQueryParameterCollectionFormat(pipe, ioutil, http, url, context);
} catch (ApiException e) { } catch (ApiException e) {
System.err.println("Exception when calling FakeApi#testQueryParameterCollectionFormat"); System.err.println("Exception when calling FakeApi#testQueryParameterCollectionFormat");
System.err.println("Status code: " + e.getCode()); System.err.println("Status code: " + e.getCode());

View File

@ -12,6 +12,7 @@ Method | HTTP request | Description
> Client testClassname(body) > Client testClassname(body)
To test class name in snake case To test class name in snake case
To test class name in snake case To test class name in snake case
@ -42,6 +43,7 @@ public class Example {
Client body = new Client(); // Client | client model Client body = new Client(); // Client | client model
try { try {
Client result = apiInstance.testClassname(body); Client result = apiInstance.testClassname(body);
System.out.println(result); System.out.println(result);
} catch (ApiException e) { } catch (ApiException e) {
System.err.println("Exception when calling FakeClassnameTags123Api#testClassname"); System.err.println("Exception when calling FakeClassnameTags123Api#testClassname");

View File

@ -20,6 +20,7 @@ Method | HTTP request | Description
> addPet(body) > addPet(body)
Add a new pet to the store Add a new pet to the store
### Example ### Example
@ -46,6 +47,8 @@ public class Example {
Pet body = new Pet(); // Pet | Pet object that needs to be added to the store Pet body = new Pet(); // Pet | Pet object that needs to be added to the store
try { try {
apiInstance.addPet(body); apiInstance.addPet(body);
} catch (ApiException e) { } catch (ApiException e) {
System.err.println("Exception when calling PetApi#addPet"); System.err.println("Exception when calling PetApi#addPet");
System.err.println("Status code: " + e.getCode()); System.err.println("Status code: " + e.getCode());
@ -88,6 +91,7 @@ null (empty response body)
> deletePet(petId, apiKey) > deletePet(petId, apiKey)
Deletes a pet Deletes a pet
### Example ### Example
@ -115,6 +119,8 @@ public class Example {
String apiKey = "apiKey_example"; // String | String apiKey = "apiKey_example"; // String |
try { try {
apiInstance.deletePet(petId, apiKey); apiInstance.deletePet(petId, apiKey);
} catch (ApiException e) { } catch (ApiException e) {
System.err.println("Exception when calling PetApi#deletePet"); System.err.println("Exception when calling PetApi#deletePet");
System.err.println("Status code: " + e.getCode()); System.err.println("Status code: " + e.getCode());
@ -158,6 +164,7 @@ null (empty response body)
> List&lt;Pet&gt; findPetsByStatus(status) > List&lt;Pet&gt; findPetsByStatus(status)
Finds Pets by status Finds Pets by status
Multiple status values can be provided with comma separated strings Multiple status values can be provided with comma separated strings
@ -186,6 +193,7 @@ public class Example {
List<String> status = Arrays.asList("available"); // List<String> | Status values that need to be considered for filter List<String> status = Arrays.asList("available"); // List<String> | Status values that need to be considered for filter
try { try {
List<Pet> result = apiInstance.findPetsByStatus(status); List<Pet> result = apiInstance.findPetsByStatus(status);
System.out.println(result); System.out.println(result);
} catch (ApiException e) { } catch (ApiException e) {
System.err.println("Exception when calling PetApi#findPetsByStatus"); System.err.println("Exception when calling PetApi#findPetsByStatus");
@ -229,6 +237,7 @@ Name | Type | Description | Notes
> List&lt;Pet&gt; findPetsByTags(tags) > List&lt;Pet&gt; findPetsByTags(tags)
Finds Pets by tags Finds Pets by tags
Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing. Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.
@ -257,6 +266,7 @@ public class Example {
List<String> tags = Arrays.asList(); // List<String> | Tags to filter by List<String> tags = Arrays.asList(); // List<String> | Tags to filter by
try { try {
List<Pet> result = apiInstance.findPetsByTags(tags); List<Pet> result = apiInstance.findPetsByTags(tags);
System.out.println(result); System.out.println(result);
} catch (ApiException e) { } catch (ApiException e) {
System.err.println("Exception when calling PetApi#findPetsByTags"); System.err.println("Exception when calling PetApi#findPetsByTags");
@ -300,6 +310,7 @@ Name | Type | Description | Notes
> Pet getPetById(petId) > Pet getPetById(petId)
Find pet by ID Find pet by ID
Returns a single pet Returns a single pet
@ -330,6 +341,7 @@ public class Example {
Long petId = 56L; // Long | ID of pet to return Long petId = 56L; // Long | ID of pet to return
try { try {
Pet result = apiInstance.getPetById(petId); Pet result = apiInstance.getPetById(petId);
System.out.println(result); System.out.println(result);
} catch (ApiException e) { } catch (ApiException e) {
System.err.println("Exception when calling PetApi#getPetById"); System.err.println("Exception when calling PetApi#getPetById");
@ -374,6 +386,7 @@ Name | Type | Description | Notes
> updatePet(body) > updatePet(body)
Update an existing pet Update an existing pet
### Example ### Example
@ -400,6 +413,8 @@ public class Example {
Pet body = new Pet(); // Pet | Pet object that needs to be added to the store Pet body = new Pet(); // Pet | Pet object that needs to be added to the store
try { try {
apiInstance.updatePet(body); apiInstance.updatePet(body);
} catch (ApiException e) { } catch (ApiException e) {
System.err.println("Exception when calling PetApi#updatePet"); System.err.println("Exception when calling PetApi#updatePet");
System.err.println("Status code: " + e.getCode()); System.err.println("Status code: " + e.getCode());
@ -444,6 +459,7 @@ null (empty response body)
> updatePetWithForm(petId, name, status) > updatePetWithForm(petId, name, status)
Updates a pet in the store with form data Updates a pet in the store with form data
### Example ### Example
@ -472,6 +488,8 @@ public class Example {
String status = "status_example"; // String | Updated status of the pet String status = "status_example"; // String | Updated status of the pet
try { try {
apiInstance.updatePetWithForm(petId, name, status); apiInstance.updatePetWithForm(petId, name, status);
} catch (ApiException e) { } catch (ApiException e) {
System.err.println("Exception when calling PetApi#updatePetWithForm"); System.err.println("Exception when calling PetApi#updatePetWithForm");
System.err.println("Status code: " + e.getCode()); System.err.println("Status code: " + e.getCode());
@ -515,6 +533,7 @@ null (empty response body)
> ModelApiResponse uploadFile(petId, additionalMetadata, file) > ModelApiResponse uploadFile(petId, additionalMetadata, file)
uploads an image uploads an image
### Example ### Example
@ -543,6 +562,7 @@ public class Example {
File file = new File("/path/to/file"); // File | file to upload File file = new File("/path/to/file"); // File | file to upload
try { try {
ModelApiResponse result = apiInstance.uploadFile(petId, additionalMetadata, file); ModelApiResponse result = apiInstance.uploadFile(petId, additionalMetadata, file);
System.out.println(result); System.out.println(result);
} catch (ApiException e) { } catch (ApiException e) {
System.err.println("Exception when calling PetApi#uploadFile"); System.err.println("Exception when calling PetApi#uploadFile");
@ -587,6 +607,7 @@ Name | Type | Description | Notes
> ModelApiResponse uploadFileWithRequiredFile(petId, requiredFile, additionalMetadata) > ModelApiResponse uploadFileWithRequiredFile(petId, requiredFile, additionalMetadata)
uploads an image (required) uploads an image (required)
### Example ### Example
@ -615,6 +636,7 @@ public class Example {
String additionalMetadata = "additionalMetadata_example"; // String | Additional data to pass to server String additionalMetadata = "additionalMetadata_example"; // String | Additional data to pass to server
try { try {
ModelApiResponse result = apiInstance.uploadFileWithRequiredFile(petId, requiredFile, additionalMetadata); ModelApiResponse result = apiInstance.uploadFileWithRequiredFile(petId, requiredFile, additionalMetadata);
System.out.println(result); System.out.println(result);
} catch (ApiException e) { } catch (ApiException e) {
System.err.println("Exception when calling PetApi#uploadFileWithRequiredFile"); System.err.println("Exception when calling PetApi#uploadFileWithRequiredFile");

View File

@ -15,9 +15,10 @@ Method | HTTP request | Description
> deleteOrder(orderId) > deleteOrder(orderId)
Delete purchase order by ID Delete purchase order by ID
For valid response try integer IDs with value &lt; 1000. Anything above 1000 or nonintegers will generate API errors For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors
### Example ### Example
@ -38,6 +39,8 @@ public class Example {
String orderId = "orderId_example"; // String | ID of the order that needs to be deleted String orderId = "orderId_example"; // String | ID of the order that needs to be deleted
try { try {
apiInstance.deleteOrder(orderId); apiInstance.deleteOrder(orderId);
} catch (ApiException e) { } catch (ApiException e) {
System.err.println("Exception when calling StoreApi#deleteOrder"); System.err.println("Exception when calling StoreApi#deleteOrder");
System.err.println("Status code: " + e.getCode()); System.err.println("Status code: " + e.getCode());
@ -80,6 +83,7 @@ No authorization required
> Map&lt;String, Integer&gt; getInventory() > Map&lt;String, Integer&gt; getInventory()
Returns pet inventories by status Returns pet inventories by status
Returns a map of status codes to quantities Returns a map of status codes to quantities
@ -109,6 +113,7 @@ public class Example {
StoreApi apiInstance = new StoreApi(defaultClient); StoreApi apiInstance = new StoreApi(defaultClient);
try { try {
Map<String, Integer> result = apiInstance.getInventory(); Map<String, Integer> result = apiInstance.getInventory();
System.out.println(result); System.out.println(result);
} catch (ApiException e) { } catch (ApiException e) {
System.err.println("Exception when calling StoreApi#getInventory"); System.err.println("Exception when calling StoreApi#getInventory");
@ -148,9 +153,10 @@ This endpoint does not need any parameter.
> Order getOrderById(orderId) > Order getOrderById(orderId)
Find purchase order by ID Find purchase order by ID
For valid response try integer IDs with value &lt;&#x3D; 5 or &gt; 10. Other values will generated exceptions For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions
### Example ### Example
@ -171,6 +177,7 @@ public class Example {
Long orderId = 56L; // Long | ID of pet that needs to be fetched Long orderId = 56L; // Long | ID of pet that needs to be fetched
try { try {
Order result = apiInstance.getOrderById(orderId); Order result = apiInstance.getOrderById(orderId);
System.out.println(result); System.out.println(result);
} catch (ApiException e) { } catch (ApiException e) {
System.err.println("Exception when calling StoreApi#getOrderById"); System.err.println("Exception when calling StoreApi#getOrderById");
@ -215,6 +222,7 @@ No authorization required
> Order placeOrder(body) > Order placeOrder(body)
Place an order for a pet Place an order for a pet
### Example ### Example
@ -236,6 +244,7 @@ public class Example {
Order body = new Order(); // Order | order placed for purchasing the pet Order body = new Order(); // Order | order placed for purchasing the pet
try { try {
Order result = apiInstance.placeOrder(body); Order result = apiInstance.placeOrder(body);
System.out.println(result); System.out.println(result);
} catch (ApiException e) { } catch (ApiException e) {
System.err.println("Exception when calling StoreApi#placeOrder"); System.err.println("Exception when calling StoreApi#placeOrder");

View File

@ -19,6 +19,7 @@ Method | HTTP request | Description
> createUser(body) > createUser(body)
Create user Create user
This can only be done by the logged in user. This can only be done by the logged in user.
@ -42,6 +43,8 @@ public class Example {
User body = new User(); // User | Created user object User body = new User(); // User | Created user object
try { try {
apiInstance.createUser(body); apiInstance.createUser(body);
} catch (ApiException e) { } catch (ApiException e) {
System.err.println("Exception when calling UserApi#createUser"); System.err.println("Exception when calling UserApi#createUser");
System.err.println("Status code: " + e.getCode()); System.err.println("Status code: " + e.getCode());
@ -83,6 +86,7 @@ No authorization required
> createUsersWithArrayInput(body) > createUsersWithArrayInput(body)
Creates list of users with given input array Creates list of users with given input array
### Example ### Example
@ -104,6 +108,8 @@ public class Example {
List<User> body = Arrays.asList(); // List<User> | List of user object List<User> body = Arrays.asList(); // List<User> | List of user object
try { try {
apiInstance.createUsersWithArrayInput(body); apiInstance.createUsersWithArrayInput(body);
} catch (ApiException e) { } catch (ApiException e) {
System.err.println("Exception when calling UserApi#createUsersWithArrayInput"); System.err.println("Exception when calling UserApi#createUsersWithArrayInput");
System.err.println("Status code: " + e.getCode()); System.err.println("Status code: " + e.getCode());
@ -145,6 +151,7 @@ No authorization required
> createUsersWithListInput(body) > createUsersWithListInput(body)
Creates list of users with given input array Creates list of users with given input array
### Example ### Example
@ -166,6 +173,8 @@ public class Example {
List<User> body = Arrays.asList(); // List<User> | List of user object List<User> body = Arrays.asList(); // List<User> | List of user object
try { try {
apiInstance.createUsersWithListInput(body); apiInstance.createUsersWithListInput(body);
} catch (ApiException e) { } catch (ApiException e) {
System.err.println("Exception when calling UserApi#createUsersWithListInput"); System.err.println("Exception when calling UserApi#createUsersWithListInput");
System.err.println("Status code: " + e.getCode()); System.err.println("Status code: " + e.getCode());
@ -207,6 +216,7 @@ No authorization required
> deleteUser(username) > deleteUser(username)
Delete user Delete user
This can only be done by the logged in user. This can only be done by the logged in user.
@ -230,6 +240,8 @@ public class Example {
String username = "username_example"; // String | The name that needs to be deleted String username = "username_example"; // String | The name that needs to be deleted
try { try {
apiInstance.deleteUser(username); apiInstance.deleteUser(username);
} catch (ApiException e) { } catch (ApiException e) {
System.err.println("Exception when calling UserApi#deleteUser"); System.err.println("Exception when calling UserApi#deleteUser");
System.err.println("Status code: " + e.getCode()); System.err.println("Status code: " + e.getCode());
@ -272,6 +284,7 @@ No authorization required
> User getUserByName(username) > User getUserByName(username)
Get user by user name Get user by user name
### Example ### Example
@ -293,6 +306,7 @@ public class Example {
String username = "username_example"; // String | The name that needs to be fetched. Use user1 for testing. String username = "username_example"; // String | The name that needs to be fetched. Use user1 for testing.
try { try {
User result = apiInstance.getUserByName(username); User result = apiInstance.getUserByName(username);
System.out.println(result); System.out.println(result);
} catch (ApiException e) { } catch (ApiException e) {
System.err.println("Exception when calling UserApi#getUserByName"); System.err.println("Exception when calling UserApi#getUserByName");
@ -337,6 +351,7 @@ No authorization required
> String loginUser(username, password) > String loginUser(username, password)
Logs user into the system Logs user into the system
### Example ### Example
@ -359,6 +374,7 @@ public class Example {
String password = "password_example"; // String | The password for login in clear text String password = "password_example"; // String | The password for login in clear text
try { try {
String result = apiInstance.loginUser(username, password); String result = apiInstance.loginUser(username, password);
System.out.println(result); System.out.println(result);
} catch (ApiException e) { } catch (ApiException e) {
System.err.println("Exception when calling UserApi#loginUser"); System.err.println("Exception when calling UserApi#loginUser");
@ -403,6 +419,7 @@ No authorization required
> logoutUser() > logoutUser()
Logs out current logged in user session Logs out current logged in user session
### Example ### Example
@ -423,6 +440,8 @@ public class Example {
UserApi apiInstance = new UserApi(defaultClient); UserApi apiInstance = new UserApi(defaultClient);
try { try {
apiInstance.logoutUser(); apiInstance.logoutUser();
} catch (ApiException e) { } catch (ApiException e) {
System.err.println("Exception when calling UserApi#logoutUser"); System.err.println("Exception when calling UserApi#logoutUser");
System.err.println("Status code: " + e.getCode()); System.err.println("Status code: " + e.getCode());
@ -461,6 +480,7 @@ No authorization required
> updateUser(username, body) > updateUser(username, body)
Updated user Updated user
This can only be done by the logged in user. This can only be done by the logged in user.
@ -485,6 +505,8 @@ public class Example {
User body = new User(); // User | Updated user object User body = new User(); // User | Updated user object
try { try {
apiInstance.updateUser(username, body); apiInstance.updateUser(username, body);
} catch (ApiException e) { } catch (ApiException e) {
System.err.println("Exception when calling UserApi#updateUser"); System.err.println("Exception when calling UserApi#updateUser");
System.err.println("Status code: " + e.getCode()); System.err.println("Status code: " + e.getCode());

View File

@ -34,7 +34,6 @@ public class AnotherFakeApi {
public void setApiClient(ApiClient apiClient) { public void setApiClient(ApiClient apiClient) {
this.apiClient = apiClient; this.apiClient = apiClient;
} }
/** /**
* To test special tags * To test special tags
* To test special tags and operation ID starting with number * To test special tags and operation ID starting with number

View File

@ -42,7 +42,6 @@ public class FakeApi {
public void setApiClient(ApiClient apiClient) { public void setApiClient(ApiClient apiClient) {
this.apiClient = apiClient; this.apiClient = apiClient;
} }
/** /**
* creates an XmlItem * creates an XmlItem
* this route creates an XmlItem * this route creates an XmlItem
@ -55,7 +54,6 @@ public class FakeApi {
</table> </table>
*/ */
public void createXmlItem(XmlItem xmlItem) throws ApiException { public void createXmlItem(XmlItem xmlItem) throws ApiException {
createXmlItemWithHttpInfo(xmlItem); createXmlItemWithHttpInfo(xmlItem);
} }
@ -355,7 +353,6 @@ public class FakeApi {
</table> </table>
*/ */
public void testBodyWithFileSchema(FileSchemaTestClass body) throws ApiException { public void testBodyWithFileSchema(FileSchemaTestClass body) throws ApiException {
testBodyWithFileSchemaWithHttpInfo(body); testBodyWithFileSchemaWithHttpInfo(body);
} }
@ -420,7 +417,6 @@ public class FakeApi {
</table> </table>
*/ */
public void testBodyWithQueryParams(String query, User body) throws ApiException { public void testBodyWithQueryParams(String query, User body) throws ApiException {
testBodyWithQueryParamsWithHttpInfo(query, body); testBodyWithQueryParamsWithHttpInfo(query, body);
} }
@ -569,7 +565,6 @@ public class FakeApi {
</table> </table>
*/ */
public void testEndpointParameters(BigDecimal number, Double _double, String patternWithoutDelimiter, byte[] _byte, Integer integer, Integer int32, Long int64, Float _float, String string, File binary, LocalDate date, OffsetDateTime dateTime, String password, String paramCallback) throws ApiException { public void testEndpointParameters(BigDecimal number, Double _double, String patternWithoutDelimiter, byte[] _byte, Integer integer, Integer int32, Long int64, Float _float, String string, File binary, LocalDate date, OffsetDateTime dateTime, String password, String paramCallback) throws ApiException {
testEndpointParametersWithHttpInfo(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, string, binary, date, dateTime, password, paramCallback); testEndpointParametersWithHttpInfo(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, string, binary, date, dateTime, password, paramCallback);
} }
@ -698,7 +693,6 @@ if (paramCallback != null)
</table> </table>
*/ */
public void testEnumParameters(List<String> enumHeaderStringArray, String enumHeaderString, List<String> enumQueryStringArray, String enumQueryString, Integer enumQueryInteger, Double enumQueryDouble, List<String> enumFormStringArray, String enumFormString) throws ApiException { public void testEnumParameters(List<String> enumHeaderStringArray, String enumHeaderString, List<String> enumQueryStringArray, String enumQueryString, Integer enumQueryInteger, Double enumQueryDouble, List<String> enumFormStringArray, String enumFormString) throws ApiException {
testEnumParametersWithHttpInfo(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumFormStringArray, enumFormString); testEnumParametersWithHttpInfo(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumFormStringArray, enumFormString);
} }
@ -765,45 +759,8 @@ if (enumFormString != null)
return apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null); return apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null);
} }
/**
* Fake endpoint to test group parameters (optional)
* Fake endpoint to test group parameters (optional)
* @param requiredStringGroup Required String in group parameters (required)
* @param requiredBooleanGroup Required Boolean in group parameters (required)
* @param requiredInt64Group Required Integer in group parameters (required)
* @param stringGroup String in group parameters (optional)
* @param booleanGroup Boolean in group parameters (optional)
* @param int64Group Integer in group parameters (optional)
* @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> 400 </td><td> Someting wrong </td><td> - </td></tr>
</table>
*/
public void testGroupParameters(Integer requiredStringGroup, Boolean requiredBooleanGroup, Long requiredInt64Group, Integer stringGroup, Boolean booleanGroup, Long int64Group) throws ApiException {
testGroupParametersWithHttpInfo(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group); private ApiResponse<Void> testGroupParametersWithHttpInfo(Integer requiredStringGroup, Boolean requiredBooleanGroup, Long requiredInt64Group, Integer stringGroup, Boolean booleanGroup, Long int64Group) throws ApiException {
}
/**
* Fake endpoint to test group parameters (optional)
* Fake endpoint to test group parameters (optional)
* @param requiredStringGroup Required String in group parameters (required)
* @param requiredBooleanGroup Required Boolean in group parameters (required)
* @param requiredInt64Group Required Integer in group parameters (required)
* @param stringGroup String in group parameters (optional)
* @param booleanGroup Boolean in group parameters (optional)
* @param int64Group Integer in group parameters (optional)
* @return ApiResponse&lt;Void&gt;
* @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> 400 </td><td> Someting wrong </td><td> - </td></tr>
</table>
*/
public ApiResponse<Void> testGroupParametersWithHttpInfo(Integer requiredStringGroup, Boolean requiredBooleanGroup, Long requiredInt64Group, Integer stringGroup, Boolean booleanGroup, Long int64Group) throws ApiException {
Object localVarPostBody = null; Object localVarPostBody = null;
// verify the required parameter 'requiredStringGroup' is set // verify the required parameter 'requiredStringGroup' is set
@ -857,6 +814,130 @@ if (booleanGroup != null)
return apiClient.invokeAPI(localVarPath, "DELETE", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null); return apiClient.invokeAPI(localVarPath, "DELETE", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null);
} }
public class APItestGroupParametersRequest {
private Integer requiredStringGroup;
private Boolean requiredBooleanGroup;
private Long requiredInt64Group;
private Integer stringGroup;
private Boolean booleanGroup;
private Long int64Group;
private APItestGroupParametersRequest() {
}
/**
* Set requiredStringGroup
* @param requiredStringGroup Required String in group parameters (required)
* @return APItestGroupParametersRequest
*/
public APItestGroupParametersRequest requiredStringGroup(Integer requiredStringGroup) {
this.requiredStringGroup = requiredStringGroup;
return this;
}
/**
* Set requiredBooleanGroup
* @param requiredBooleanGroup Required Boolean in group parameters (required)
* @return APItestGroupParametersRequest
*/
public APItestGroupParametersRequest requiredBooleanGroup(Boolean requiredBooleanGroup) {
this.requiredBooleanGroup = requiredBooleanGroup;
return this;
}
/**
* Set requiredInt64Group
* @param requiredInt64Group Required Integer in group parameters (required)
* @return APItestGroupParametersRequest
*/
public APItestGroupParametersRequest requiredInt64Group(Long requiredInt64Group) {
this.requiredInt64Group = requiredInt64Group;
return this;
}
/**
* Set stringGroup
* @param stringGroup String in group parameters (optional)
* @return APItestGroupParametersRequest
*/
public APItestGroupParametersRequest stringGroup(Integer stringGroup) {
this.stringGroup = stringGroup;
return this;
}
/**
* Set booleanGroup
* @param booleanGroup Boolean in group parameters (optional)
* @return APItestGroupParametersRequest
*/
public APItestGroupParametersRequest booleanGroup(Boolean booleanGroup) {
this.booleanGroup = booleanGroup;
return this;
}
/**
* Set int64Group
* @param int64Group Integer in group parameters (optional)
* @return APItestGroupParametersRequest
*/
public APItestGroupParametersRequest int64Group(Long int64Group) {
this.int64Group = int64Group;
return this;
}
/**
* Execute testGroupParameters request
* @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> 400 </td><td> Someting wrong </td><td> - </td></tr>
</table>
*/
public void execute() throws ApiException {
this.executeWithHttpInfo().getData();
}
/**
* Execute testGroupParameters request with HTTP info returned
* @return ApiResponse&lt;Void&gt;
* @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> 400 </td><td> Someting wrong </td><td> - </td></tr>
</table>
*/
public ApiResponse<Void> executeWithHttpInfo() throws ApiException {
return testGroupParametersWithHttpInfo(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group);
}
}
/**
* Fake endpoint to test group parameters (optional)
* Fake endpoint to test group parameters (optional)
* @return testGroupParametersRequest
* @throws ApiException if fails to make API call
*/
public APItestGroupParametersRequest testGroupParameters() throws ApiException {
return new APItestGroupParametersRequest();
}
/** /**
* test inline additionalProperties * test inline additionalProperties
* *
@ -869,7 +950,6 @@ if (booleanGroup != null)
</table> </table>
*/ */
public void testInlineAdditionalProperties(Map<String, String> param) throws ApiException { public void testInlineAdditionalProperties(Map<String, String> param) throws ApiException {
testInlineAdditionalPropertiesWithHttpInfo(param); testInlineAdditionalPropertiesWithHttpInfo(param);
} }
@ -934,7 +1014,6 @@ if (booleanGroup != null)
</table> </table>
*/ */
public void testJsonFormData(String param, String param2) throws ApiException { public void testJsonFormData(String param, String param2) throws ApiException {
testJsonFormDataWithHttpInfo(param, param2); testJsonFormDataWithHttpInfo(param, param2);
} }
@ -1012,7 +1091,6 @@ if (param2 != null)
</table> </table>
*/ */
public void testQueryParameterCollectionFormat(List<String> pipe, List<String> ioutil, List<String> http, List<String> url, List<String> context) throws ApiException { 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); testQueryParameterCollectionFormatWithHttpInfo(pipe, ioutil, http, url, context);
} }

View File

@ -34,7 +34,6 @@ public class FakeClassnameTags123Api {
public void setApiClient(ApiClient apiClient) { public void setApiClient(ApiClient apiClient) {
this.apiClient = apiClient; this.apiClient = apiClient;
} }
/** /**
* To test class name in snake case * To test class name in snake case
* To test class name in snake case * To test class name in snake case

View File

@ -36,7 +36,6 @@ public class PetApi {
public void setApiClient(ApiClient apiClient) { public void setApiClient(ApiClient apiClient) {
this.apiClient = apiClient; this.apiClient = apiClient;
} }
/** /**
* Add a new pet to the store * Add a new pet to the store
* *
@ -50,7 +49,6 @@ public class PetApi {
</table> </table>
*/ */
public void addPet(Pet body) throws ApiException { public void addPet(Pet body) throws ApiException {
addPetWithHttpInfo(body); addPetWithHttpInfo(body);
} }
@ -117,7 +115,6 @@ public class PetApi {
</table> </table>
*/ */
public void deletePet(Long petId, String apiKey) throws ApiException { public void deletePet(Long petId, String apiKey) throws ApiException {
deletePetWithHttpInfo(petId, apiKey); deletePetWithHttpInfo(petId, apiKey);
} }
@ -396,7 +393,6 @@ public class PetApi {
</table> </table>
*/ */
public void updatePet(Pet body) throws ApiException { public void updatePet(Pet body) throws ApiException {
updatePetWithHttpInfo(body); updatePetWithHttpInfo(body);
} }
@ -465,7 +461,6 @@ public class PetApi {
</table> </table>
*/ */
public void updatePetWithForm(Long petId, String name, String status) throws ApiException { public void updatePetWithForm(Long petId, String name, String status) throws ApiException {
updatePetWithFormWithHttpInfo(petId, name, status); updatePetWithFormWithHttpInfo(petId, name, status);
} }

View File

@ -34,7 +34,6 @@ public class StoreApi {
public void setApiClient(ApiClient apiClient) { public void setApiClient(ApiClient apiClient) {
this.apiClient = apiClient; this.apiClient = apiClient;
} }
/** /**
* Delete purchase order by ID * Delete purchase order by ID
* For valid response try integer IDs with value &lt; 1000. Anything above 1000 or nonintegers will generate API errors * For valid response try integer IDs with value &lt; 1000. Anything above 1000 or nonintegers will generate API errors
@ -48,7 +47,6 @@ public class StoreApi {
</table> </table>
*/ */
public void deleteOrder(String orderId) throws ApiException { public void deleteOrder(String orderId) throws ApiException {
deleteOrderWithHttpInfo(orderId); deleteOrderWithHttpInfo(orderId);
} }

View File

@ -34,7 +34,6 @@ public class UserApi {
public void setApiClient(ApiClient apiClient) { public void setApiClient(ApiClient apiClient) {
this.apiClient = apiClient; this.apiClient = apiClient;
} }
/** /**
* Create user * Create user
* This can only be done by the logged in user. * This can only be done by the logged in user.
@ -47,7 +46,6 @@ public class UserApi {
</table> </table>
*/ */
public void createUser(User body) throws ApiException { public void createUser(User body) throws ApiException {
createUserWithHttpInfo(body); createUserWithHttpInfo(body);
} }
@ -111,7 +109,6 @@ public class UserApi {
</table> </table>
*/ */
public void createUsersWithArrayInput(List<User> body) throws ApiException { public void createUsersWithArrayInput(List<User> body) throws ApiException {
createUsersWithArrayInputWithHttpInfo(body); createUsersWithArrayInputWithHttpInfo(body);
} }
@ -175,7 +172,6 @@ public class UserApi {
</table> </table>
*/ */
public void createUsersWithListInput(List<User> body) throws ApiException { public void createUsersWithListInput(List<User> body) throws ApiException {
createUsersWithListInputWithHttpInfo(body); createUsersWithListInputWithHttpInfo(body);
} }
@ -240,7 +236,6 @@ public class UserApi {
</table> </table>
*/ */
public void deleteUser(String username) throws ApiException { public void deleteUser(String username) throws ApiException {
deleteUserWithHttpInfo(username); deleteUserWithHttpInfo(username);
} }
@ -449,7 +444,6 @@ public class UserApi {
</table> </table>
*/ */
public void logoutUser() throws ApiException { public void logoutUser() throws ApiException {
logoutUserWithHttpInfo(); logoutUserWithHttpInfo();
} }
@ -509,7 +503,6 @@ public class UserApi {
</table> </table>
*/ */
public void updateUser(String username, User body) throws ApiException { public void updateUser(String username, User body) throws ApiException {
updateUserWithHttpInfo(username, body); updateUserWithHttpInfo(username, body);
} }

View File

@ -2,7 +2,7 @@
* OpenAPI Petstore * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *
* OpenAPI spec version: 1.0.0 * The version of the OpenAPI document: 1.0.0
* *
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@ -42,9 +42,8 @@ public class AnotherFakeApiTest {
*/ */
@Test @Test
public void call123testSpecialTagsTest() throws ApiException { public void call123testSpecialTagsTest() throws ApiException {
Client client = null; Client body = null;
Client response = api.call123testSpecialTags(client); Client response = api.call123testSpecialTags(body);
// TODO: test validations // TODO: test validations
} }

View File

@ -2,7 +2,7 @@
* OpenAPI Petstore * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *
* OpenAPI spec version: 1.0.0 * The version of the OpenAPI document: 1.0.0
* *
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@ -22,6 +22,7 @@ import org.threeten.bp.LocalDate;
import org.threeten.bp.OffsetDateTime; import org.threeten.bp.OffsetDateTime;
import org.openapitools.client.model.OuterComposite; import org.openapitools.client.model.OuterComposite;
import org.openapitools.client.model.User; import org.openapitools.client.model.User;
import org.openapitools.client.model.XmlItem;
import org.junit.Test; import org.junit.Test;
import org.junit.Ignore; import org.junit.Ignore;
@ -39,6 +40,21 @@ public class FakeApiTest {
private final FakeApi api = new FakeApi(); private final FakeApi api = new FakeApi();
/**
* creates an XmlItem
*
* this route creates an XmlItem
*
* @throws ApiException
* if the Api call fails
*/
@Test
public void createXmlItemTest() throws ApiException {
XmlItem xmlItem = null;
api.createXmlItem(xmlItem);
// TODO: test validations
}
/** /**
* *
* *
@ -51,7 +67,6 @@ public class FakeApiTest {
public void fakeOuterBooleanSerializeTest() throws ApiException { public void fakeOuterBooleanSerializeTest() throws ApiException {
Boolean body = null; Boolean body = null;
Boolean response = api.fakeOuterBooleanSerialize(body); Boolean response = api.fakeOuterBooleanSerialize(body);
// TODO: test validations // TODO: test validations
} }
@ -65,9 +80,8 @@ public class FakeApiTest {
*/ */
@Test @Test
public void fakeOuterCompositeSerializeTest() throws ApiException { public void fakeOuterCompositeSerializeTest() throws ApiException {
OuterComposite outerComposite = null; OuterComposite body = null;
OuterComposite response = api.fakeOuterCompositeSerialize(outerComposite); OuterComposite response = api.fakeOuterCompositeSerialize(body);
// TODO: test validations // TODO: test validations
} }
@ -83,7 +97,6 @@ public class FakeApiTest {
public void fakeOuterNumberSerializeTest() throws ApiException { public void fakeOuterNumberSerializeTest() throws ApiException {
BigDecimal body = null; BigDecimal body = null;
BigDecimal response = api.fakeOuterNumberSerialize(body); BigDecimal response = api.fakeOuterNumberSerialize(body);
// TODO: test validations // TODO: test validations
} }
@ -99,7 +112,6 @@ public class FakeApiTest {
public void fakeOuterStringSerializeTest() throws ApiException { public void fakeOuterStringSerializeTest() throws ApiException {
String body = null; String body = null;
String response = api.fakeOuterStringSerialize(body); String response = api.fakeOuterStringSerialize(body);
// TODO: test validations // TODO: test validations
} }
@ -113,9 +125,8 @@ public class FakeApiTest {
*/ */
@Test @Test
public void testBodyWithFileSchemaTest() throws ApiException { public void testBodyWithFileSchemaTest() throws ApiException {
FileSchemaTestClass fileSchemaTestClass = null; FileSchemaTestClass body = null;
api.testBodyWithFileSchema(fileSchemaTestClass); api.testBodyWithFileSchema(body);
// TODO: test validations // TODO: test validations
} }
@ -130,9 +141,8 @@ public class FakeApiTest {
@Test @Test
public void testBodyWithQueryParamsTest() throws ApiException { public void testBodyWithQueryParamsTest() throws ApiException {
String query = null; String query = null;
User user = null; User body = null;
api.testBodyWithQueryParams(query, user); api.testBodyWithQueryParams(query, body);
// TODO: test validations // TODO: test validations
} }
@ -146,9 +156,8 @@ public class FakeApiTest {
*/ */
@Test @Test
public void testClientModelTest() throws ApiException { public void testClientModelTest() throws ApiException {
Client client = null; Client body = null;
Client response = api.testClientModel(client); Client response = api.testClientModel(body);
// TODO: test validations // TODO: test validations
} }
@ -177,7 +186,6 @@ public class FakeApiTest {
String password = null; String password = null;
String paramCallback = null; String paramCallback = null;
api.testEndpointParameters(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, string, binary, date, dateTime, password, paramCallback); api.testEndpointParameters(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, string, binary, date, dateTime, password, paramCallback);
// TODO: test validations // TODO: test validations
} }
@ -200,7 +208,6 @@ public class FakeApiTest {
List<String> enumFormStringArray = null; List<String> enumFormStringArray = null;
String enumFormString = null; String enumFormString = null;
api.testEnumParameters(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumFormStringArray, enumFormString); api.testEnumParameters(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumFormStringArray, enumFormString);
// TODO: test validations // TODO: test validations
} }
@ -220,8 +227,14 @@ public class FakeApiTest {
Integer stringGroup = null; Integer stringGroup = null;
Boolean booleanGroup = null; Boolean booleanGroup = null;
Long int64Group = null; Long int64Group = null;
api.testGroupParameters(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group); api.testGroupParameters()
.requiredStringGroup(requiredStringGroup)
.requiredBooleanGroup(requiredBooleanGroup)
.requiredInt64Group(requiredInt64Group)
.stringGroup(stringGroup)
.booleanGroup(booleanGroup)
.int64Group(int64Group)
.execute();
// TODO: test validations // TODO: test validations
} }
@ -235,9 +248,8 @@ public class FakeApiTest {
*/ */
@Test @Test
public void testInlineAdditionalPropertiesTest() throws ApiException { public void testInlineAdditionalPropertiesTest() throws ApiException {
Map<String, String> requestBody = null; Map<String, String> param = null;
api.testInlineAdditionalProperties(requestBody); api.testInlineAdditionalProperties(param);
// TODO: test validations // TODO: test validations
} }
@ -254,7 +266,25 @@ public class FakeApiTest {
String param = null; String param = null;
String param2 = null; String param2 = null;
api.testJsonFormData(param, param2); api.testJsonFormData(param, param2);
// TODO: test validations
}
/**
*
*
* To test the collection format in query parameters
*
* @throws ApiException
* if the Api call fails
*/
@Test
public void testQueryParameterCollectionFormatTest() throws ApiException {
List<String> pipe = null;
List<String> ioutil = null;
List<String> http = null;
List<String> url = null;
List<String> context = null;
api.testQueryParameterCollectionFormat(pipe, ioutil, http, url, context);
// TODO: test validations // TODO: test validations
} }

View File

@ -2,7 +2,7 @@
* OpenAPI Petstore * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *
* OpenAPI spec version: 1.0.0 * The version of the OpenAPI document: 1.0.0
* *
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@ -42,9 +42,8 @@ public class FakeClassnameTags123ApiTest {
*/ */
@Test @Test
public void testClassnameTest() throws ApiException { public void testClassnameTest() throws ApiException {
Client client = null; Client body = null;
Client response = api.testClassname(client); Client response = api.testClassname(body);
// TODO: test validations // TODO: test validations
} }

View File

@ -2,7 +2,7 @@
* OpenAPI Petstore * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *
* OpenAPI spec version: 1.0.0 * The version of the OpenAPI document: 1.0.0
* *
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@ -44,9 +44,8 @@ public class PetApiTest {
*/ */
@Test @Test
public void addPetTest() throws ApiException { public void addPetTest() throws ApiException {
Pet pet = null; Pet body = null;
api.addPet(pet); api.addPet(body);
// TODO: test validations // TODO: test validations
} }
@ -63,7 +62,6 @@ public class PetApiTest {
Long petId = null; Long petId = null;
String apiKey = null; String apiKey = null;
api.deletePet(petId, apiKey); api.deletePet(petId, apiKey);
// TODO: test validations // TODO: test validations
} }
@ -79,7 +77,6 @@ public class PetApiTest {
public void findPetsByStatusTest() throws ApiException { public void findPetsByStatusTest() throws ApiException {
List<String> status = null; List<String> status = null;
List<Pet> response = api.findPetsByStatus(status); List<Pet> response = api.findPetsByStatus(status);
// TODO: test validations // TODO: test validations
} }
@ -95,7 +92,6 @@ public class PetApiTest {
public void findPetsByTagsTest() throws ApiException { public void findPetsByTagsTest() throws ApiException {
List<String> tags = null; List<String> tags = null;
List<Pet> response = api.findPetsByTags(tags); List<Pet> response = api.findPetsByTags(tags);
// TODO: test validations // TODO: test validations
} }
@ -111,7 +107,6 @@ public class PetApiTest {
public void getPetByIdTest() throws ApiException { public void getPetByIdTest() throws ApiException {
Long petId = null; Long petId = null;
Pet response = api.getPetById(petId); Pet response = api.getPetById(petId);
// TODO: test validations // TODO: test validations
} }
@ -125,9 +120,8 @@ public class PetApiTest {
*/ */
@Test @Test
public void updatePetTest() throws ApiException { public void updatePetTest() throws ApiException {
Pet pet = null; Pet body = null;
api.updatePet(pet); api.updatePet(body);
// TODO: test validations // TODO: test validations
} }
@ -145,7 +139,6 @@ public class PetApiTest {
String name = null; String name = null;
String status = null; String status = null;
api.updatePetWithForm(petId, name, status); api.updatePetWithForm(petId, name, status);
// TODO: test validations // TODO: test validations
} }
@ -163,7 +156,23 @@ public class PetApiTest {
String additionalMetadata = null; String additionalMetadata = null;
File file = null; File file = null;
ModelApiResponse response = api.uploadFile(petId, additionalMetadata, file); ModelApiResponse response = api.uploadFile(petId, additionalMetadata, file);
// TODO: test validations
}
/**
* uploads an image (required)
*
*
*
* @throws ApiException
* if the Api call fails
*/
@Test
public void uploadFileWithRequiredFileTest() throws ApiException {
Long petId = null;
File requiredFile = null;
String additionalMetadata = null;
ModelApiResponse response = api.uploadFileWithRequiredFile(petId, requiredFile, additionalMetadata);
// TODO: test validations // TODO: test validations
} }

View File

@ -2,7 +2,7 @@
* OpenAPI Petstore * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *
* OpenAPI spec version: 1.0.0 * The version of the OpenAPI document: 1.0.0
* *
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@ -44,7 +44,6 @@ public class StoreApiTest {
public void deleteOrderTest() throws ApiException { public void deleteOrderTest() throws ApiException {
String orderId = null; String orderId = null;
api.deleteOrder(orderId); api.deleteOrder(orderId);
// TODO: test validations // TODO: test validations
} }
@ -59,7 +58,6 @@ public class StoreApiTest {
@Test @Test
public void getInventoryTest() throws ApiException { public void getInventoryTest() throws ApiException {
Map<String, Integer> response = api.getInventory(); Map<String, Integer> response = api.getInventory();
// TODO: test validations // TODO: test validations
} }
@ -75,7 +73,6 @@ public class StoreApiTest {
public void getOrderByIdTest() throws ApiException { public void getOrderByIdTest() throws ApiException {
Long orderId = null; Long orderId = null;
Order response = api.getOrderById(orderId); Order response = api.getOrderById(orderId);
// TODO: test validations // TODO: test validations
} }
@ -89,9 +86,8 @@ public class StoreApiTest {
*/ */
@Test @Test
public void placeOrderTest() throws ApiException { public void placeOrderTest() throws ApiException {
Order order = null; Order body = null;
Order response = api.placeOrder(order); Order response = api.placeOrder(body);
// TODO: test validations // TODO: test validations
} }

View File

@ -2,7 +2,7 @@
* OpenAPI Petstore * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *
* OpenAPI spec version: 1.0.0 * The version of the OpenAPI document: 1.0.0
* *
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@ -42,9 +42,8 @@ public class UserApiTest {
*/ */
@Test @Test
public void createUserTest() throws ApiException { public void createUserTest() throws ApiException {
User user = null; User body = null;
api.createUser(user); api.createUser(body);
// TODO: test validations // TODO: test validations
} }
@ -58,9 +57,8 @@ public class UserApiTest {
*/ */
@Test @Test
public void createUsersWithArrayInputTest() throws ApiException { public void createUsersWithArrayInputTest() throws ApiException {
List<User> user = null; List<User> body = null;
api.createUsersWithArrayInput(user); api.createUsersWithArrayInput(body);
// TODO: test validations // TODO: test validations
} }
@ -74,9 +72,8 @@ public class UserApiTest {
*/ */
@Test @Test
public void createUsersWithListInputTest() throws ApiException { public void createUsersWithListInputTest() throws ApiException {
List<User> user = null; List<User> body = null;
api.createUsersWithListInput(user); api.createUsersWithListInput(body);
// TODO: test validations // TODO: test validations
} }
@ -92,7 +89,6 @@ public class UserApiTest {
public void deleteUserTest() throws ApiException { public void deleteUserTest() throws ApiException {
String username = null; String username = null;
api.deleteUser(username); api.deleteUser(username);
// TODO: test validations // TODO: test validations
} }
@ -108,7 +104,6 @@ public class UserApiTest {
public void getUserByNameTest() throws ApiException { public void getUserByNameTest() throws ApiException {
String username = null; String username = null;
User response = api.getUserByName(username); User response = api.getUserByName(username);
// TODO: test validations // TODO: test validations
} }
@ -125,7 +120,6 @@ public class UserApiTest {
String username = null; String username = null;
String password = null; String password = null;
String response = api.loginUser(username, password); String response = api.loginUser(username, password);
// TODO: test validations // TODO: test validations
} }
@ -140,7 +134,6 @@ public class UserApiTest {
@Test @Test
public void logoutUserTest() throws ApiException { public void logoutUserTest() throws ApiException {
api.logoutUser(); api.logoutUser();
// TODO: test validations // TODO: test validations
} }
@ -155,9 +148,8 @@ public class UserApiTest {
@Test @Test
public void updateUserTest() throws ApiException { public void updateUserTest() throws ApiException {
String username = null; String username = null;
User user = null; User body = null;
api.updateUser(username, user); api.updateUser(username, body);
// TODO: test validations // TODO: test validations
} }

View File

@ -2,7 +2,7 @@
* OpenAPI Petstore * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *
* OpenAPI spec version: 1.0.0 * The version of the OpenAPI document: 1.0.0
* *
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@ -13,6 +13,7 @@
package org.openapitools.client.model; package org.openapitools.client.model;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.annotation.JsonValue;

View File

@ -2,7 +2,7 @@
* OpenAPI Petstore * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *
* OpenAPI spec version: 1.0.0 * The version of the OpenAPI document: 1.0.0
* *
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@ -13,6 +13,7 @@
package org.openapitools.client.model; package org.openapitools.client.model;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.annotation.JsonValue;

View File

@ -2,7 +2,7 @@
* OpenAPI Petstore * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *
* OpenAPI spec version: 1.0.0 * The version of the OpenAPI document: 1.0.0
* *
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@ -13,6 +13,7 @@
package org.openapitools.client.model; package org.openapitools.client.model;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.annotation.JsonValue;

View File

@ -2,7 +2,7 @@
* OpenAPI Petstore * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *
* OpenAPI spec version: 1.0.0 * The version of the OpenAPI document: 1.0.0
* *
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@ -13,11 +13,13 @@
package org.openapitools.client.model; package org.openapitools.client.model;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import java.math.BigDecimal;
import java.util.HashMap; import java.util.HashMap;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
@ -41,19 +43,91 @@ public class AdditionalPropertiesClassTest {
} }
/** /**
* Test the property 'mapProperty' * Test the property 'mapString'
*/ */
@Test @Test
public void mapPropertyTest() { public void mapStringTest() {
// TODO: test mapProperty // TODO: test mapString
} }
/** /**
* Test the property 'mapOfMapProperty' * Test the property 'mapNumber'
*/ */
@Test @Test
public void mapOfMapPropertyTest() { public void mapNumberTest() {
// TODO: test mapOfMapProperty // TODO: test mapNumber
}
/**
* Test the property 'mapInteger'
*/
@Test
public void mapIntegerTest() {
// TODO: test mapInteger
}
/**
* Test the property 'mapBoolean'
*/
@Test
public void mapBooleanTest() {
// TODO: test mapBoolean
}
/**
* Test the property 'mapArrayInteger'
*/
@Test
public void mapArrayIntegerTest() {
// TODO: test mapArrayInteger
}
/**
* Test the property 'mapArrayAnytype'
*/
@Test
public void mapArrayAnytypeTest() {
// TODO: test mapArrayAnytype
}
/**
* Test the property 'mapMapString'
*/
@Test
public void mapMapStringTest() {
// TODO: test mapMapString
}
/**
* Test the property 'mapMapAnytype'
*/
@Test
public void mapMapAnytypeTest() {
// TODO: test mapMapAnytype
}
/**
* Test the property 'anytype1'
*/
@Test
public void anytype1Test() {
// TODO: test anytype1
}
/**
* Test the property 'anytype2'
*/
@Test
public void anytype2Test() {
// TODO: test anytype2
}
/**
* Test the property 'anytype3'
*/
@Test
public void anytype3Test() {
// TODO: test anytype3
} }
} }

View File

@ -2,7 +2,7 @@
* OpenAPI Petstore * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *
* OpenAPI spec version: 1.0.0 * The version of the OpenAPI document: 1.0.0
* *
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@ -13,6 +13,7 @@
package org.openapitools.client.model; package org.openapitools.client.model;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.annotation.JsonValue;

Some files were not shown because too many files have changed in this diff Show More