forked from loafle/openapi-generator-original
Use Rx2 Completalbe for Void Retrofit2 responses
This commit is contained in:
parent
7cc738aa7c
commit
642c0566de
@ -127,7 +127,7 @@ public class JavaClientCodegen extends AbstractJavaCodegen
|
|||||||
this.setUsePlayWS(Boolean.valueOf(additionalProperties.get(USE_PLAY_WS).toString()));
|
this.setUsePlayWS(Boolean.valueOf(additionalProperties.get(USE_PLAY_WS).toString()));
|
||||||
}
|
}
|
||||||
additionalProperties.put(USE_PLAY_WS, usePlayWS);
|
additionalProperties.put(USE_PLAY_WS, usePlayWS);
|
||||||
|
|
||||||
if (additionalProperties.containsKey(PLAY_VERSION)) {
|
if (additionalProperties.containsKey(PLAY_VERSION)) {
|
||||||
this.setPlayVersion(additionalProperties.get(PLAY_VERSION).toString());
|
this.setPlayVersion(additionalProperties.get(PLAY_VERSION).toString());
|
||||||
}
|
}
|
||||||
@ -251,7 +251,7 @@ public class JavaClientCodegen extends AbstractJavaCodegen
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (usePlayWS) {
|
if (usePlayWS) {
|
||||||
// remove unsupported auth
|
// remove unsupported auth
|
||||||
Iterator<SupportingFile> iter = supportingFiles.iterator();
|
Iterator<SupportingFile> iter = supportingFiles.iterator();
|
||||||
while (iter.hasNext()) {
|
while (iter.hasNext()) {
|
||||||
SupportingFile sf = iter.next();
|
SupportingFile sf = iter.next();
|
||||||
@ -261,11 +261,11 @@ public class JavaClientCodegen extends AbstractJavaCodegen
|
|||||||
}
|
}
|
||||||
|
|
||||||
apiTemplateFiles.remove("api.mustache");
|
apiTemplateFiles.remove("api.mustache");
|
||||||
|
|
||||||
if (PLAY_24.equals(playVersion)) {
|
if (PLAY_24.equals(playVersion)) {
|
||||||
additionalProperties.put(PLAY_24, true);
|
additionalProperties.put(PLAY_24, true);
|
||||||
apiTemplateFiles.put("play24/api.mustache", ".java");
|
apiTemplateFiles.put("play24/api.mustache", ".java");
|
||||||
|
|
||||||
supportingFiles.add(new SupportingFile("play24/ApiClient.mustache", invokerFolder, "ApiClient.java"));
|
supportingFiles.add(new SupportingFile("play24/ApiClient.mustache", invokerFolder, "ApiClient.java"));
|
||||||
supportingFiles.add(new SupportingFile("play24/Play24CallFactory.mustache", invokerFolder, "Play24CallFactory.java"));
|
supportingFiles.add(new SupportingFile("play24/Play24CallFactory.mustache", invokerFolder, "Play24CallFactory.java"));
|
||||||
supportingFiles.add(new SupportingFile("play24/Play24CallAdapterFactory.mustache", invokerFolder,
|
supportingFiles.add(new SupportingFile("play24/Play24CallAdapterFactory.mustache", invokerFolder,
|
||||||
@ -273,7 +273,7 @@ public class JavaClientCodegen extends AbstractJavaCodegen
|
|||||||
} else {
|
} else {
|
||||||
additionalProperties.put(PLAY_25, true);
|
additionalProperties.put(PLAY_25, true);
|
||||||
apiTemplateFiles.put("play25/api.mustache", ".java");
|
apiTemplateFiles.put("play25/api.mustache", ".java");
|
||||||
|
|
||||||
supportingFiles.add(new SupportingFile("play25/ApiClient.mustache", invokerFolder, "ApiClient.java"));
|
supportingFiles.add(new SupportingFile("play25/ApiClient.mustache", invokerFolder, "ApiClient.java"));
|
||||||
supportingFiles.add(new SupportingFile("play25/Play25CallFactory.mustache", invokerFolder, "Play25CallFactory.java"));
|
supportingFiles.add(new SupportingFile("play25/Play25CallFactory.mustache", invokerFolder, "Play25CallFactory.java"));
|
||||||
supportingFiles.add(new SupportingFile("play25/Play25CallAdapterFactory.mustache", invokerFolder,
|
supportingFiles.add(new SupportingFile("play25/Play25CallAdapterFactory.mustache", invokerFolder,
|
||||||
@ -284,7 +284,7 @@ public class JavaClientCodegen extends AbstractJavaCodegen
|
|||||||
supportingFiles.add(new SupportingFile("play-common/auth/ApiKeyAuth.mustache", authFolder, "ApiKeyAuth.java"));
|
supportingFiles.add(new SupportingFile("play-common/auth/ApiKeyAuth.mustache", authFolder, "ApiKeyAuth.java"));
|
||||||
supportingFiles.add(new SupportingFile("auth/Authentication.mustache", authFolder, "Authentication.java"));
|
supportingFiles.add(new SupportingFile("auth/Authentication.mustache", authFolder, "Authentication.java"));
|
||||||
supportingFiles.add(new SupportingFile("Pair.mustache", invokerFolder, "Pair.java"));
|
supportingFiles.add(new SupportingFile("Pair.mustache", invokerFolder, "Pair.java"));
|
||||||
|
|
||||||
additionalProperties.put("jackson", "true");
|
additionalProperties.put("jackson", "true");
|
||||||
additionalProperties.remove("gson");
|
additionalProperties.remove("gson");
|
||||||
}
|
}
|
||||||
@ -323,9 +323,6 @@ public class JavaClientCodegen extends AbstractJavaCodegen
|
|||||||
operation.prioritizedContentTypes = prioritizeContentTypes(operation.consumes);
|
operation.prioritizedContentTypes = prioritizeContentTypes(operation.consumes);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (operation.returnType == null) {
|
|
||||||
operation.returnType = "Void";
|
|
||||||
}
|
|
||||||
if (usesRetrofit2Library() && StringUtils.isNotEmpty(operation.path) && operation.path.startsWith("/")){
|
if (usesRetrofit2Library() && StringUtils.isNotEmpty(operation.path) && operation.path.startsWith("/")){
|
||||||
operation.path = operation.path.substring(1);
|
operation.path = operation.path.substring(1);
|
||||||
}
|
}
|
||||||
|
@ -26,9 +26,7 @@ public interface {{classname}} {
|
|||||||
{{#allParams}}
|
{{#allParams}}
|
||||||
* @param {{paramName}} {{description}}{{#required}} (required){{/required}}{{^required}} (optional{{#defaultValue}}, default to {{{.}}}{{/defaultValue}}){{/required}}
|
* @param {{paramName}} {{description}}{{#required}} (required){{/required}}{{^required}} (optional{{#defaultValue}}, default to {{{.}}}{{/defaultValue}}){{/required}}
|
||||||
{{/allParams}}
|
{{/allParams}}
|
||||||
{{#returnType}}
|
* @return {{#returnType}}{{returnType}}{{/returnType}}{{^returnType}}Void{{/returnType}}
|
||||||
* @return {{returnType}}
|
|
||||||
{{/returnType}}
|
|
||||||
{{#externalDocs}}
|
{{#externalDocs}}
|
||||||
* {{description}}
|
* {{description}}
|
||||||
* @see <a href="{{url}}">{{summary}} Documentation</a>
|
* @see <a href="{{url}}">{{summary}} Documentation</a>
|
||||||
@ -37,7 +35,7 @@ public interface {{classname}} {
|
|||||||
{{#formParams}}{{#-first}}
|
{{#formParams}}{{#-first}}
|
||||||
{{#isMultipart}}@retrofit.http.Multipart{{/isMultipart}}{{^isMultipart}}@retrofit.http.FormUrlEncoded{{/isMultipart}}{{/-first}}{{/formParams}}
|
{{#isMultipart}}@retrofit.http.Multipart{{/isMultipart}}{{^isMultipart}}@retrofit.http.FormUrlEncoded{{/isMultipart}}{{/-first}}{{/formParams}}
|
||||||
@{{httpMethod}}("{{{path}}}")
|
@{{httpMethod}}("{{{path}}}")
|
||||||
{{#returnType}}{{{returnType}}}{{/returnType}}{{^returnType}}Object{{/returnType}} {{operationId}}({{^allParams}});{{/allParams}}
|
{{#returnType}}{{{returnType}}}{{/returnType}}{{^returnType}}Void{{/returnType}} {{operationId}}({{^allParams}});{{/allParams}}
|
||||||
{{#allParams}}{{>libraries/retrofit/queryParams}}{{>libraries/retrofit/pathParams}}{{>libraries/retrofit/headerParams}}{{>libraries/retrofit/bodyParams}}{{>libraries/retrofit/formParams}}{{#hasMore}}, {{/hasMore}}{{^hasMore}}
|
{{#allParams}}{{>libraries/retrofit/queryParams}}{{>libraries/retrofit/pathParams}}{{>libraries/retrofit/headerParams}}{{>libraries/retrofit/bodyParams}}{{>libraries/retrofit/formParams}}{{#hasMore}}, {{/hasMore}}{{^hasMore}}
|
||||||
);{{/hasMore}}{{/allParams}}
|
);{{/hasMore}}{{/allParams}}
|
||||||
|
|
||||||
@ -57,7 +55,7 @@ public interface {{classname}} {
|
|||||||
{{#isMultipart}}@retrofit.http.Multipart{{/isMultipart}}{{^isMultipart}}@retrofit.http.FormUrlEncoded{{/isMultipart}}{{/-first}}{{/formParams}}
|
{{#isMultipart}}@retrofit.http.Multipart{{/isMultipart}}{{^isMultipart}}@retrofit.http.FormUrlEncoded{{/isMultipart}}{{/-first}}{{/formParams}}
|
||||||
@{{httpMethod}}("{{{path}}}")
|
@{{httpMethod}}("{{{path}}}")
|
||||||
void {{operationId}}(
|
void {{operationId}}(
|
||||||
{{#allParams}}{{>libraries/retrofit/queryParams}}{{>libraries/retrofit/pathParams}}{{>libraries/retrofit/headerParams}}{{>libraries/retrofit/bodyParams}}{{>libraries/retrofit/formParams}}, {{/allParams}}Callback<{{#returnType}}{{{returnType}}}{{/returnType}}{{^returnType}}Object{{/returnType}}> cb
|
{{#allParams}}{{>libraries/retrofit/queryParams}}{{>libraries/retrofit/pathParams}}{{>libraries/retrofit/headerParams}}{{>libraries/retrofit/bodyParams}}{{>libraries/retrofit/formParams}}, {{/allParams}}Callback<{{#returnType}}{{{returnType}}}{{/returnType}}{{^returnType}}Void{{/returnType}}> cb
|
||||||
);
|
);
|
||||||
{{/operation}}
|
{{/operation}}
|
||||||
}
|
}
|
||||||
|
@ -8,6 +8,11 @@ import rx.Observable;
|
|||||||
{{#useRxJava2}}
|
{{#useRxJava2}}
|
||||||
import io.reactivex.Observable;
|
import io.reactivex.Observable;
|
||||||
{{/useRxJava2}}
|
{{/useRxJava2}}
|
||||||
|
{{^returnType}}
|
||||||
|
{{#useRxJava2}}
|
||||||
|
import io.reactivex.Completable;
|
||||||
|
{{/useRxJava2}}
|
||||||
|
{{/returnType}}
|
||||||
{{#doNotUseRx}}
|
{{#doNotUseRx}}
|
||||||
import retrofit2.Call;
|
import retrofit2.Call;
|
||||||
{{/doNotUseRx}}
|
{{/doNotUseRx}}
|
||||||
@ -35,7 +40,7 @@ public interface {{classname}} {
|
|||||||
{{#allParams}}
|
{{#allParams}}
|
||||||
* @param {{paramName}} {{description}}{{#required}} (required){{/required}}{{^required}} (optional{{#defaultValue}}, default to {{{.}}}{{/defaultValue}}){{/required}}
|
* @param {{paramName}} {{description}}{{#required}} (required){{/required}}{{^required}} (optional{{#defaultValue}}, default to {{{.}}}{{/defaultValue}}){{/required}}
|
||||||
{{/allParams}}
|
{{/allParams}}
|
||||||
* @return Call<{{#returnType}}{{returnType}}{{/returnType}}{{^returnType}}Object{{/returnType}}>
|
* @return {{^doNotUseRx}}{{#useRxJava}}Observable<{{#isResponseFile}}ResponseBody{{/isResponseFile}}{{^isResponseFile}}{{#returnType}}{{returnType}}{{/returnType}}{{^returnType}}Void{{/returnType}}{{/isResponseFile}}>{{/useRxJava}}{{#useRxJava2}}{{#returnType}}Observable<{{#isResponseFile}}ResponseBody{{/isResponseFile}}{{^isResponseFile}}{{returnType}}{{/isResponseFile}}>{{/returnType}}{{^returnType}}Completable{{/returnType}}{{/useRxJava2}}{{/doNotUseRx}}{{#doNotUseRx}}Call<{{#isResponseFile}}ResponseBody{{/isResponseFile}}{{^isResponseFile}}{{#returnType}}{{returnType}}{{/returnType}}{{^returnType}}Void{{/returnType}}{{/isResponseFile}}>{{/doNotUseRx}}
|
||||||
{{#externalDocs}}
|
{{#externalDocs}}
|
||||||
* {{description}}
|
* {{description}}
|
||||||
* @see <a href="{{url}}">{{summary}} Documentation</a>
|
* @see <a href="{{url}}">{{summary}} Documentation</a>
|
||||||
@ -54,9 +59,9 @@ public interface {{classname}} {
|
|||||||
})
|
})
|
||||||
{{/-first}}
|
{{/-first}}
|
||||||
{{/prioritizedContentTypes}}
|
{{/prioritizedContentTypes}}
|
||||||
{{/formParams}}
|
{{/formParams}}
|
||||||
@{{httpMethod}}("{{{path}}}")
|
@{{httpMethod}}("{{{path}}}")
|
||||||
{{^doNotUseRx}}Observable{{/doNotUseRx}}{{#doNotUseRx}}Call{{/doNotUseRx}}<{{#isResponseFile}}ResponseBody{{/isResponseFile}}{{^isResponseFile}}{{#returnType}}{{{returnType}}}{{/returnType}}{{^returnType}}Object{{/returnType}}{{/isResponseFile}}> {{operationId}}({{^allParams}});{{/allParams}}
|
{{^doNotUseRx}}{{#useRxJava}}Observable<{{#isResponseFile}}ResponseBody{{/isResponseFile}}{{^isResponseFile}}{{#returnType}}{{{returnType}}}{{/returnType}}{{^returnType}}Void{{/returnType}}{{/isResponseFile}}>{{/useRxJava}}{{#useRxJava2}}{{#returnType}}Observable<{{#isResponseFile}}ResponseBody{{/isResponseFile}}{{^isResponseFile}}{{{returnType}}}{{/isResponseFile}}>{{/returnType}}{{^returnType}}Completable{{/returnType}}{{/useRxJava2}}{{/doNotUseRx}}{{#doNotUseRx}}Call<{{#isResponseFile}}ResponseBody{{/isResponseFile}}{{^isResponseFile}}{{#returnType}}{{{returnType}}}{{/returnType}}{{^returnType}}Void{{/returnType}}{{/isResponseFile}}>{{/doNotUseRx}} {{operationId}}({{^allParams}});{{/allParams}}
|
||||||
{{#allParams}}{{>libraries/retrofit2/queryParams}}{{>libraries/retrofit2/pathParams}}{{>libraries/retrofit2/headerParams}}{{>libraries/retrofit2/bodyParams}}{{>libraries/retrofit2/formParams}}{{#hasMore}}, {{/hasMore}}{{^hasMore}}
|
{{#allParams}}{{>libraries/retrofit2/queryParams}}{{>libraries/retrofit2/pathParams}}{{>libraries/retrofit2/headerParams}}{{>libraries/retrofit2/bodyParams}}{{>libraries/retrofit2/formParams}}{{#hasMore}}, {{/hasMore}}{{^hasMore}}
|
||||||
);{{/hasMore}}{{/allParams}}
|
);{{/hasMore}}{{/allParams}}
|
||||||
|
|
||||||
|
@ -31,7 +31,7 @@ public interface {{classname}} {
|
|||||||
{{#allParams}}
|
{{#allParams}}
|
||||||
* @param {{paramName}} {{description}}{{#required}} (required){{/required}}{{^required}} (optional{{#defaultValue}}, default to {{{.}}}{{/defaultValue}}){{/required}}
|
* @param {{paramName}} {{description}}{{#required}} (required){{/required}}{{^required}} (optional{{#defaultValue}}, default to {{{.}}}{{/defaultValue}}){{/required}}
|
||||||
{{/allParams}}
|
{{/allParams}}
|
||||||
* @return Call<{{#returnType}}{{returnType}}{{/returnType}}{{^returnType}}Object{{/returnType}}>
|
* @return Call<{{#returnType}}{{returnType}}{{/returnType}}{{^returnType}}Void{{/returnType}}>
|
||||||
*/
|
*/
|
||||||
{{#formParams}}
|
{{#formParams}}
|
||||||
{{#-first}}
|
{{#-first}}
|
||||||
@ -46,9 +46,9 @@ public interface {{classname}} {
|
|||||||
})
|
})
|
||||||
{{/-first}}
|
{{/-first}}
|
||||||
{{/prioritizedContentTypes}}
|
{{/prioritizedContentTypes}}
|
||||||
{{/formParams}}
|
{{/formParams}}
|
||||||
@{{httpMethod}}("{{{path}}}")
|
@{{httpMethod}}("{{{path}}}")
|
||||||
F.Promise<Response<{{#returnType}}{{{returnType}}}{{/returnType}}{{^returnType}}Object{{/returnType}}>> {{operationId}}({{^allParams}});{{/allParams}}
|
F.Promise<Response<{{#returnType}}{{{returnType}}}{{/returnType}}{{^returnType}}Void{{/returnType}}>> {{operationId}}({{^allParams}});{{/allParams}}
|
||||||
{{#allParams}}{{>libraries/retrofit2/queryParams}}{{>libraries/retrofit2/pathParams}}{{>libraries/retrofit2/headerParams}}{{>libraries/retrofit2/bodyParams}}{{>libraries/retrofit2/formParams}}{{#hasMore}}, {{/hasMore}}{{^hasMore}}
|
{{#allParams}}{{>libraries/retrofit2/queryParams}}{{>libraries/retrofit2/pathParams}}{{>libraries/retrofit2/headerParams}}{{>libraries/retrofit2/bodyParams}}{{>libraries/retrofit2/formParams}}{{#hasMore}}, {{/hasMore}}{{^hasMore}}
|
||||||
);{{/hasMore}}{{/allParams}}
|
);{{/hasMore}}{{/allParams}}
|
||||||
|
|
||||||
|
@ -31,7 +31,7 @@ public interface {{classname}} {
|
|||||||
{{#allParams}}
|
{{#allParams}}
|
||||||
* @param {{paramName}} {{description}}{{#required}} (required){{/required}}{{^required}} (optional{{#defaultValue}}, default to {{{.}}}{{/defaultValue}}){{/required}}
|
* @param {{paramName}} {{description}}{{#required}} (required){{/required}}{{^required}} (optional{{#defaultValue}}, default to {{{.}}}{{/defaultValue}}){{/required}}
|
||||||
{{/allParams}}
|
{{/allParams}}
|
||||||
* @return Call<{{#returnType}}{{returnType}}{{/returnType}}{{^returnType}}Object{{/returnType}}>
|
* @return Call<{{#returnType}}{{returnType}}{{/returnType}}{{^returnType}}Void{{/returnType}}>
|
||||||
*/
|
*/
|
||||||
{{#formParams}}
|
{{#formParams}}
|
||||||
{{#-first}}
|
{{#-first}}
|
||||||
@ -46,9 +46,9 @@ public interface {{classname}} {
|
|||||||
})
|
})
|
||||||
{{/-first}}
|
{{/-first}}
|
||||||
{{/prioritizedContentTypes}}
|
{{/prioritizedContentTypes}}
|
||||||
{{/formParams}}
|
{{/formParams}}
|
||||||
@{{httpMethod}}("{{{path}}}")
|
@{{httpMethod}}("{{{path}}}")
|
||||||
CompletionStage<Response<{{#returnType}}{{{returnType}}}{{/returnType}}{{^returnType}}Object{{/returnType}}>> {{operationId}}({{^allParams}});{{/allParams}}
|
CompletionStage<Response<{{#returnType}}{{{returnType}}}{{/returnType}}{{^returnType}}Void{{/returnType}}>> {{operationId}}({{^allParams}});{{/allParams}}
|
||||||
{{#allParams}}{{>libraries/retrofit2/queryParams}}{{>libraries/retrofit2/pathParams}}{{>libraries/retrofit2/headerParams}}{{>libraries/retrofit2/bodyParams}}{{>libraries/retrofit2/formParams}}{{#hasMore}}, {{/hasMore}}{{^hasMore}}
|
{{#allParams}}{{>libraries/retrofit2/queryParams}}{{>libraries/retrofit2/pathParams}}{{>libraries/retrofit2/headerParams}}{{>libraries/retrofit2/bodyParams}}{{>libraries/retrofit2/formParams}}{{#hasMore}}, {{/hasMore}}{{^hasMore}}
|
||||||
);{{/hasMore}}{{/allParams}}
|
);{{/hasMore}}{{/allParams}}
|
||||||
|
|
||||||
|
@ -1 +1 @@
|
|||||||
2.3.0-SNAPSHOT
|
2.3.1-SNAPSHOT
|
@ -1 +1 @@
|
|||||||
2.3.0-SNAPSHOT
|
2.3.1-SNAPSHOT
|
@ -1 +1 @@
|
|||||||
2.3.0-SNAPSHOT
|
2.3.1-SNAPSHOT
|
@ -1 +1 @@
|
|||||||
2.3.0-SNAPSHOT
|
2.3.1-SNAPSHOT
|
@ -1 +1 @@
|
|||||||
2.3.0-SNAPSHOT
|
2.3.1-SNAPSHOT
|
@ -1 +1 @@
|
|||||||
2.3.0-SNAPSHOT
|
2.3.1-SNAPSHOT
|
@ -1 +1 @@
|
|||||||
2.3.0-SNAPSHOT
|
2.3.1-SNAPSHOT
|
@ -1 +1 @@
|
|||||||
2.3.0-SNAPSHOT
|
2.3.1-SNAPSHOT
|
@ -1 +1 @@
|
|||||||
2.3.0-SNAPSHOT
|
2.3.1-SNAPSHOT
|
@ -1 +1 @@
|
|||||||
2.3.0-SNAPSHOT
|
2.3.1-SNAPSHOT
|
@ -1 +1 @@
|
|||||||
2.3.0-SNAPSHOT
|
2.3.1-SNAPSHOT
|
@ -1 +1 @@
|
|||||||
2.3.0-SNAPSHOT
|
2.3.1-SNAPSHOT
|
@ -1 +1 @@
|
|||||||
2.3.0-SNAPSHOT
|
2.3.1-SNAPSHOT
|
@ -242,7 +242,7 @@ No authorization required
|
|||||||
|
|
||||||
<a name="testEndpointParameters"></a>
|
<a name="testEndpointParameters"></a>
|
||||||
# **testEndpointParameters**
|
# **testEndpointParameters**
|
||||||
> Void 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 假端點 偽のエンドポイント 가짜 엔드 포인트
|
||||||
|
|
||||||
@ -280,8 +280,7 @@ OffsetDateTime dateTime = new OffsetDateTime(); // OffsetDateTime | None
|
|||||||
String password = "password_example"; // String | None
|
String password = "password_example"; // String | None
|
||||||
String paramCallback = "paramCallback_example"; // String | None
|
String paramCallback = "paramCallback_example"; // String | None
|
||||||
try {
|
try {
|
||||||
Void result = 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);
|
||||||
System.out.println(result);
|
|
||||||
} catch (ApiException e) {
|
} catch (ApiException e) {
|
||||||
System.err.println("Exception when calling FakeApi#testEndpointParameters");
|
System.err.println("Exception when calling FakeApi#testEndpointParameters");
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
@ -309,7 +308,7 @@ Name | Type | Description | Notes
|
|||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
[**Void**](.md)
|
null (empty response body)
|
||||||
|
|
||||||
### Authorization
|
### Authorization
|
||||||
|
|
||||||
@ -322,7 +321,7 @@ Name | Type | Description | Notes
|
|||||||
|
|
||||||
<a name="testEnumParameters"></a>
|
<a name="testEnumParameters"></a>
|
||||||
# **testEnumParameters**
|
# **testEnumParameters**
|
||||||
> Void testEnumParameters(enumFormStringArray, enumFormString, enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble)
|
> testEnumParameters(enumFormStringArray, enumFormString, enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble)
|
||||||
|
|
||||||
To test enum parameters
|
To test enum parameters
|
||||||
|
|
||||||
@ -345,8 +344,7 @@ String enumQueryString = "-efg"; // String | Query parameter enum test (string)
|
|||||||
Integer enumQueryInteger = 56; // Integer | Query parameter enum test (double)
|
Integer enumQueryInteger = 56; // Integer | Query parameter enum test (double)
|
||||||
Double enumQueryDouble = 3.4D; // Double | Query parameter enum test (double)
|
Double enumQueryDouble = 3.4D; // Double | Query parameter enum test (double)
|
||||||
try {
|
try {
|
||||||
Void result = apiInstance.testEnumParameters(enumFormStringArray, enumFormString, enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble);
|
apiInstance.testEnumParameters(enumFormStringArray, enumFormString, enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble);
|
||||||
System.out.println(result);
|
|
||||||
} catch (ApiException e) {
|
} catch (ApiException e) {
|
||||||
System.err.println("Exception when calling FakeApi#testEnumParameters");
|
System.err.println("Exception when calling FakeApi#testEnumParameters");
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
@ -368,7 +366,7 @@ Name | Type | Description | Notes
|
|||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
[**Void**](.md)
|
null (empty response body)
|
||||||
|
|
||||||
### Authorization
|
### Authorization
|
||||||
|
|
||||||
@ -381,7 +379,7 @@ No authorization required
|
|||||||
|
|
||||||
<a name="testInlineAdditionalProperties"></a>
|
<a name="testInlineAdditionalProperties"></a>
|
||||||
# **testInlineAdditionalProperties**
|
# **testInlineAdditionalProperties**
|
||||||
> Void testInlineAdditionalProperties(param)
|
> testInlineAdditionalProperties(param)
|
||||||
|
|
||||||
test inline additionalProperties
|
test inline additionalProperties
|
||||||
|
|
||||||
@ -397,8 +395,7 @@ test inline additionalProperties
|
|||||||
FakeApi apiInstance = new FakeApi();
|
FakeApi apiInstance = new FakeApi();
|
||||||
Object param = null; // Object | request body
|
Object param = null; // Object | request body
|
||||||
try {
|
try {
|
||||||
Void result = apiInstance.testInlineAdditionalProperties(param);
|
apiInstance.testInlineAdditionalProperties(param);
|
||||||
System.out.println(result);
|
|
||||||
} catch (ApiException e) {
|
} catch (ApiException e) {
|
||||||
System.err.println("Exception when calling FakeApi#testInlineAdditionalProperties");
|
System.err.println("Exception when calling FakeApi#testInlineAdditionalProperties");
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
@ -413,7 +410,7 @@ Name | Type | Description | Notes
|
|||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
[**Void**](.md)
|
null (empty response body)
|
||||||
|
|
||||||
### Authorization
|
### Authorization
|
||||||
|
|
||||||
@ -426,7 +423,7 @@ No authorization required
|
|||||||
|
|
||||||
<a name="testJsonFormData"></a>
|
<a name="testJsonFormData"></a>
|
||||||
# **testJsonFormData**
|
# **testJsonFormData**
|
||||||
> Void testJsonFormData(param, param2)
|
> testJsonFormData(param, param2)
|
||||||
|
|
||||||
test json serialization of form data
|
test json serialization of form data
|
||||||
|
|
||||||
@ -443,8 +440,7 @@ FakeApi apiInstance = new FakeApi();
|
|||||||
String param = "param_example"; // String | field1
|
String param = "param_example"; // String | field1
|
||||||
String param2 = "param2_example"; // String | field2
|
String param2 = "param2_example"; // String | field2
|
||||||
try {
|
try {
|
||||||
Void result = apiInstance.testJsonFormData(param, param2);
|
apiInstance.testJsonFormData(param, param2);
|
||||||
System.out.println(result);
|
|
||||||
} catch (ApiException e) {
|
} catch (ApiException e) {
|
||||||
System.err.println("Exception when calling FakeApi#testJsonFormData");
|
System.err.println("Exception when calling FakeApi#testJsonFormData");
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
@ -460,7 +456,7 @@ Name | Type | Description | Notes
|
|||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
[**Void**](.md)
|
null (empty response body)
|
||||||
|
|
||||||
### Authorization
|
### Authorization
|
||||||
|
|
||||||
|
@ -16,7 +16,7 @@ Method | HTTP request | Description
|
|||||||
|
|
||||||
<a name="addPet"></a>
|
<a name="addPet"></a>
|
||||||
# **addPet**
|
# **addPet**
|
||||||
> Void addPet(body)
|
> addPet(body)
|
||||||
|
|
||||||
Add a new pet to the store
|
Add a new pet to the store
|
||||||
|
|
||||||
@ -40,8 +40,7 @@ petstore_auth.setAccessToken("YOUR ACCESS TOKEN");
|
|||||||
PetApi apiInstance = new PetApi();
|
PetApi apiInstance = new PetApi();
|
||||||
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 {
|
||||||
Void result = apiInstance.addPet(body);
|
apiInstance.addPet(body);
|
||||||
System.out.println(result);
|
|
||||||
} catch (ApiException e) {
|
} catch (ApiException e) {
|
||||||
System.err.println("Exception when calling PetApi#addPet");
|
System.err.println("Exception when calling PetApi#addPet");
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
@ -56,7 +55,7 @@ Name | Type | Description | Notes
|
|||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
[**Void**](.md)
|
null (empty response body)
|
||||||
|
|
||||||
### Authorization
|
### Authorization
|
||||||
|
|
||||||
@ -69,7 +68,7 @@ Name | Type | Description | Notes
|
|||||||
|
|
||||||
<a name="deletePet"></a>
|
<a name="deletePet"></a>
|
||||||
# **deletePet**
|
# **deletePet**
|
||||||
> Void deletePet(petId, apiKey)
|
> deletePet(petId, apiKey)
|
||||||
|
|
||||||
Deletes a pet
|
Deletes a pet
|
||||||
|
|
||||||
@ -94,8 +93,7 @@ PetApi apiInstance = new PetApi();
|
|||||||
Long petId = 789L; // Long | Pet id to delete
|
Long petId = 789L; // Long | Pet id to delete
|
||||||
String apiKey = "apiKey_example"; // String |
|
String apiKey = "apiKey_example"; // String |
|
||||||
try {
|
try {
|
||||||
Void result = apiInstance.deletePet(petId, apiKey);
|
apiInstance.deletePet(petId, apiKey);
|
||||||
System.out.println(result);
|
|
||||||
} catch (ApiException e) {
|
} catch (ApiException e) {
|
||||||
System.err.println("Exception when calling PetApi#deletePet");
|
System.err.println("Exception when calling PetApi#deletePet");
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
@ -111,7 +109,7 @@ Name | Type | Description | Notes
|
|||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
[**Void**](.md)
|
null (empty response body)
|
||||||
|
|
||||||
### Authorization
|
### Authorization
|
||||||
|
|
||||||
@ -285,7 +283,7 @@ Name | Type | Description | Notes
|
|||||||
|
|
||||||
<a name="updatePet"></a>
|
<a name="updatePet"></a>
|
||||||
# **updatePet**
|
# **updatePet**
|
||||||
> Void updatePet(body)
|
> updatePet(body)
|
||||||
|
|
||||||
Update an existing pet
|
Update an existing pet
|
||||||
|
|
||||||
@ -309,8 +307,7 @@ petstore_auth.setAccessToken("YOUR ACCESS TOKEN");
|
|||||||
PetApi apiInstance = new PetApi();
|
PetApi apiInstance = new PetApi();
|
||||||
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 {
|
||||||
Void result = apiInstance.updatePet(body);
|
apiInstance.updatePet(body);
|
||||||
System.out.println(result);
|
|
||||||
} catch (ApiException e) {
|
} catch (ApiException e) {
|
||||||
System.err.println("Exception when calling PetApi#updatePet");
|
System.err.println("Exception when calling PetApi#updatePet");
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
@ -325,7 +322,7 @@ Name | Type | Description | Notes
|
|||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
[**Void**](.md)
|
null (empty response body)
|
||||||
|
|
||||||
### Authorization
|
### Authorization
|
||||||
|
|
||||||
@ -338,7 +335,7 @@ Name | Type | Description | Notes
|
|||||||
|
|
||||||
<a name="updatePetWithForm"></a>
|
<a name="updatePetWithForm"></a>
|
||||||
# **updatePetWithForm**
|
# **updatePetWithForm**
|
||||||
> Void 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
|
||||||
|
|
||||||
@ -364,8 +361,7 @@ Long petId = 789L; // Long | ID of pet that needs to be updated
|
|||||||
String name = "name_example"; // String | Updated name of the pet
|
String name = "name_example"; // String | Updated name of the pet
|
||||||
String status = "status_example"; // String | Updated status of the pet
|
String status = "status_example"; // String | Updated status of the pet
|
||||||
try {
|
try {
|
||||||
Void result = apiInstance.updatePetWithForm(petId, name, status);
|
apiInstance.updatePetWithForm(petId, name, status);
|
||||||
System.out.println(result);
|
|
||||||
} catch (ApiException e) {
|
} catch (ApiException e) {
|
||||||
System.err.println("Exception when calling PetApi#updatePetWithForm");
|
System.err.println("Exception when calling PetApi#updatePetWithForm");
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
@ -382,7 +378,7 @@ Name | Type | Description | Notes
|
|||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
[**Void**](.md)
|
null (empty response body)
|
||||||
|
|
||||||
### Authorization
|
### Authorization
|
||||||
|
|
||||||
|
@ -12,7 +12,7 @@ Method | HTTP request | Description
|
|||||||
|
|
||||||
<a name="deleteOrder"></a>
|
<a name="deleteOrder"></a>
|
||||||
# **deleteOrder**
|
# **deleteOrder**
|
||||||
> Void deleteOrder(orderId)
|
> deleteOrder(orderId)
|
||||||
|
|
||||||
Delete purchase order by ID
|
Delete purchase order by ID
|
||||||
|
|
||||||
@ -28,8 +28,7 @@ For valid response try integer IDs with value < 1000. Anything above 1000 or
|
|||||||
StoreApi apiInstance = new StoreApi();
|
StoreApi apiInstance = new StoreApi();
|
||||||
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 {
|
||||||
Void result = apiInstance.deleteOrder(orderId);
|
apiInstance.deleteOrder(orderId);
|
||||||
System.out.println(result);
|
|
||||||
} catch (ApiException e) {
|
} catch (ApiException e) {
|
||||||
System.err.println("Exception when calling StoreApi#deleteOrder");
|
System.err.println("Exception when calling StoreApi#deleteOrder");
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
@ -44,7 +43,7 @@ Name | Type | Description | Notes
|
|||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
[**Void**](.md)
|
null (empty response body)
|
||||||
|
|
||||||
### Authorization
|
### Authorization
|
||||||
|
|
||||||
|
@ -16,7 +16,7 @@ Method | HTTP request | Description
|
|||||||
|
|
||||||
<a name="createUser"></a>
|
<a name="createUser"></a>
|
||||||
# **createUser**
|
# **createUser**
|
||||||
> Void createUser(body)
|
> createUser(body)
|
||||||
|
|
||||||
Create user
|
Create user
|
||||||
|
|
||||||
@ -32,8 +32,7 @@ This can only be done by the logged in user.
|
|||||||
UserApi apiInstance = new UserApi();
|
UserApi apiInstance = new UserApi();
|
||||||
User body = new User(); // User | Created user object
|
User body = new User(); // User | Created user object
|
||||||
try {
|
try {
|
||||||
Void result = apiInstance.createUser(body);
|
apiInstance.createUser(body);
|
||||||
System.out.println(result);
|
|
||||||
} catch (ApiException e) {
|
} catch (ApiException e) {
|
||||||
System.err.println("Exception when calling UserApi#createUser");
|
System.err.println("Exception when calling UserApi#createUser");
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
@ -48,7 +47,7 @@ Name | Type | Description | Notes
|
|||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
[**Void**](.md)
|
null (empty response body)
|
||||||
|
|
||||||
### Authorization
|
### Authorization
|
||||||
|
|
||||||
@ -61,7 +60,7 @@ No authorization required
|
|||||||
|
|
||||||
<a name="createUsersWithArrayInput"></a>
|
<a name="createUsersWithArrayInput"></a>
|
||||||
# **createUsersWithArrayInput**
|
# **createUsersWithArrayInput**
|
||||||
> Void createUsersWithArrayInput(body)
|
> createUsersWithArrayInput(body)
|
||||||
|
|
||||||
Creates list of users with given input array
|
Creates list of users with given input array
|
||||||
|
|
||||||
@ -77,8 +76,7 @@ Creates list of users with given input array
|
|||||||
UserApi apiInstance = new UserApi();
|
UserApi apiInstance = new UserApi();
|
||||||
List<User> body = Arrays.asList(new User()); // List<User> | List of user object
|
List<User> body = Arrays.asList(new User()); // List<User> | List of user object
|
||||||
try {
|
try {
|
||||||
Void result = apiInstance.createUsersWithArrayInput(body);
|
apiInstance.createUsersWithArrayInput(body);
|
||||||
System.out.println(result);
|
|
||||||
} catch (ApiException e) {
|
} catch (ApiException e) {
|
||||||
System.err.println("Exception when calling UserApi#createUsersWithArrayInput");
|
System.err.println("Exception when calling UserApi#createUsersWithArrayInput");
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
@ -93,7 +91,7 @@ Name | Type | Description | Notes
|
|||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
[**Void**](.md)
|
null (empty response body)
|
||||||
|
|
||||||
### Authorization
|
### Authorization
|
||||||
|
|
||||||
@ -106,7 +104,7 @@ No authorization required
|
|||||||
|
|
||||||
<a name="createUsersWithListInput"></a>
|
<a name="createUsersWithListInput"></a>
|
||||||
# **createUsersWithListInput**
|
# **createUsersWithListInput**
|
||||||
> Void createUsersWithListInput(body)
|
> createUsersWithListInput(body)
|
||||||
|
|
||||||
Creates list of users with given input array
|
Creates list of users with given input array
|
||||||
|
|
||||||
@ -122,8 +120,7 @@ Creates list of users with given input array
|
|||||||
UserApi apiInstance = new UserApi();
|
UserApi apiInstance = new UserApi();
|
||||||
List<User> body = Arrays.asList(new User()); // List<User> | List of user object
|
List<User> body = Arrays.asList(new User()); // List<User> | List of user object
|
||||||
try {
|
try {
|
||||||
Void result = apiInstance.createUsersWithListInput(body);
|
apiInstance.createUsersWithListInput(body);
|
||||||
System.out.println(result);
|
|
||||||
} catch (ApiException e) {
|
} catch (ApiException e) {
|
||||||
System.err.println("Exception when calling UserApi#createUsersWithListInput");
|
System.err.println("Exception when calling UserApi#createUsersWithListInput");
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
@ -138,7 +135,7 @@ Name | Type | Description | Notes
|
|||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
[**Void**](.md)
|
null (empty response body)
|
||||||
|
|
||||||
### Authorization
|
### Authorization
|
||||||
|
|
||||||
@ -151,7 +148,7 @@ No authorization required
|
|||||||
|
|
||||||
<a name="deleteUser"></a>
|
<a name="deleteUser"></a>
|
||||||
# **deleteUser**
|
# **deleteUser**
|
||||||
> Void deleteUser(username)
|
> deleteUser(username)
|
||||||
|
|
||||||
Delete user
|
Delete user
|
||||||
|
|
||||||
@ -167,8 +164,7 @@ This can only be done by the logged in user.
|
|||||||
UserApi apiInstance = new UserApi();
|
UserApi apiInstance = new UserApi();
|
||||||
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 {
|
||||||
Void result = apiInstance.deleteUser(username);
|
apiInstance.deleteUser(username);
|
||||||
System.out.println(result);
|
|
||||||
} catch (ApiException e) {
|
} catch (ApiException e) {
|
||||||
System.err.println("Exception when calling UserApi#deleteUser");
|
System.err.println("Exception when calling UserApi#deleteUser");
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
@ -183,7 +179,7 @@ Name | Type | Description | Notes
|
|||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
[**Void**](.md)
|
null (empty response body)
|
||||||
|
|
||||||
### Authorization
|
### Authorization
|
||||||
|
|
||||||
@ -288,7 +284,7 @@ No authorization required
|
|||||||
|
|
||||||
<a name="logoutUser"></a>
|
<a name="logoutUser"></a>
|
||||||
# **logoutUser**
|
# **logoutUser**
|
||||||
> Void logoutUser()
|
> logoutUser()
|
||||||
|
|
||||||
Logs out current logged in user session
|
Logs out current logged in user session
|
||||||
|
|
||||||
@ -303,8 +299,7 @@ Logs out current logged in user session
|
|||||||
|
|
||||||
UserApi apiInstance = new UserApi();
|
UserApi apiInstance = new UserApi();
|
||||||
try {
|
try {
|
||||||
Void result = apiInstance.logoutUser();
|
apiInstance.logoutUser();
|
||||||
System.out.println(result);
|
|
||||||
} catch (ApiException e) {
|
} catch (ApiException e) {
|
||||||
System.err.println("Exception when calling UserApi#logoutUser");
|
System.err.println("Exception when calling UserApi#logoutUser");
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
@ -316,7 +311,7 @@ This endpoint does not need any parameter.
|
|||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
[**Void**](.md)
|
null (empty response body)
|
||||||
|
|
||||||
### Authorization
|
### Authorization
|
||||||
|
|
||||||
@ -329,7 +324,7 @@ No authorization required
|
|||||||
|
|
||||||
<a name="updateUser"></a>
|
<a name="updateUser"></a>
|
||||||
# **updateUser**
|
# **updateUser**
|
||||||
> Void updateUser(username, body)
|
> updateUser(username, body)
|
||||||
|
|
||||||
Updated user
|
Updated user
|
||||||
|
|
||||||
@ -346,8 +341,7 @@ UserApi apiInstance = new UserApi();
|
|||||||
String username = "username_example"; // String | name that need to be deleted
|
String username = "username_example"; // String | name that need to be deleted
|
||||||
User body = new User(); // User | Updated user object
|
User body = new User(); // User | Updated user object
|
||||||
try {
|
try {
|
||||||
Void result = apiInstance.updateUser(username, body);
|
apiInstance.updateUser(username, body);
|
||||||
System.out.println(result);
|
|
||||||
} catch (ApiException e) {
|
} catch (ApiException e) {
|
||||||
System.err.println("Exception when calling UserApi#updateUser");
|
System.err.println("Exception when calling UserApi#updateUser");
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
@ -363,7 +357,7 @@ Name | Type | Description | Notes
|
|||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
[**Void**](.md)
|
null (empty response body)
|
||||||
|
|
||||||
### Authorization
|
### Authorization
|
||||||
|
|
||||||
|
@ -1 +1 @@
|
|||||||
2.3.0-SNAPSHOT
|
2.3.1-SNAPSHOT
|
@ -242,7 +242,7 @@ No authorization required
|
|||||||
|
|
||||||
<a name="testEndpointParameters"></a>
|
<a name="testEndpointParameters"></a>
|
||||||
# **testEndpointParameters**
|
# **testEndpointParameters**
|
||||||
> Void 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 假端點 偽のエンドポイント 가짜 엔드 포인트
|
||||||
|
|
||||||
@ -280,8 +280,7 @@ OffsetDateTime dateTime = new OffsetDateTime(); // OffsetDateTime | None
|
|||||||
String password = "password_example"; // String | None
|
String password = "password_example"; // String | None
|
||||||
String paramCallback = "paramCallback_example"; // String | None
|
String paramCallback = "paramCallback_example"; // String | None
|
||||||
try {
|
try {
|
||||||
Void result = 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);
|
||||||
System.out.println(result);
|
|
||||||
} catch (ApiException e) {
|
} catch (ApiException e) {
|
||||||
System.err.println("Exception when calling FakeApi#testEndpointParameters");
|
System.err.println("Exception when calling FakeApi#testEndpointParameters");
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
@ -309,7 +308,7 @@ Name | Type | Description | Notes
|
|||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
[**Void**](.md)
|
null (empty response body)
|
||||||
|
|
||||||
### Authorization
|
### Authorization
|
||||||
|
|
||||||
@ -322,7 +321,7 @@ Name | Type | Description | Notes
|
|||||||
|
|
||||||
<a name="testEnumParameters"></a>
|
<a name="testEnumParameters"></a>
|
||||||
# **testEnumParameters**
|
# **testEnumParameters**
|
||||||
> Void testEnumParameters(enumFormStringArray, enumFormString, enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble)
|
> testEnumParameters(enumFormStringArray, enumFormString, enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble)
|
||||||
|
|
||||||
To test enum parameters
|
To test enum parameters
|
||||||
|
|
||||||
@ -345,8 +344,7 @@ String enumQueryString = "-efg"; // String | Query parameter enum test (string)
|
|||||||
Integer enumQueryInteger = 56; // Integer | Query parameter enum test (double)
|
Integer enumQueryInteger = 56; // Integer | Query parameter enum test (double)
|
||||||
Double enumQueryDouble = 3.4D; // Double | Query parameter enum test (double)
|
Double enumQueryDouble = 3.4D; // Double | Query parameter enum test (double)
|
||||||
try {
|
try {
|
||||||
Void result = apiInstance.testEnumParameters(enumFormStringArray, enumFormString, enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble);
|
apiInstance.testEnumParameters(enumFormStringArray, enumFormString, enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble);
|
||||||
System.out.println(result);
|
|
||||||
} catch (ApiException e) {
|
} catch (ApiException e) {
|
||||||
System.err.println("Exception when calling FakeApi#testEnumParameters");
|
System.err.println("Exception when calling FakeApi#testEnumParameters");
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
@ -368,7 +366,7 @@ Name | Type | Description | Notes
|
|||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
[**Void**](.md)
|
null (empty response body)
|
||||||
|
|
||||||
### Authorization
|
### Authorization
|
||||||
|
|
||||||
@ -381,7 +379,7 @@ No authorization required
|
|||||||
|
|
||||||
<a name="testInlineAdditionalProperties"></a>
|
<a name="testInlineAdditionalProperties"></a>
|
||||||
# **testInlineAdditionalProperties**
|
# **testInlineAdditionalProperties**
|
||||||
> Void testInlineAdditionalProperties(param)
|
> testInlineAdditionalProperties(param)
|
||||||
|
|
||||||
test inline additionalProperties
|
test inline additionalProperties
|
||||||
|
|
||||||
@ -397,8 +395,7 @@ test inline additionalProperties
|
|||||||
FakeApi apiInstance = new FakeApi();
|
FakeApi apiInstance = new FakeApi();
|
||||||
Object param = null; // Object | request body
|
Object param = null; // Object | request body
|
||||||
try {
|
try {
|
||||||
Void result = apiInstance.testInlineAdditionalProperties(param);
|
apiInstance.testInlineAdditionalProperties(param);
|
||||||
System.out.println(result);
|
|
||||||
} catch (ApiException e) {
|
} catch (ApiException e) {
|
||||||
System.err.println("Exception when calling FakeApi#testInlineAdditionalProperties");
|
System.err.println("Exception when calling FakeApi#testInlineAdditionalProperties");
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
@ -413,7 +410,7 @@ Name | Type | Description | Notes
|
|||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
[**Void**](.md)
|
null (empty response body)
|
||||||
|
|
||||||
### Authorization
|
### Authorization
|
||||||
|
|
||||||
@ -426,7 +423,7 @@ No authorization required
|
|||||||
|
|
||||||
<a name="testJsonFormData"></a>
|
<a name="testJsonFormData"></a>
|
||||||
# **testJsonFormData**
|
# **testJsonFormData**
|
||||||
> Void testJsonFormData(param, param2)
|
> testJsonFormData(param, param2)
|
||||||
|
|
||||||
test json serialization of form data
|
test json serialization of form data
|
||||||
|
|
||||||
@ -443,8 +440,7 @@ FakeApi apiInstance = new FakeApi();
|
|||||||
String param = "param_example"; // String | field1
|
String param = "param_example"; // String | field1
|
||||||
String param2 = "param2_example"; // String | field2
|
String param2 = "param2_example"; // String | field2
|
||||||
try {
|
try {
|
||||||
Void result = apiInstance.testJsonFormData(param, param2);
|
apiInstance.testJsonFormData(param, param2);
|
||||||
System.out.println(result);
|
|
||||||
} catch (ApiException e) {
|
} catch (ApiException e) {
|
||||||
System.err.println("Exception when calling FakeApi#testJsonFormData");
|
System.err.println("Exception when calling FakeApi#testJsonFormData");
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
@ -460,7 +456,7 @@ Name | Type | Description | Notes
|
|||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
[**Void**](.md)
|
null (empty response body)
|
||||||
|
|
||||||
### Authorization
|
### Authorization
|
||||||
|
|
||||||
|
@ -16,7 +16,7 @@ Method | HTTP request | Description
|
|||||||
|
|
||||||
<a name="addPet"></a>
|
<a name="addPet"></a>
|
||||||
# **addPet**
|
# **addPet**
|
||||||
> Void addPet(body)
|
> addPet(body)
|
||||||
|
|
||||||
Add a new pet to the store
|
Add a new pet to the store
|
||||||
|
|
||||||
@ -40,8 +40,7 @@ petstore_auth.setAccessToken("YOUR ACCESS TOKEN");
|
|||||||
PetApi apiInstance = new PetApi();
|
PetApi apiInstance = new PetApi();
|
||||||
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 {
|
||||||
Void result = apiInstance.addPet(body);
|
apiInstance.addPet(body);
|
||||||
System.out.println(result);
|
|
||||||
} catch (ApiException e) {
|
} catch (ApiException e) {
|
||||||
System.err.println("Exception when calling PetApi#addPet");
|
System.err.println("Exception when calling PetApi#addPet");
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
@ -56,7 +55,7 @@ Name | Type | Description | Notes
|
|||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
[**Void**](.md)
|
null (empty response body)
|
||||||
|
|
||||||
### Authorization
|
### Authorization
|
||||||
|
|
||||||
@ -69,7 +68,7 @@ Name | Type | Description | Notes
|
|||||||
|
|
||||||
<a name="deletePet"></a>
|
<a name="deletePet"></a>
|
||||||
# **deletePet**
|
# **deletePet**
|
||||||
> Void deletePet(petId, apiKey)
|
> deletePet(petId, apiKey)
|
||||||
|
|
||||||
Deletes a pet
|
Deletes a pet
|
||||||
|
|
||||||
@ -94,8 +93,7 @@ PetApi apiInstance = new PetApi();
|
|||||||
Long petId = 789L; // Long | Pet id to delete
|
Long petId = 789L; // Long | Pet id to delete
|
||||||
String apiKey = "apiKey_example"; // String |
|
String apiKey = "apiKey_example"; // String |
|
||||||
try {
|
try {
|
||||||
Void result = apiInstance.deletePet(petId, apiKey);
|
apiInstance.deletePet(petId, apiKey);
|
||||||
System.out.println(result);
|
|
||||||
} catch (ApiException e) {
|
} catch (ApiException e) {
|
||||||
System.err.println("Exception when calling PetApi#deletePet");
|
System.err.println("Exception when calling PetApi#deletePet");
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
@ -111,7 +109,7 @@ Name | Type | Description | Notes
|
|||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
[**Void**](.md)
|
null (empty response body)
|
||||||
|
|
||||||
### Authorization
|
### Authorization
|
||||||
|
|
||||||
@ -285,7 +283,7 @@ Name | Type | Description | Notes
|
|||||||
|
|
||||||
<a name="updatePet"></a>
|
<a name="updatePet"></a>
|
||||||
# **updatePet**
|
# **updatePet**
|
||||||
> Void updatePet(body)
|
> updatePet(body)
|
||||||
|
|
||||||
Update an existing pet
|
Update an existing pet
|
||||||
|
|
||||||
@ -309,8 +307,7 @@ petstore_auth.setAccessToken("YOUR ACCESS TOKEN");
|
|||||||
PetApi apiInstance = new PetApi();
|
PetApi apiInstance = new PetApi();
|
||||||
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 {
|
||||||
Void result = apiInstance.updatePet(body);
|
apiInstance.updatePet(body);
|
||||||
System.out.println(result);
|
|
||||||
} catch (ApiException e) {
|
} catch (ApiException e) {
|
||||||
System.err.println("Exception when calling PetApi#updatePet");
|
System.err.println("Exception when calling PetApi#updatePet");
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
@ -325,7 +322,7 @@ Name | Type | Description | Notes
|
|||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
[**Void**](.md)
|
null (empty response body)
|
||||||
|
|
||||||
### Authorization
|
### Authorization
|
||||||
|
|
||||||
@ -338,7 +335,7 @@ Name | Type | Description | Notes
|
|||||||
|
|
||||||
<a name="updatePetWithForm"></a>
|
<a name="updatePetWithForm"></a>
|
||||||
# **updatePetWithForm**
|
# **updatePetWithForm**
|
||||||
> Void 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
|
||||||
|
|
||||||
@ -364,8 +361,7 @@ Long petId = 789L; // Long | ID of pet that needs to be updated
|
|||||||
String name = "name_example"; // String | Updated name of the pet
|
String name = "name_example"; // String | Updated name of the pet
|
||||||
String status = "status_example"; // String | Updated status of the pet
|
String status = "status_example"; // String | Updated status of the pet
|
||||||
try {
|
try {
|
||||||
Void result = apiInstance.updatePetWithForm(petId, name, status);
|
apiInstance.updatePetWithForm(petId, name, status);
|
||||||
System.out.println(result);
|
|
||||||
} catch (ApiException e) {
|
} catch (ApiException e) {
|
||||||
System.err.println("Exception when calling PetApi#updatePetWithForm");
|
System.err.println("Exception when calling PetApi#updatePetWithForm");
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
@ -382,7 +378,7 @@ Name | Type | Description | Notes
|
|||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
[**Void**](.md)
|
null (empty response body)
|
||||||
|
|
||||||
### Authorization
|
### Authorization
|
||||||
|
|
||||||
|
@ -12,7 +12,7 @@ Method | HTTP request | Description
|
|||||||
|
|
||||||
<a name="deleteOrder"></a>
|
<a name="deleteOrder"></a>
|
||||||
# **deleteOrder**
|
# **deleteOrder**
|
||||||
> Void deleteOrder(orderId)
|
> deleteOrder(orderId)
|
||||||
|
|
||||||
Delete purchase order by ID
|
Delete purchase order by ID
|
||||||
|
|
||||||
@ -28,8 +28,7 @@ For valid response try integer IDs with value < 1000. Anything above 1000 or
|
|||||||
StoreApi apiInstance = new StoreApi();
|
StoreApi apiInstance = new StoreApi();
|
||||||
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 {
|
||||||
Void result = apiInstance.deleteOrder(orderId);
|
apiInstance.deleteOrder(orderId);
|
||||||
System.out.println(result);
|
|
||||||
} catch (ApiException e) {
|
} catch (ApiException e) {
|
||||||
System.err.println("Exception when calling StoreApi#deleteOrder");
|
System.err.println("Exception when calling StoreApi#deleteOrder");
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
@ -44,7 +43,7 @@ Name | Type | Description | Notes
|
|||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
[**Void**](.md)
|
null (empty response body)
|
||||||
|
|
||||||
### Authorization
|
### Authorization
|
||||||
|
|
||||||
|
@ -16,7 +16,7 @@ Method | HTTP request | Description
|
|||||||
|
|
||||||
<a name="createUser"></a>
|
<a name="createUser"></a>
|
||||||
# **createUser**
|
# **createUser**
|
||||||
> Void createUser(body)
|
> createUser(body)
|
||||||
|
|
||||||
Create user
|
Create user
|
||||||
|
|
||||||
@ -32,8 +32,7 @@ This can only be done by the logged in user.
|
|||||||
UserApi apiInstance = new UserApi();
|
UserApi apiInstance = new UserApi();
|
||||||
User body = new User(); // User | Created user object
|
User body = new User(); // User | Created user object
|
||||||
try {
|
try {
|
||||||
Void result = apiInstance.createUser(body);
|
apiInstance.createUser(body);
|
||||||
System.out.println(result);
|
|
||||||
} catch (ApiException e) {
|
} catch (ApiException e) {
|
||||||
System.err.println("Exception when calling UserApi#createUser");
|
System.err.println("Exception when calling UserApi#createUser");
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
@ -48,7 +47,7 @@ Name | Type | Description | Notes
|
|||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
[**Void**](.md)
|
null (empty response body)
|
||||||
|
|
||||||
### Authorization
|
### Authorization
|
||||||
|
|
||||||
@ -61,7 +60,7 @@ No authorization required
|
|||||||
|
|
||||||
<a name="createUsersWithArrayInput"></a>
|
<a name="createUsersWithArrayInput"></a>
|
||||||
# **createUsersWithArrayInput**
|
# **createUsersWithArrayInput**
|
||||||
> Void createUsersWithArrayInput(body)
|
> createUsersWithArrayInput(body)
|
||||||
|
|
||||||
Creates list of users with given input array
|
Creates list of users with given input array
|
||||||
|
|
||||||
@ -77,8 +76,7 @@ Creates list of users with given input array
|
|||||||
UserApi apiInstance = new UserApi();
|
UserApi apiInstance = new UserApi();
|
||||||
List<User> body = Arrays.asList(new User()); // List<User> | List of user object
|
List<User> body = Arrays.asList(new User()); // List<User> | List of user object
|
||||||
try {
|
try {
|
||||||
Void result = apiInstance.createUsersWithArrayInput(body);
|
apiInstance.createUsersWithArrayInput(body);
|
||||||
System.out.println(result);
|
|
||||||
} catch (ApiException e) {
|
} catch (ApiException e) {
|
||||||
System.err.println("Exception when calling UserApi#createUsersWithArrayInput");
|
System.err.println("Exception when calling UserApi#createUsersWithArrayInput");
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
@ -93,7 +91,7 @@ Name | Type | Description | Notes
|
|||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
[**Void**](.md)
|
null (empty response body)
|
||||||
|
|
||||||
### Authorization
|
### Authorization
|
||||||
|
|
||||||
@ -106,7 +104,7 @@ No authorization required
|
|||||||
|
|
||||||
<a name="createUsersWithListInput"></a>
|
<a name="createUsersWithListInput"></a>
|
||||||
# **createUsersWithListInput**
|
# **createUsersWithListInput**
|
||||||
> Void createUsersWithListInput(body)
|
> createUsersWithListInput(body)
|
||||||
|
|
||||||
Creates list of users with given input array
|
Creates list of users with given input array
|
||||||
|
|
||||||
@ -122,8 +120,7 @@ Creates list of users with given input array
|
|||||||
UserApi apiInstance = new UserApi();
|
UserApi apiInstance = new UserApi();
|
||||||
List<User> body = Arrays.asList(new User()); // List<User> | List of user object
|
List<User> body = Arrays.asList(new User()); // List<User> | List of user object
|
||||||
try {
|
try {
|
||||||
Void result = apiInstance.createUsersWithListInput(body);
|
apiInstance.createUsersWithListInput(body);
|
||||||
System.out.println(result);
|
|
||||||
} catch (ApiException e) {
|
} catch (ApiException e) {
|
||||||
System.err.println("Exception when calling UserApi#createUsersWithListInput");
|
System.err.println("Exception when calling UserApi#createUsersWithListInput");
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
@ -138,7 +135,7 @@ Name | Type | Description | Notes
|
|||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
[**Void**](.md)
|
null (empty response body)
|
||||||
|
|
||||||
### Authorization
|
### Authorization
|
||||||
|
|
||||||
@ -151,7 +148,7 @@ No authorization required
|
|||||||
|
|
||||||
<a name="deleteUser"></a>
|
<a name="deleteUser"></a>
|
||||||
# **deleteUser**
|
# **deleteUser**
|
||||||
> Void deleteUser(username)
|
> deleteUser(username)
|
||||||
|
|
||||||
Delete user
|
Delete user
|
||||||
|
|
||||||
@ -167,8 +164,7 @@ This can only be done by the logged in user.
|
|||||||
UserApi apiInstance = new UserApi();
|
UserApi apiInstance = new UserApi();
|
||||||
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 {
|
||||||
Void result = apiInstance.deleteUser(username);
|
apiInstance.deleteUser(username);
|
||||||
System.out.println(result);
|
|
||||||
} catch (ApiException e) {
|
} catch (ApiException e) {
|
||||||
System.err.println("Exception when calling UserApi#deleteUser");
|
System.err.println("Exception when calling UserApi#deleteUser");
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
@ -183,7 +179,7 @@ Name | Type | Description | Notes
|
|||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
[**Void**](.md)
|
null (empty response body)
|
||||||
|
|
||||||
### Authorization
|
### Authorization
|
||||||
|
|
||||||
@ -288,7 +284,7 @@ No authorization required
|
|||||||
|
|
||||||
<a name="logoutUser"></a>
|
<a name="logoutUser"></a>
|
||||||
# **logoutUser**
|
# **logoutUser**
|
||||||
> Void logoutUser()
|
> logoutUser()
|
||||||
|
|
||||||
Logs out current logged in user session
|
Logs out current logged in user session
|
||||||
|
|
||||||
@ -303,8 +299,7 @@ Logs out current logged in user session
|
|||||||
|
|
||||||
UserApi apiInstance = new UserApi();
|
UserApi apiInstance = new UserApi();
|
||||||
try {
|
try {
|
||||||
Void result = apiInstance.logoutUser();
|
apiInstance.logoutUser();
|
||||||
System.out.println(result);
|
|
||||||
} catch (ApiException e) {
|
} catch (ApiException e) {
|
||||||
System.err.println("Exception when calling UserApi#logoutUser");
|
System.err.println("Exception when calling UserApi#logoutUser");
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
@ -316,7 +311,7 @@ This endpoint does not need any parameter.
|
|||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
[**Void**](.md)
|
null (empty response body)
|
||||||
|
|
||||||
### Authorization
|
### Authorization
|
||||||
|
|
||||||
@ -329,7 +324,7 @@ No authorization required
|
|||||||
|
|
||||||
<a name="updateUser"></a>
|
<a name="updateUser"></a>
|
||||||
# **updateUser**
|
# **updateUser**
|
||||||
> Void updateUser(username, body)
|
> updateUser(username, body)
|
||||||
|
|
||||||
Updated user
|
Updated user
|
||||||
|
|
||||||
@ -346,8 +341,7 @@ UserApi apiInstance = new UserApi();
|
|||||||
String username = "username_example"; // String | name that need to be deleted
|
String username = "username_example"; // String | name that need to be deleted
|
||||||
User body = new User(); // User | Updated user object
|
User body = new User(); // User | Updated user object
|
||||||
try {
|
try {
|
||||||
Void result = apiInstance.updateUser(username, body);
|
apiInstance.updateUser(username, body);
|
||||||
System.out.println(result);
|
|
||||||
} catch (ApiException e) {
|
} catch (ApiException e) {
|
||||||
System.err.println("Exception when calling UserApi#updateUser");
|
System.err.println("Exception when calling UserApi#updateUser");
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
@ -363,7 +357,7 @@ Name | Type | Description | Notes
|
|||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
[**Void**](.md)
|
null (empty response body)
|
||||||
|
|
||||||
### Authorization
|
### Authorization
|
||||||
|
|
||||||
|
@ -1 +1 @@
|
|||||||
2.3.0-SNAPSHOT
|
2.3.1-SNAPSHOT
|
@ -242,7 +242,7 @@ No authorization required
|
|||||||
|
|
||||||
<a name="testEndpointParameters"></a>
|
<a name="testEndpointParameters"></a>
|
||||||
# **testEndpointParameters**
|
# **testEndpointParameters**
|
||||||
> Void 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 假端點 偽のエンドポイント 가짜 엔드 포인트
|
||||||
|
|
||||||
@ -280,8 +280,7 @@ OffsetDateTime dateTime = new OffsetDateTime(); // OffsetDateTime | None
|
|||||||
String password = "password_example"; // String | None
|
String password = "password_example"; // String | None
|
||||||
String paramCallback = "paramCallback_example"; // String | None
|
String paramCallback = "paramCallback_example"; // String | None
|
||||||
try {
|
try {
|
||||||
Void result = 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);
|
||||||
System.out.println(result);
|
|
||||||
} catch (ApiException e) {
|
} catch (ApiException e) {
|
||||||
System.err.println("Exception when calling FakeApi#testEndpointParameters");
|
System.err.println("Exception when calling FakeApi#testEndpointParameters");
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
@ -309,7 +308,7 @@ Name | Type | Description | Notes
|
|||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
[**Void**](.md)
|
null (empty response body)
|
||||||
|
|
||||||
### Authorization
|
### Authorization
|
||||||
|
|
||||||
@ -322,7 +321,7 @@ Name | Type | Description | Notes
|
|||||||
|
|
||||||
<a name="testEnumParameters"></a>
|
<a name="testEnumParameters"></a>
|
||||||
# **testEnumParameters**
|
# **testEnumParameters**
|
||||||
> Void testEnumParameters(enumFormStringArray, enumFormString, enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble)
|
> testEnumParameters(enumFormStringArray, enumFormString, enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble)
|
||||||
|
|
||||||
To test enum parameters
|
To test enum parameters
|
||||||
|
|
||||||
@ -345,8 +344,7 @@ String enumQueryString = "-efg"; // String | Query parameter enum test (string)
|
|||||||
Integer enumQueryInteger = 56; // Integer | Query parameter enum test (double)
|
Integer enumQueryInteger = 56; // Integer | Query parameter enum test (double)
|
||||||
Double enumQueryDouble = 3.4D; // Double | Query parameter enum test (double)
|
Double enumQueryDouble = 3.4D; // Double | Query parameter enum test (double)
|
||||||
try {
|
try {
|
||||||
Void result = apiInstance.testEnumParameters(enumFormStringArray, enumFormString, enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble);
|
apiInstance.testEnumParameters(enumFormStringArray, enumFormString, enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble);
|
||||||
System.out.println(result);
|
|
||||||
} catch (ApiException e) {
|
} catch (ApiException e) {
|
||||||
System.err.println("Exception when calling FakeApi#testEnumParameters");
|
System.err.println("Exception when calling FakeApi#testEnumParameters");
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
@ -368,7 +366,7 @@ Name | Type | Description | Notes
|
|||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
[**Void**](.md)
|
null (empty response body)
|
||||||
|
|
||||||
### Authorization
|
### Authorization
|
||||||
|
|
||||||
@ -381,7 +379,7 @@ No authorization required
|
|||||||
|
|
||||||
<a name="testInlineAdditionalProperties"></a>
|
<a name="testInlineAdditionalProperties"></a>
|
||||||
# **testInlineAdditionalProperties**
|
# **testInlineAdditionalProperties**
|
||||||
> Void testInlineAdditionalProperties(param)
|
> testInlineAdditionalProperties(param)
|
||||||
|
|
||||||
test inline additionalProperties
|
test inline additionalProperties
|
||||||
|
|
||||||
@ -397,8 +395,7 @@ test inline additionalProperties
|
|||||||
FakeApi apiInstance = new FakeApi();
|
FakeApi apiInstance = new FakeApi();
|
||||||
Object param = null; // Object | request body
|
Object param = null; // Object | request body
|
||||||
try {
|
try {
|
||||||
Void result = apiInstance.testInlineAdditionalProperties(param);
|
apiInstance.testInlineAdditionalProperties(param);
|
||||||
System.out.println(result);
|
|
||||||
} catch (ApiException e) {
|
} catch (ApiException e) {
|
||||||
System.err.println("Exception when calling FakeApi#testInlineAdditionalProperties");
|
System.err.println("Exception when calling FakeApi#testInlineAdditionalProperties");
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
@ -413,7 +410,7 @@ Name | Type | Description | Notes
|
|||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
[**Void**](.md)
|
null (empty response body)
|
||||||
|
|
||||||
### Authorization
|
### Authorization
|
||||||
|
|
||||||
@ -426,7 +423,7 @@ No authorization required
|
|||||||
|
|
||||||
<a name="testJsonFormData"></a>
|
<a name="testJsonFormData"></a>
|
||||||
# **testJsonFormData**
|
# **testJsonFormData**
|
||||||
> Void testJsonFormData(param, param2)
|
> testJsonFormData(param, param2)
|
||||||
|
|
||||||
test json serialization of form data
|
test json serialization of form data
|
||||||
|
|
||||||
@ -443,8 +440,7 @@ FakeApi apiInstance = new FakeApi();
|
|||||||
String param = "param_example"; // String | field1
|
String param = "param_example"; // String | field1
|
||||||
String param2 = "param2_example"; // String | field2
|
String param2 = "param2_example"; // String | field2
|
||||||
try {
|
try {
|
||||||
Void result = apiInstance.testJsonFormData(param, param2);
|
apiInstance.testJsonFormData(param, param2);
|
||||||
System.out.println(result);
|
|
||||||
} catch (ApiException e) {
|
} catch (ApiException e) {
|
||||||
System.err.println("Exception when calling FakeApi#testJsonFormData");
|
System.err.println("Exception when calling FakeApi#testJsonFormData");
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
@ -460,7 +456,7 @@ Name | Type | Description | Notes
|
|||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
[**Void**](.md)
|
null (empty response body)
|
||||||
|
|
||||||
### Authorization
|
### Authorization
|
||||||
|
|
||||||
|
@ -16,7 +16,7 @@ Method | HTTP request | Description
|
|||||||
|
|
||||||
<a name="addPet"></a>
|
<a name="addPet"></a>
|
||||||
# **addPet**
|
# **addPet**
|
||||||
> Void addPet(body)
|
> addPet(body)
|
||||||
|
|
||||||
Add a new pet to the store
|
Add a new pet to the store
|
||||||
|
|
||||||
@ -40,8 +40,7 @@ petstore_auth.setAccessToken("YOUR ACCESS TOKEN");
|
|||||||
PetApi apiInstance = new PetApi();
|
PetApi apiInstance = new PetApi();
|
||||||
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 {
|
||||||
Void result = apiInstance.addPet(body);
|
apiInstance.addPet(body);
|
||||||
System.out.println(result);
|
|
||||||
} catch (ApiException e) {
|
} catch (ApiException e) {
|
||||||
System.err.println("Exception when calling PetApi#addPet");
|
System.err.println("Exception when calling PetApi#addPet");
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
@ -56,7 +55,7 @@ Name | Type | Description | Notes
|
|||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
[**Void**](.md)
|
null (empty response body)
|
||||||
|
|
||||||
### Authorization
|
### Authorization
|
||||||
|
|
||||||
@ -69,7 +68,7 @@ Name | Type | Description | Notes
|
|||||||
|
|
||||||
<a name="deletePet"></a>
|
<a name="deletePet"></a>
|
||||||
# **deletePet**
|
# **deletePet**
|
||||||
> Void deletePet(petId, apiKey)
|
> deletePet(petId, apiKey)
|
||||||
|
|
||||||
Deletes a pet
|
Deletes a pet
|
||||||
|
|
||||||
@ -94,8 +93,7 @@ PetApi apiInstance = new PetApi();
|
|||||||
Long petId = 789L; // Long | Pet id to delete
|
Long petId = 789L; // Long | Pet id to delete
|
||||||
String apiKey = "apiKey_example"; // String |
|
String apiKey = "apiKey_example"; // String |
|
||||||
try {
|
try {
|
||||||
Void result = apiInstance.deletePet(petId, apiKey);
|
apiInstance.deletePet(petId, apiKey);
|
||||||
System.out.println(result);
|
|
||||||
} catch (ApiException e) {
|
} catch (ApiException e) {
|
||||||
System.err.println("Exception when calling PetApi#deletePet");
|
System.err.println("Exception when calling PetApi#deletePet");
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
@ -111,7 +109,7 @@ Name | Type | Description | Notes
|
|||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
[**Void**](.md)
|
null (empty response body)
|
||||||
|
|
||||||
### Authorization
|
### Authorization
|
||||||
|
|
||||||
@ -285,7 +283,7 @@ Name | Type | Description | Notes
|
|||||||
|
|
||||||
<a name="updatePet"></a>
|
<a name="updatePet"></a>
|
||||||
# **updatePet**
|
# **updatePet**
|
||||||
> Void updatePet(body)
|
> updatePet(body)
|
||||||
|
|
||||||
Update an existing pet
|
Update an existing pet
|
||||||
|
|
||||||
@ -309,8 +307,7 @@ petstore_auth.setAccessToken("YOUR ACCESS TOKEN");
|
|||||||
PetApi apiInstance = new PetApi();
|
PetApi apiInstance = new PetApi();
|
||||||
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 {
|
||||||
Void result = apiInstance.updatePet(body);
|
apiInstance.updatePet(body);
|
||||||
System.out.println(result);
|
|
||||||
} catch (ApiException e) {
|
} catch (ApiException e) {
|
||||||
System.err.println("Exception when calling PetApi#updatePet");
|
System.err.println("Exception when calling PetApi#updatePet");
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
@ -325,7 +322,7 @@ Name | Type | Description | Notes
|
|||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
[**Void**](.md)
|
null (empty response body)
|
||||||
|
|
||||||
### Authorization
|
### Authorization
|
||||||
|
|
||||||
@ -338,7 +335,7 @@ Name | Type | Description | Notes
|
|||||||
|
|
||||||
<a name="updatePetWithForm"></a>
|
<a name="updatePetWithForm"></a>
|
||||||
# **updatePetWithForm**
|
# **updatePetWithForm**
|
||||||
> Void 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
|
||||||
|
|
||||||
@ -364,8 +361,7 @@ Long petId = 789L; // Long | ID of pet that needs to be updated
|
|||||||
String name = "name_example"; // String | Updated name of the pet
|
String name = "name_example"; // String | Updated name of the pet
|
||||||
String status = "status_example"; // String | Updated status of the pet
|
String status = "status_example"; // String | Updated status of the pet
|
||||||
try {
|
try {
|
||||||
Void result = apiInstance.updatePetWithForm(petId, name, status);
|
apiInstance.updatePetWithForm(petId, name, status);
|
||||||
System.out.println(result);
|
|
||||||
} catch (ApiException e) {
|
} catch (ApiException e) {
|
||||||
System.err.println("Exception when calling PetApi#updatePetWithForm");
|
System.err.println("Exception when calling PetApi#updatePetWithForm");
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
@ -382,7 +378,7 @@ Name | Type | Description | Notes
|
|||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
[**Void**](.md)
|
null (empty response body)
|
||||||
|
|
||||||
### Authorization
|
### Authorization
|
||||||
|
|
||||||
|
@ -12,7 +12,7 @@ Method | HTTP request | Description
|
|||||||
|
|
||||||
<a name="deleteOrder"></a>
|
<a name="deleteOrder"></a>
|
||||||
# **deleteOrder**
|
# **deleteOrder**
|
||||||
> Void deleteOrder(orderId)
|
> deleteOrder(orderId)
|
||||||
|
|
||||||
Delete purchase order by ID
|
Delete purchase order by ID
|
||||||
|
|
||||||
@ -28,8 +28,7 @@ For valid response try integer IDs with value < 1000. Anything above 1000 or
|
|||||||
StoreApi apiInstance = new StoreApi();
|
StoreApi apiInstance = new StoreApi();
|
||||||
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 {
|
||||||
Void result = apiInstance.deleteOrder(orderId);
|
apiInstance.deleteOrder(orderId);
|
||||||
System.out.println(result);
|
|
||||||
} catch (ApiException e) {
|
} catch (ApiException e) {
|
||||||
System.err.println("Exception when calling StoreApi#deleteOrder");
|
System.err.println("Exception when calling StoreApi#deleteOrder");
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
@ -44,7 +43,7 @@ Name | Type | Description | Notes
|
|||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
[**Void**](.md)
|
null (empty response body)
|
||||||
|
|
||||||
### Authorization
|
### Authorization
|
||||||
|
|
||||||
|
@ -16,7 +16,7 @@ Method | HTTP request | Description
|
|||||||
|
|
||||||
<a name="createUser"></a>
|
<a name="createUser"></a>
|
||||||
# **createUser**
|
# **createUser**
|
||||||
> Void createUser(body)
|
> createUser(body)
|
||||||
|
|
||||||
Create user
|
Create user
|
||||||
|
|
||||||
@ -32,8 +32,7 @@ This can only be done by the logged in user.
|
|||||||
UserApi apiInstance = new UserApi();
|
UserApi apiInstance = new UserApi();
|
||||||
User body = new User(); // User | Created user object
|
User body = new User(); // User | Created user object
|
||||||
try {
|
try {
|
||||||
Void result = apiInstance.createUser(body);
|
apiInstance.createUser(body);
|
||||||
System.out.println(result);
|
|
||||||
} catch (ApiException e) {
|
} catch (ApiException e) {
|
||||||
System.err.println("Exception when calling UserApi#createUser");
|
System.err.println("Exception when calling UserApi#createUser");
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
@ -48,7 +47,7 @@ Name | Type | Description | Notes
|
|||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
[**Void**](.md)
|
null (empty response body)
|
||||||
|
|
||||||
### Authorization
|
### Authorization
|
||||||
|
|
||||||
@ -61,7 +60,7 @@ No authorization required
|
|||||||
|
|
||||||
<a name="createUsersWithArrayInput"></a>
|
<a name="createUsersWithArrayInput"></a>
|
||||||
# **createUsersWithArrayInput**
|
# **createUsersWithArrayInput**
|
||||||
> Void createUsersWithArrayInput(body)
|
> createUsersWithArrayInput(body)
|
||||||
|
|
||||||
Creates list of users with given input array
|
Creates list of users with given input array
|
||||||
|
|
||||||
@ -77,8 +76,7 @@ Creates list of users with given input array
|
|||||||
UserApi apiInstance = new UserApi();
|
UserApi apiInstance = new UserApi();
|
||||||
List<User> body = Arrays.asList(new User()); // List<User> | List of user object
|
List<User> body = Arrays.asList(new User()); // List<User> | List of user object
|
||||||
try {
|
try {
|
||||||
Void result = apiInstance.createUsersWithArrayInput(body);
|
apiInstance.createUsersWithArrayInput(body);
|
||||||
System.out.println(result);
|
|
||||||
} catch (ApiException e) {
|
} catch (ApiException e) {
|
||||||
System.err.println("Exception when calling UserApi#createUsersWithArrayInput");
|
System.err.println("Exception when calling UserApi#createUsersWithArrayInput");
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
@ -93,7 +91,7 @@ Name | Type | Description | Notes
|
|||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
[**Void**](.md)
|
null (empty response body)
|
||||||
|
|
||||||
### Authorization
|
### Authorization
|
||||||
|
|
||||||
@ -106,7 +104,7 @@ No authorization required
|
|||||||
|
|
||||||
<a name="createUsersWithListInput"></a>
|
<a name="createUsersWithListInput"></a>
|
||||||
# **createUsersWithListInput**
|
# **createUsersWithListInput**
|
||||||
> Void createUsersWithListInput(body)
|
> createUsersWithListInput(body)
|
||||||
|
|
||||||
Creates list of users with given input array
|
Creates list of users with given input array
|
||||||
|
|
||||||
@ -122,8 +120,7 @@ Creates list of users with given input array
|
|||||||
UserApi apiInstance = new UserApi();
|
UserApi apiInstance = new UserApi();
|
||||||
List<User> body = Arrays.asList(new User()); // List<User> | List of user object
|
List<User> body = Arrays.asList(new User()); // List<User> | List of user object
|
||||||
try {
|
try {
|
||||||
Void result = apiInstance.createUsersWithListInput(body);
|
apiInstance.createUsersWithListInput(body);
|
||||||
System.out.println(result);
|
|
||||||
} catch (ApiException e) {
|
} catch (ApiException e) {
|
||||||
System.err.println("Exception when calling UserApi#createUsersWithListInput");
|
System.err.println("Exception when calling UserApi#createUsersWithListInput");
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
@ -138,7 +135,7 @@ Name | Type | Description | Notes
|
|||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
[**Void**](.md)
|
null (empty response body)
|
||||||
|
|
||||||
### Authorization
|
### Authorization
|
||||||
|
|
||||||
@ -151,7 +148,7 @@ No authorization required
|
|||||||
|
|
||||||
<a name="deleteUser"></a>
|
<a name="deleteUser"></a>
|
||||||
# **deleteUser**
|
# **deleteUser**
|
||||||
> Void deleteUser(username)
|
> deleteUser(username)
|
||||||
|
|
||||||
Delete user
|
Delete user
|
||||||
|
|
||||||
@ -167,8 +164,7 @@ This can only be done by the logged in user.
|
|||||||
UserApi apiInstance = new UserApi();
|
UserApi apiInstance = new UserApi();
|
||||||
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 {
|
||||||
Void result = apiInstance.deleteUser(username);
|
apiInstance.deleteUser(username);
|
||||||
System.out.println(result);
|
|
||||||
} catch (ApiException e) {
|
} catch (ApiException e) {
|
||||||
System.err.println("Exception when calling UserApi#deleteUser");
|
System.err.println("Exception when calling UserApi#deleteUser");
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
@ -183,7 +179,7 @@ Name | Type | Description | Notes
|
|||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
[**Void**](.md)
|
null (empty response body)
|
||||||
|
|
||||||
### Authorization
|
### Authorization
|
||||||
|
|
||||||
@ -288,7 +284,7 @@ No authorization required
|
|||||||
|
|
||||||
<a name="logoutUser"></a>
|
<a name="logoutUser"></a>
|
||||||
# **logoutUser**
|
# **logoutUser**
|
||||||
> Void logoutUser()
|
> logoutUser()
|
||||||
|
|
||||||
Logs out current logged in user session
|
Logs out current logged in user session
|
||||||
|
|
||||||
@ -303,8 +299,7 @@ Logs out current logged in user session
|
|||||||
|
|
||||||
UserApi apiInstance = new UserApi();
|
UserApi apiInstance = new UserApi();
|
||||||
try {
|
try {
|
||||||
Void result = apiInstance.logoutUser();
|
apiInstance.logoutUser();
|
||||||
System.out.println(result);
|
|
||||||
} catch (ApiException e) {
|
} catch (ApiException e) {
|
||||||
System.err.println("Exception when calling UserApi#logoutUser");
|
System.err.println("Exception when calling UserApi#logoutUser");
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
@ -316,7 +311,7 @@ This endpoint does not need any parameter.
|
|||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
[**Void**](.md)
|
null (empty response body)
|
||||||
|
|
||||||
### Authorization
|
### Authorization
|
||||||
|
|
||||||
@ -329,7 +324,7 @@ No authorization required
|
|||||||
|
|
||||||
<a name="updateUser"></a>
|
<a name="updateUser"></a>
|
||||||
# **updateUser**
|
# **updateUser**
|
||||||
> Void updateUser(username, body)
|
> updateUser(username, body)
|
||||||
|
|
||||||
Updated user
|
Updated user
|
||||||
|
|
||||||
@ -346,8 +341,7 @@ UserApi apiInstance = new UserApi();
|
|||||||
String username = "username_example"; // String | name that need to be deleted
|
String username = "username_example"; // String | name that need to be deleted
|
||||||
User body = new User(); // User | Updated user object
|
User body = new User(); // User | Updated user object
|
||||||
try {
|
try {
|
||||||
Void result = apiInstance.updateUser(username, body);
|
apiInstance.updateUser(username, body);
|
||||||
System.out.println(result);
|
|
||||||
} catch (ApiException e) {
|
} catch (ApiException e) {
|
||||||
System.err.println("Exception when calling UserApi#updateUser");
|
System.err.println("Exception when calling UserApi#updateUser");
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
@ -363,7 +357,7 @@ Name | Type | Description | Notes
|
|||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
[**Void**](.md)
|
null (empty response body)
|
||||||
|
|
||||||
### Authorization
|
### Authorization
|
||||||
|
|
||||||
|
@ -20,7 +20,7 @@ public interface AnotherFakeApi {
|
|||||||
* To test special tags
|
* To test special tags
|
||||||
* To test special tags
|
* To test special tags
|
||||||
* @param body client model (required)
|
* @param body client model (required)
|
||||||
* @return Call<Client>
|
* @return Observable<Client>
|
||||||
*/
|
*/
|
||||||
@Headers({
|
@Headers({
|
||||||
"Content-Type:application/json"
|
"Content-Type:application/json"
|
||||||
|
@ -24,7 +24,7 @@ public interface FakeApi {
|
|||||||
*
|
*
|
||||||
* Test serialization of outer boolean types
|
* Test serialization of outer boolean types
|
||||||
* @param body Input boolean as post body (optional)
|
* @param body Input boolean as post body (optional)
|
||||||
* @return Call<Boolean>
|
* @return Observable<Boolean>
|
||||||
*/
|
*/
|
||||||
@POST("fake/outer/boolean")
|
@POST("fake/outer/boolean")
|
||||||
Observable<Boolean> fakeOuterBooleanSerialize(
|
Observable<Boolean> fakeOuterBooleanSerialize(
|
||||||
@ -35,7 +35,7 @@ public interface FakeApi {
|
|||||||
*
|
*
|
||||||
* Test serialization of object with outer number type
|
* Test serialization of object with outer number type
|
||||||
* @param body Input composite as post body (optional)
|
* @param body Input composite as post body (optional)
|
||||||
* @return Call<OuterComposite>
|
* @return Observable<OuterComposite>
|
||||||
*/
|
*/
|
||||||
@POST("fake/outer/composite")
|
@POST("fake/outer/composite")
|
||||||
Observable<OuterComposite> fakeOuterCompositeSerialize(
|
Observable<OuterComposite> fakeOuterCompositeSerialize(
|
||||||
@ -46,7 +46,7 @@ public interface FakeApi {
|
|||||||
*
|
*
|
||||||
* Test serialization of outer number types
|
* Test serialization of outer number types
|
||||||
* @param body Input number as post body (optional)
|
* @param body Input number as post body (optional)
|
||||||
* @return Call<BigDecimal>
|
* @return Observable<BigDecimal>
|
||||||
*/
|
*/
|
||||||
@POST("fake/outer/number")
|
@POST("fake/outer/number")
|
||||||
Observable<BigDecimal> fakeOuterNumberSerialize(
|
Observable<BigDecimal> fakeOuterNumberSerialize(
|
||||||
@ -57,7 +57,7 @@ public interface FakeApi {
|
|||||||
*
|
*
|
||||||
* Test serialization of outer string types
|
* Test serialization of outer string types
|
||||||
* @param body Input string as post body (optional)
|
* @param body Input string as post body (optional)
|
||||||
* @return Call<String>
|
* @return Observable<String>
|
||||||
*/
|
*/
|
||||||
@POST("fake/outer/string")
|
@POST("fake/outer/string")
|
||||||
Observable<String> fakeOuterStringSerialize(
|
Observable<String> fakeOuterStringSerialize(
|
||||||
@ -68,7 +68,7 @@ public interface FakeApi {
|
|||||||
* To test \"client\" model
|
* To test \"client\" model
|
||||||
* To test \"client\" model
|
* To test \"client\" model
|
||||||
* @param body client model (required)
|
* @param body client model (required)
|
||||||
* @return Call<Client>
|
* @return Observable<Client>
|
||||||
*/
|
*/
|
||||||
@Headers({
|
@Headers({
|
||||||
"Content-Type:application/json"
|
"Content-Type:application/json"
|
||||||
@ -95,7 +95,7 @@ public interface FakeApi {
|
|||||||
* @param dateTime None (optional)
|
* @param dateTime None (optional)
|
||||||
* @param password None (optional)
|
* @param password None (optional)
|
||||||
* @param paramCallback None (optional)
|
* @param paramCallback None (optional)
|
||||||
* @return Call<Void>
|
* @return Observable<Void>
|
||||||
*/
|
*/
|
||||||
@retrofit2.http.FormUrlEncoded
|
@retrofit2.http.FormUrlEncoded
|
||||||
@POST("fake")
|
@POST("fake")
|
||||||
@ -114,7 +114,7 @@ public interface FakeApi {
|
|||||||
* @param enumQueryString Query parameter enum test (string) (optional, default to -efg)
|
* @param enumQueryString Query parameter enum test (string) (optional, default to -efg)
|
||||||
* @param enumQueryInteger Query parameter enum test (double) (optional)
|
* @param enumQueryInteger Query parameter enum test (double) (optional)
|
||||||
* @param enumQueryDouble Query parameter enum test (double) (optional)
|
* @param enumQueryDouble Query parameter enum test (double) (optional)
|
||||||
* @return Call<Void>
|
* @return Observable<Void>
|
||||||
*/
|
*/
|
||||||
@retrofit2.http.FormUrlEncoded
|
@retrofit2.http.FormUrlEncoded
|
||||||
@GET("fake")
|
@GET("fake")
|
||||||
@ -126,7 +126,7 @@ public interface FakeApi {
|
|||||||
* test inline additionalProperties
|
* test inline additionalProperties
|
||||||
*
|
*
|
||||||
* @param param request body (required)
|
* @param param request body (required)
|
||||||
* @return Call<Void>
|
* @return Observable<Void>
|
||||||
*/
|
*/
|
||||||
@Headers({
|
@Headers({
|
||||||
"Content-Type:application/json"
|
"Content-Type:application/json"
|
||||||
@ -141,7 +141,7 @@ public interface FakeApi {
|
|||||||
*
|
*
|
||||||
* @param param field1 (required)
|
* @param param field1 (required)
|
||||||
* @param param2 field2 (required)
|
* @param param2 field2 (required)
|
||||||
* @return Call<Void>
|
* @return Observable<Void>
|
||||||
*/
|
*/
|
||||||
@retrofit2.http.FormUrlEncoded
|
@retrofit2.http.FormUrlEncoded
|
||||||
@GET("fake/jsonFormData")
|
@GET("fake/jsonFormData")
|
||||||
|
@ -20,7 +20,7 @@ public interface FakeClassnameTags123Api {
|
|||||||
* To test class name in snake case
|
* To test class name in snake case
|
||||||
*
|
*
|
||||||
* @param body client model (required)
|
* @param body client model (required)
|
||||||
* @return Call<Client>
|
* @return Observable<Client>
|
||||||
*/
|
*/
|
||||||
@Headers({
|
@Headers({
|
||||||
"Content-Type:application/json"
|
"Content-Type:application/json"
|
||||||
|
@ -22,7 +22,7 @@ public interface PetApi {
|
|||||||
* Add a new pet to the store
|
* Add a new pet to the store
|
||||||
*
|
*
|
||||||
* @param body Pet object that needs to be added to the store (required)
|
* @param body Pet object that needs to be added to the store (required)
|
||||||
* @return Call<Void>
|
* @return Observable<Void>
|
||||||
*/
|
*/
|
||||||
@Headers({
|
@Headers({
|
||||||
"Content-Type:application/json"
|
"Content-Type:application/json"
|
||||||
@ -37,7 +37,7 @@ public interface PetApi {
|
|||||||
*
|
*
|
||||||
* @param petId Pet id to delete (required)
|
* @param petId Pet id to delete (required)
|
||||||
* @param apiKey (optional)
|
* @param apiKey (optional)
|
||||||
* @return Call<Void>
|
* @return Observable<Void>
|
||||||
*/
|
*/
|
||||||
@DELETE("pet/{petId}")
|
@DELETE("pet/{petId}")
|
||||||
Observable<Void> deletePet(
|
Observable<Void> deletePet(
|
||||||
@ -48,7 +48,7 @@ public interface PetApi {
|
|||||||
* 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
|
||||||
* @param status Status values that need to be considered for filter (required)
|
* @param status Status values that need to be considered for filter (required)
|
||||||
* @return Call<List<Pet>>
|
* @return Observable<List<Pet>>
|
||||||
*/
|
*/
|
||||||
@GET("pet/findByStatus")
|
@GET("pet/findByStatus")
|
||||||
Observable<List<Pet>> findPetsByStatus(
|
Observable<List<Pet>> findPetsByStatus(
|
||||||
@ -59,7 +59,7 @@ public interface PetApi {
|
|||||||
* 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.
|
||||||
* @param tags Tags to filter by (required)
|
* @param tags Tags to filter by (required)
|
||||||
* @return Call<List<Pet>>
|
* @return Observable<List<Pet>>
|
||||||
*/
|
*/
|
||||||
@GET("pet/findByTags")
|
@GET("pet/findByTags")
|
||||||
Observable<List<Pet>> findPetsByTags(
|
Observable<List<Pet>> findPetsByTags(
|
||||||
@ -70,7 +70,7 @@ public interface PetApi {
|
|||||||
* Find pet by ID
|
* Find pet by ID
|
||||||
* Returns a single pet
|
* Returns a single pet
|
||||||
* @param petId ID of pet to return (required)
|
* @param petId ID of pet to return (required)
|
||||||
* @return Call<Pet>
|
* @return Observable<Pet>
|
||||||
*/
|
*/
|
||||||
@GET("pet/{petId}")
|
@GET("pet/{petId}")
|
||||||
Observable<Pet> getPetById(
|
Observable<Pet> getPetById(
|
||||||
@ -81,7 +81,7 @@ public interface PetApi {
|
|||||||
* Update an existing pet
|
* Update an existing pet
|
||||||
*
|
*
|
||||||
* @param body Pet object that needs to be added to the store (required)
|
* @param body Pet object that needs to be added to the store (required)
|
||||||
* @return Call<Void>
|
* @return Observable<Void>
|
||||||
*/
|
*/
|
||||||
@Headers({
|
@Headers({
|
||||||
"Content-Type:application/json"
|
"Content-Type:application/json"
|
||||||
@ -97,7 +97,7 @@ public interface PetApi {
|
|||||||
* @param petId ID of pet that needs to be updated (required)
|
* @param petId ID of pet that needs to be updated (required)
|
||||||
* @param name Updated name of the pet (optional)
|
* @param name Updated name of the pet (optional)
|
||||||
* @param status Updated status of the pet (optional)
|
* @param status Updated status of the pet (optional)
|
||||||
* @return Call<Void>
|
* @return Observable<Void>
|
||||||
*/
|
*/
|
||||||
@retrofit2.http.FormUrlEncoded
|
@retrofit2.http.FormUrlEncoded
|
||||||
@POST("pet/{petId}")
|
@POST("pet/{petId}")
|
||||||
@ -111,7 +111,7 @@ public interface PetApi {
|
|||||||
* @param petId ID of pet to update (required)
|
* @param petId ID of pet to update (required)
|
||||||
* @param additionalMetadata Additional data to pass to server (optional)
|
* @param additionalMetadata Additional data to pass to server (optional)
|
||||||
* @param file file to upload (optional)
|
* @param file file to upload (optional)
|
||||||
* @return Call<ModelApiResponse>
|
* @return Observable<ModelApiResponse>
|
||||||
*/
|
*/
|
||||||
@retrofit2.http.Multipart
|
@retrofit2.http.Multipart
|
||||||
@POST("pet/{petId}/uploadImage")
|
@POST("pet/{petId}/uploadImage")
|
||||||
|
@ -20,7 +20,7 @@ public interface StoreApi {
|
|||||||
* Delete purchase order by ID
|
* Delete purchase order by ID
|
||||||
* For valid response try integer IDs with value < 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
|
||||||
* @param orderId ID of the order that needs to be deleted (required)
|
* @param orderId ID of the order that needs to be deleted (required)
|
||||||
* @return Call<Void>
|
* @return Observable<Void>
|
||||||
*/
|
*/
|
||||||
@DELETE("store/order/{order_id}")
|
@DELETE("store/order/{order_id}")
|
||||||
Observable<Void> deleteOrder(
|
Observable<Void> deleteOrder(
|
||||||
@ -30,7 +30,7 @@ public interface StoreApi {
|
|||||||
/**
|
/**
|
||||||
* 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
|
||||||
* @return Call<Map<String, Integer>>
|
* @return Observable<Map<String, Integer>>
|
||||||
*/
|
*/
|
||||||
@GET("store/inventory")
|
@GET("store/inventory")
|
||||||
Observable<Map<String, Integer>> getInventory();
|
Observable<Map<String, Integer>> getInventory();
|
||||||
@ -40,7 +40,7 @@ public interface StoreApi {
|
|||||||
* Find purchase order by ID
|
* Find purchase order by ID
|
||||||
* For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions
|
* For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions
|
||||||
* @param orderId ID of pet that needs to be fetched (required)
|
* @param orderId ID of pet that needs to be fetched (required)
|
||||||
* @return Call<Order>
|
* @return Observable<Order>
|
||||||
*/
|
*/
|
||||||
@GET("store/order/{order_id}")
|
@GET("store/order/{order_id}")
|
||||||
Observable<Order> getOrderById(
|
Observable<Order> getOrderById(
|
||||||
@ -51,7 +51,7 @@ public interface StoreApi {
|
|||||||
* Place an order for a pet
|
* Place an order for a pet
|
||||||
*
|
*
|
||||||
* @param body order placed for purchasing the pet (required)
|
* @param body order placed for purchasing the pet (required)
|
||||||
* @return Call<Order>
|
* @return Observable<Order>
|
||||||
*/
|
*/
|
||||||
@POST("store/order")
|
@POST("store/order")
|
||||||
Observable<Order> placeOrder(
|
Observable<Order> placeOrder(
|
||||||
|
@ -20,7 +20,7 @@ public interface UserApi {
|
|||||||
* Create user
|
* Create user
|
||||||
* This can only be done by the logged in user.
|
* This can only be done by the logged in user.
|
||||||
* @param body Created user object (required)
|
* @param body Created user object (required)
|
||||||
* @return Call<Void>
|
* @return Observable<Void>
|
||||||
*/
|
*/
|
||||||
@POST("user")
|
@POST("user")
|
||||||
Observable<Void> createUser(
|
Observable<Void> createUser(
|
||||||
@ -31,7 +31,7 @@ public interface UserApi {
|
|||||||
* Creates list of users with given input array
|
* Creates list of users with given input array
|
||||||
*
|
*
|
||||||
* @param body List of user object (required)
|
* @param body List of user object (required)
|
||||||
* @return Call<Void>
|
* @return Observable<Void>
|
||||||
*/
|
*/
|
||||||
@POST("user/createWithArray")
|
@POST("user/createWithArray")
|
||||||
Observable<Void> createUsersWithArrayInput(
|
Observable<Void> createUsersWithArrayInput(
|
||||||
@ -42,7 +42,7 @@ public interface UserApi {
|
|||||||
* Creates list of users with given input array
|
* Creates list of users with given input array
|
||||||
*
|
*
|
||||||
* @param body List of user object (required)
|
* @param body List of user object (required)
|
||||||
* @return Call<Void>
|
* @return Observable<Void>
|
||||||
*/
|
*/
|
||||||
@POST("user/createWithList")
|
@POST("user/createWithList")
|
||||||
Observable<Void> createUsersWithListInput(
|
Observable<Void> createUsersWithListInput(
|
||||||
@ -53,7 +53,7 @@ public interface UserApi {
|
|||||||
* Delete user
|
* Delete user
|
||||||
* This can only be done by the logged in user.
|
* This can only be done by the logged in user.
|
||||||
* @param username The name that needs to be deleted (required)
|
* @param username The name that needs to be deleted (required)
|
||||||
* @return Call<Void>
|
* @return Observable<Void>
|
||||||
*/
|
*/
|
||||||
@DELETE("user/{username}")
|
@DELETE("user/{username}")
|
||||||
Observable<Void> deleteUser(
|
Observable<Void> deleteUser(
|
||||||
@ -64,7 +64,7 @@ public interface UserApi {
|
|||||||
* Get user by user name
|
* Get user by user name
|
||||||
*
|
*
|
||||||
* @param username The name that needs to be fetched. Use user1 for testing. (required)
|
* @param username The name that needs to be fetched. Use user1 for testing. (required)
|
||||||
* @return Call<User>
|
* @return Observable<User>
|
||||||
*/
|
*/
|
||||||
@GET("user/{username}")
|
@GET("user/{username}")
|
||||||
Observable<User> getUserByName(
|
Observable<User> getUserByName(
|
||||||
@ -76,7 +76,7 @@ public interface UserApi {
|
|||||||
*
|
*
|
||||||
* @param username The user name for login (required)
|
* @param username The user name for login (required)
|
||||||
* @param password The password for login in clear text (required)
|
* @param password The password for login in clear text (required)
|
||||||
* @return Call<String>
|
* @return Observable<String>
|
||||||
*/
|
*/
|
||||||
@GET("user/login")
|
@GET("user/login")
|
||||||
Observable<String> loginUser(
|
Observable<String> loginUser(
|
||||||
@ -86,7 +86,7 @@ public interface UserApi {
|
|||||||
/**
|
/**
|
||||||
* Logs out current logged in user session
|
* Logs out current logged in user session
|
||||||
*
|
*
|
||||||
* @return Call<Void>
|
* @return Observable<Void>
|
||||||
*/
|
*/
|
||||||
@GET("user/logout")
|
@GET("user/logout")
|
||||||
Observable<Void> logoutUser();
|
Observable<Void> logoutUser();
|
||||||
@ -97,7 +97,7 @@ public interface UserApi {
|
|||||||
* This can only be done by the logged in user.
|
* This can only be done by the logged in user.
|
||||||
* @param username name that need to be deleted (required)
|
* @param username name that need to be deleted (required)
|
||||||
* @param body Updated user object (required)
|
* @param body Updated user object (required)
|
||||||
* @return Call<Void>
|
* @return Observable<Void>
|
||||||
*/
|
*/
|
||||||
@PUT("user/{username}")
|
@PUT("user/{username}")
|
||||||
Observable<Void> updateUser(
|
Observable<Void> updateUser(
|
||||||
|
@ -1 +1 @@
|
|||||||
2.3.0-SNAPSHOT
|
2.3.1-SNAPSHOT
|
@ -242,7 +242,7 @@ No authorization required
|
|||||||
|
|
||||||
<a name="testEndpointParameters"></a>
|
<a name="testEndpointParameters"></a>
|
||||||
# **testEndpointParameters**
|
# **testEndpointParameters**
|
||||||
> Void 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 假端點 偽のエンドポイント 가짜 엔드 포인트
|
||||||
|
|
||||||
@ -280,8 +280,7 @@ OffsetDateTime dateTime = new OffsetDateTime(); // OffsetDateTime | None
|
|||||||
String password = "password_example"; // String | None
|
String password = "password_example"; // String | None
|
||||||
String paramCallback = "paramCallback_example"; // String | None
|
String paramCallback = "paramCallback_example"; // String | None
|
||||||
try {
|
try {
|
||||||
Void result = 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);
|
||||||
System.out.println(result);
|
|
||||||
} catch (ApiException e) {
|
} catch (ApiException e) {
|
||||||
System.err.println("Exception when calling FakeApi#testEndpointParameters");
|
System.err.println("Exception when calling FakeApi#testEndpointParameters");
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
@ -309,7 +308,7 @@ Name | Type | Description | Notes
|
|||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
[**Void**](.md)
|
null (empty response body)
|
||||||
|
|
||||||
### Authorization
|
### Authorization
|
||||||
|
|
||||||
@ -322,7 +321,7 @@ Name | Type | Description | Notes
|
|||||||
|
|
||||||
<a name="testEnumParameters"></a>
|
<a name="testEnumParameters"></a>
|
||||||
# **testEnumParameters**
|
# **testEnumParameters**
|
||||||
> Void testEnumParameters(enumFormStringArray, enumFormString, enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble)
|
> testEnumParameters(enumFormStringArray, enumFormString, enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble)
|
||||||
|
|
||||||
To test enum parameters
|
To test enum parameters
|
||||||
|
|
||||||
@ -345,8 +344,7 @@ String enumQueryString = "-efg"; // String | Query parameter enum test (string)
|
|||||||
Integer enumQueryInteger = 56; // Integer | Query parameter enum test (double)
|
Integer enumQueryInteger = 56; // Integer | Query parameter enum test (double)
|
||||||
Double enumQueryDouble = 3.4D; // Double | Query parameter enum test (double)
|
Double enumQueryDouble = 3.4D; // Double | Query parameter enum test (double)
|
||||||
try {
|
try {
|
||||||
Void result = apiInstance.testEnumParameters(enumFormStringArray, enumFormString, enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble);
|
apiInstance.testEnumParameters(enumFormStringArray, enumFormString, enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble);
|
||||||
System.out.println(result);
|
|
||||||
} catch (ApiException e) {
|
} catch (ApiException e) {
|
||||||
System.err.println("Exception when calling FakeApi#testEnumParameters");
|
System.err.println("Exception when calling FakeApi#testEnumParameters");
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
@ -368,7 +366,7 @@ Name | Type | Description | Notes
|
|||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
[**Void**](.md)
|
null (empty response body)
|
||||||
|
|
||||||
### Authorization
|
### Authorization
|
||||||
|
|
||||||
@ -381,7 +379,7 @@ No authorization required
|
|||||||
|
|
||||||
<a name="testInlineAdditionalProperties"></a>
|
<a name="testInlineAdditionalProperties"></a>
|
||||||
# **testInlineAdditionalProperties**
|
# **testInlineAdditionalProperties**
|
||||||
> Void testInlineAdditionalProperties(param)
|
> testInlineAdditionalProperties(param)
|
||||||
|
|
||||||
test inline additionalProperties
|
test inline additionalProperties
|
||||||
|
|
||||||
@ -397,8 +395,7 @@ test inline additionalProperties
|
|||||||
FakeApi apiInstance = new FakeApi();
|
FakeApi apiInstance = new FakeApi();
|
||||||
Object param = null; // Object | request body
|
Object param = null; // Object | request body
|
||||||
try {
|
try {
|
||||||
Void result = apiInstance.testInlineAdditionalProperties(param);
|
apiInstance.testInlineAdditionalProperties(param);
|
||||||
System.out.println(result);
|
|
||||||
} catch (ApiException e) {
|
} catch (ApiException e) {
|
||||||
System.err.println("Exception when calling FakeApi#testInlineAdditionalProperties");
|
System.err.println("Exception when calling FakeApi#testInlineAdditionalProperties");
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
@ -413,7 +410,7 @@ Name | Type | Description | Notes
|
|||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
[**Void**](.md)
|
null (empty response body)
|
||||||
|
|
||||||
### Authorization
|
### Authorization
|
||||||
|
|
||||||
@ -426,7 +423,7 @@ No authorization required
|
|||||||
|
|
||||||
<a name="testJsonFormData"></a>
|
<a name="testJsonFormData"></a>
|
||||||
# **testJsonFormData**
|
# **testJsonFormData**
|
||||||
> Void testJsonFormData(param, param2)
|
> testJsonFormData(param, param2)
|
||||||
|
|
||||||
test json serialization of form data
|
test json serialization of form data
|
||||||
|
|
||||||
@ -443,8 +440,7 @@ FakeApi apiInstance = new FakeApi();
|
|||||||
String param = "param_example"; // String | field1
|
String param = "param_example"; // String | field1
|
||||||
String param2 = "param2_example"; // String | field2
|
String param2 = "param2_example"; // String | field2
|
||||||
try {
|
try {
|
||||||
Void result = apiInstance.testJsonFormData(param, param2);
|
apiInstance.testJsonFormData(param, param2);
|
||||||
System.out.println(result);
|
|
||||||
} catch (ApiException e) {
|
} catch (ApiException e) {
|
||||||
System.err.println("Exception when calling FakeApi#testJsonFormData");
|
System.err.println("Exception when calling FakeApi#testJsonFormData");
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
@ -460,7 +456,7 @@ Name | Type | Description | Notes
|
|||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
[**Void**](.md)
|
null (empty response body)
|
||||||
|
|
||||||
### Authorization
|
### Authorization
|
||||||
|
|
||||||
|
@ -16,7 +16,7 @@ Method | HTTP request | Description
|
|||||||
|
|
||||||
<a name="addPet"></a>
|
<a name="addPet"></a>
|
||||||
# **addPet**
|
# **addPet**
|
||||||
> Void addPet(body)
|
> addPet(body)
|
||||||
|
|
||||||
Add a new pet to the store
|
Add a new pet to the store
|
||||||
|
|
||||||
@ -40,8 +40,7 @@ petstore_auth.setAccessToken("YOUR ACCESS TOKEN");
|
|||||||
PetApi apiInstance = new PetApi();
|
PetApi apiInstance = new PetApi();
|
||||||
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 {
|
||||||
Void result = apiInstance.addPet(body);
|
apiInstance.addPet(body);
|
||||||
System.out.println(result);
|
|
||||||
} catch (ApiException e) {
|
} catch (ApiException e) {
|
||||||
System.err.println("Exception when calling PetApi#addPet");
|
System.err.println("Exception when calling PetApi#addPet");
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
@ -56,7 +55,7 @@ Name | Type | Description | Notes
|
|||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
[**Void**](.md)
|
null (empty response body)
|
||||||
|
|
||||||
### Authorization
|
### Authorization
|
||||||
|
|
||||||
@ -69,7 +68,7 @@ Name | Type | Description | Notes
|
|||||||
|
|
||||||
<a name="deletePet"></a>
|
<a name="deletePet"></a>
|
||||||
# **deletePet**
|
# **deletePet**
|
||||||
> Void deletePet(petId, apiKey)
|
> deletePet(petId, apiKey)
|
||||||
|
|
||||||
Deletes a pet
|
Deletes a pet
|
||||||
|
|
||||||
@ -94,8 +93,7 @@ PetApi apiInstance = new PetApi();
|
|||||||
Long petId = 789L; // Long | Pet id to delete
|
Long petId = 789L; // Long | Pet id to delete
|
||||||
String apiKey = "apiKey_example"; // String |
|
String apiKey = "apiKey_example"; // String |
|
||||||
try {
|
try {
|
||||||
Void result = apiInstance.deletePet(petId, apiKey);
|
apiInstance.deletePet(petId, apiKey);
|
||||||
System.out.println(result);
|
|
||||||
} catch (ApiException e) {
|
} catch (ApiException e) {
|
||||||
System.err.println("Exception when calling PetApi#deletePet");
|
System.err.println("Exception when calling PetApi#deletePet");
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
@ -111,7 +109,7 @@ Name | Type | Description | Notes
|
|||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
[**Void**](.md)
|
null (empty response body)
|
||||||
|
|
||||||
### Authorization
|
### Authorization
|
||||||
|
|
||||||
@ -285,7 +283,7 @@ Name | Type | Description | Notes
|
|||||||
|
|
||||||
<a name="updatePet"></a>
|
<a name="updatePet"></a>
|
||||||
# **updatePet**
|
# **updatePet**
|
||||||
> Void updatePet(body)
|
> updatePet(body)
|
||||||
|
|
||||||
Update an existing pet
|
Update an existing pet
|
||||||
|
|
||||||
@ -309,8 +307,7 @@ petstore_auth.setAccessToken("YOUR ACCESS TOKEN");
|
|||||||
PetApi apiInstance = new PetApi();
|
PetApi apiInstance = new PetApi();
|
||||||
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 {
|
||||||
Void result = apiInstance.updatePet(body);
|
apiInstance.updatePet(body);
|
||||||
System.out.println(result);
|
|
||||||
} catch (ApiException e) {
|
} catch (ApiException e) {
|
||||||
System.err.println("Exception when calling PetApi#updatePet");
|
System.err.println("Exception when calling PetApi#updatePet");
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
@ -325,7 +322,7 @@ Name | Type | Description | Notes
|
|||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
[**Void**](.md)
|
null (empty response body)
|
||||||
|
|
||||||
### Authorization
|
### Authorization
|
||||||
|
|
||||||
@ -338,7 +335,7 @@ Name | Type | Description | Notes
|
|||||||
|
|
||||||
<a name="updatePetWithForm"></a>
|
<a name="updatePetWithForm"></a>
|
||||||
# **updatePetWithForm**
|
# **updatePetWithForm**
|
||||||
> Void 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
|
||||||
|
|
||||||
@ -364,8 +361,7 @@ Long petId = 789L; // Long | ID of pet that needs to be updated
|
|||||||
String name = "name_example"; // String | Updated name of the pet
|
String name = "name_example"; // String | Updated name of the pet
|
||||||
String status = "status_example"; // String | Updated status of the pet
|
String status = "status_example"; // String | Updated status of the pet
|
||||||
try {
|
try {
|
||||||
Void result = apiInstance.updatePetWithForm(petId, name, status);
|
apiInstance.updatePetWithForm(petId, name, status);
|
||||||
System.out.println(result);
|
|
||||||
} catch (ApiException e) {
|
} catch (ApiException e) {
|
||||||
System.err.println("Exception when calling PetApi#updatePetWithForm");
|
System.err.println("Exception when calling PetApi#updatePetWithForm");
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
@ -382,7 +378,7 @@ Name | Type | Description | Notes
|
|||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
[**Void**](.md)
|
null (empty response body)
|
||||||
|
|
||||||
### Authorization
|
### Authorization
|
||||||
|
|
||||||
|
@ -12,7 +12,7 @@ Method | HTTP request | Description
|
|||||||
|
|
||||||
<a name="deleteOrder"></a>
|
<a name="deleteOrder"></a>
|
||||||
# **deleteOrder**
|
# **deleteOrder**
|
||||||
> Void deleteOrder(orderId)
|
> deleteOrder(orderId)
|
||||||
|
|
||||||
Delete purchase order by ID
|
Delete purchase order by ID
|
||||||
|
|
||||||
@ -28,8 +28,7 @@ For valid response try integer IDs with value < 1000. Anything above 1000 or
|
|||||||
StoreApi apiInstance = new StoreApi();
|
StoreApi apiInstance = new StoreApi();
|
||||||
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 {
|
||||||
Void result = apiInstance.deleteOrder(orderId);
|
apiInstance.deleteOrder(orderId);
|
||||||
System.out.println(result);
|
|
||||||
} catch (ApiException e) {
|
} catch (ApiException e) {
|
||||||
System.err.println("Exception when calling StoreApi#deleteOrder");
|
System.err.println("Exception when calling StoreApi#deleteOrder");
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
@ -44,7 +43,7 @@ Name | Type | Description | Notes
|
|||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
[**Void**](.md)
|
null (empty response body)
|
||||||
|
|
||||||
### Authorization
|
### Authorization
|
||||||
|
|
||||||
|
@ -16,7 +16,7 @@ Method | HTTP request | Description
|
|||||||
|
|
||||||
<a name="createUser"></a>
|
<a name="createUser"></a>
|
||||||
# **createUser**
|
# **createUser**
|
||||||
> Void createUser(body)
|
> createUser(body)
|
||||||
|
|
||||||
Create user
|
Create user
|
||||||
|
|
||||||
@ -32,8 +32,7 @@ This can only be done by the logged in user.
|
|||||||
UserApi apiInstance = new UserApi();
|
UserApi apiInstance = new UserApi();
|
||||||
User body = new User(); // User | Created user object
|
User body = new User(); // User | Created user object
|
||||||
try {
|
try {
|
||||||
Void result = apiInstance.createUser(body);
|
apiInstance.createUser(body);
|
||||||
System.out.println(result);
|
|
||||||
} catch (ApiException e) {
|
} catch (ApiException e) {
|
||||||
System.err.println("Exception when calling UserApi#createUser");
|
System.err.println("Exception when calling UserApi#createUser");
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
@ -48,7 +47,7 @@ Name | Type | Description | Notes
|
|||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
[**Void**](.md)
|
null (empty response body)
|
||||||
|
|
||||||
### Authorization
|
### Authorization
|
||||||
|
|
||||||
@ -61,7 +60,7 @@ No authorization required
|
|||||||
|
|
||||||
<a name="createUsersWithArrayInput"></a>
|
<a name="createUsersWithArrayInput"></a>
|
||||||
# **createUsersWithArrayInput**
|
# **createUsersWithArrayInput**
|
||||||
> Void createUsersWithArrayInput(body)
|
> createUsersWithArrayInput(body)
|
||||||
|
|
||||||
Creates list of users with given input array
|
Creates list of users with given input array
|
||||||
|
|
||||||
@ -77,8 +76,7 @@ Creates list of users with given input array
|
|||||||
UserApi apiInstance = new UserApi();
|
UserApi apiInstance = new UserApi();
|
||||||
List<User> body = Arrays.asList(new User()); // List<User> | List of user object
|
List<User> body = Arrays.asList(new User()); // List<User> | List of user object
|
||||||
try {
|
try {
|
||||||
Void result = apiInstance.createUsersWithArrayInput(body);
|
apiInstance.createUsersWithArrayInput(body);
|
||||||
System.out.println(result);
|
|
||||||
} catch (ApiException e) {
|
} catch (ApiException e) {
|
||||||
System.err.println("Exception when calling UserApi#createUsersWithArrayInput");
|
System.err.println("Exception when calling UserApi#createUsersWithArrayInput");
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
@ -93,7 +91,7 @@ Name | Type | Description | Notes
|
|||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
[**Void**](.md)
|
null (empty response body)
|
||||||
|
|
||||||
### Authorization
|
### Authorization
|
||||||
|
|
||||||
@ -106,7 +104,7 @@ No authorization required
|
|||||||
|
|
||||||
<a name="createUsersWithListInput"></a>
|
<a name="createUsersWithListInput"></a>
|
||||||
# **createUsersWithListInput**
|
# **createUsersWithListInput**
|
||||||
> Void createUsersWithListInput(body)
|
> createUsersWithListInput(body)
|
||||||
|
|
||||||
Creates list of users with given input array
|
Creates list of users with given input array
|
||||||
|
|
||||||
@ -122,8 +120,7 @@ Creates list of users with given input array
|
|||||||
UserApi apiInstance = new UserApi();
|
UserApi apiInstance = new UserApi();
|
||||||
List<User> body = Arrays.asList(new User()); // List<User> | List of user object
|
List<User> body = Arrays.asList(new User()); // List<User> | List of user object
|
||||||
try {
|
try {
|
||||||
Void result = apiInstance.createUsersWithListInput(body);
|
apiInstance.createUsersWithListInput(body);
|
||||||
System.out.println(result);
|
|
||||||
} catch (ApiException e) {
|
} catch (ApiException e) {
|
||||||
System.err.println("Exception when calling UserApi#createUsersWithListInput");
|
System.err.println("Exception when calling UserApi#createUsersWithListInput");
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
@ -138,7 +135,7 @@ Name | Type | Description | Notes
|
|||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
[**Void**](.md)
|
null (empty response body)
|
||||||
|
|
||||||
### Authorization
|
### Authorization
|
||||||
|
|
||||||
@ -151,7 +148,7 @@ No authorization required
|
|||||||
|
|
||||||
<a name="deleteUser"></a>
|
<a name="deleteUser"></a>
|
||||||
# **deleteUser**
|
# **deleteUser**
|
||||||
> Void deleteUser(username)
|
> deleteUser(username)
|
||||||
|
|
||||||
Delete user
|
Delete user
|
||||||
|
|
||||||
@ -167,8 +164,7 @@ This can only be done by the logged in user.
|
|||||||
UserApi apiInstance = new UserApi();
|
UserApi apiInstance = new UserApi();
|
||||||
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 {
|
||||||
Void result = apiInstance.deleteUser(username);
|
apiInstance.deleteUser(username);
|
||||||
System.out.println(result);
|
|
||||||
} catch (ApiException e) {
|
} catch (ApiException e) {
|
||||||
System.err.println("Exception when calling UserApi#deleteUser");
|
System.err.println("Exception when calling UserApi#deleteUser");
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
@ -183,7 +179,7 @@ Name | Type | Description | Notes
|
|||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
[**Void**](.md)
|
null (empty response body)
|
||||||
|
|
||||||
### Authorization
|
### Authorization
|
||||||
|
|
||||||
@ -288,7 +284,7 @@ No authorization required
|
|||||||
|
|
||||||
<a name="logoutUser"></a>
|
<a name="logoutUser"></a>
|
||||||
# **logoutUser**
|
# **logoutUser**
|
||||||
> Void logoutUser()
|
> logoutUser()
|
||||||
|
|
||||||
Logs out current logged in user session
|
Logs out current logged in user session
|
||||||
|
|
||||||
@ -303,8 +299,7 @@ Logs out current logged in user session
|
|||||||
|
|
||||||
UserApi apiInstance = new UserApi();
|
UserApi apiInstance = new UserApi();
|
||||||
try {
|
try {
|
||||||
Void result = apiInstance.logoutUser();
|
apiInstance.logoutUser();
|
||||||
System.out.println(result);
|
|
||||||
} catch (ApiException e) {
|
} catch (ApiException e) {
|
||||||
System.err.println("Exception when calling UserApi#logoutUser");
|
System.err.println("Exception when calling UserApi#logoutUser");
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
@ -316,7 +311,7 @@ This endpoint does not need any parameter.
|
|||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
[**Void**](.md)
|
null (empty response body)
|
||||||
|
|
||||||
### Authorization
|
### Authorization
|
||||||
|
|
||||||
@ -329,7 +324,7 @@ No authorization required
|
|||||||
|
|
||||||
<a name="updateUser"></a>
|
<a name="updateUser"></a>
|
||||||
# **updateUser**
|
# **updateUser**
|
||||||
> Void updateUser(username, body)
|
> updateUser(username, body)
|
||||||
|
|
||||||
Updated user
|
Updated user
|
||||||
|
|
||||||
@ -346,8 +341,7 @@ UserApi apiInstance = new UserApi();
|
|||||||
String username = "username_example"; // String | name that need to be deleted
|
String username = "username_example"; // String | name that need to be deleted
|
||||||
User body = new User(); // User | Updated user object
|
User body = new User(); // User | Updated user object
|
||||||
try {
|
try {
|
||||||
Void result = apiInstance.updateUser(username, body);
|
apiInstance.updateUser(username, body);
|
||||||
System.out.println(result);
|
|
||||||
} catch (ApiException e) {
|
} catch (ApiException e) {
|
||||||
System.err.println("Exception when calling UserApi#updateUser");
|
System.err.println("Exception when calling UserApi#updateUser");
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
@ -363,7 +357,7 @@ Name | Type | Description | Notes
|
|||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
[**Void**](.md)
|
null (empty response body)
|
||||||
|
|
||||||
### Authorization
|
### Authorization
|
||||||
|
|
||||||
|
@ -3,6 +3,7 @@ package io.swagger.client.api;
|
|||||||
import io.swagger.client.CollectionFormats.*;
|
import io.swagger.client.CollectionFormats.*;
|
||||||
|
|
||||||
import io.reactivex.Observable;
|
import io.reactivex.Observable;
|
||||||
|
import io.reactivex.Completable;
|
||||||
import retrofit2.http.*;
|
import retrofit2.http.*;
|
||||||
|
|
||||||
import okhttp3.RequestBody;
|
import okhttp3.RequestBody;
|
||||||
@ -20,7 +21,7 @@ public interface AnotherFakeApi {
|
|||||||
* To test special tags
|
* To test special tags
|
||||||
* To test special tags
|
* To test special tags
|
||||||
* @param body client model (required)
|
* @param body client model (required)
|
||||||
* @return Call<Client>
|
* @return Observable<Client>
|
||||||
*/
|
*/
|
||||||
@Headers({
|
@Headers({
|
||||||
"Content-Type:application/json"
|
"Content-Type:application/json"
|
||||||
|
@ -3,6 +3,7 @@ package io.swagger.client.api;
|
|||||||
import io.swagger.client.CollectionFormats.*;
|
import io.swagger.client.CollectionFormats.*;
|
||||||
|
|
||||||
import io.reactivex.Observable;
|
import io.reactivex.Observable;
|
||||||
|
import io.reactivex.Completable;
|
||||||
import retrofit2.http.*;
|
import retrofit2.http.*;
|
||||||
|
|
||||||
import okhttp3.RequestBody;
|
import okhttp3.RequestBody;
|
||||||
@ -24,7 +25,7 @@ public interface FakeApi {
|
|||||||
*
|
*
|
||||||
* Test serialization of outer boolean types
|
* Test serialization of outer boolean types
|
||||||
* @param body Input boolean as post body (optional)
|
* @param body Input boolean as post body (optional)
|
||||||
* @return Call<Boolean>
|
* @return Observable<Boolean>
|
||||||
*/
|
*/
|
||||||
@POST("fake/outer/boolean")
|
@POST("fake/outer/boolean")
|
||||||
Observable<Boolean> fakeOuterBooleanSerialize(
|
Observable<Boolean> fakeOuterBooleanSerialize(
|
||||||
@ -35,7 +36,7 @@ public interface FakeApi {
|
|||||||
*
|
*
|
||||||
* Test serialization of object with outer number type
|
* Test serialization of object with outer number type
|
||||||
* @param body Input composite as post body (optional)
|
* @param body Input composite as post body (optional)
|
||||||
* @return Call<OuterComposite>
|
* @return Observable<OuterComposite>
|
||||||
*/
|
*/
|
||||||
@POST("fake/outer/composite")
|
@POST("fake/outer/composite")
|
||||||
Observable<OuterComposite> fakeOuterCompositeSerialize(
|
Observable<OuterComposite> fakeOuterCompositeSerialize(
|
||||||
@ -46,7 +47,7 @@ public interface FakeApi {
|
|||||||
*
|
*
|
||||||
* Test serialization of outer number types
|
* Test serialization of outer number types
|
||||||
* @param body Input number as post body (optional)
|
* @param body Input number as post body (optional)
|
||||||
* @return Call<BigDecimal>
|
* @return Observable<BigDecimal>
|
||||||
*/
|
*/
|
||||||
@POST("fake/outer/number")
|
@POST("fake/outer/number")
|
||||||
Observable<BigDecimal> fakeOuterNumberSerialize(
|
Observable<BigDecimal> fakeOuterNumberSerialize(
|
||||||
@ -57,7 +58,7 @@ public interface FakeApi {
|
|||||||
*
|
*
|
||||||
* Test serialization of outer string types
|
* Test serialization of outer string types
|
||||||
* @param body Input string as post body (optional)
|
* @param body Input string as post body (optional)
|
||||||
* @return Call<String>
|
* @return Observable<String>
|
||||||
*/
|
*/
|
||||||
@POST("fake/outer/string")
|
@POST("fake/outer/string")
|
||||||
Observable<String> fakeOuterStringSerialize(
|
Observable<String> fakeOuterStringSerialize(
|
||||||
@ -68,7 +69,7 @@ public interface FakeApi {
|
|||||||
* To test \"client\" model
|
* To test \"client\" model
|
||||||
* To test \"client\" model
|
* To test \"client\" model
|
||||||
* @param body client model (required)
|
* @param body client model (required)
|
||||||
* @return Call<Client>
|
* @return Observable<Client>
|
||||||
*/
|
*/
|
||||||
@Headers({
|
@Headers({
|
||||||
"Content-Type:application/json"
|
"Content-Type:application/json"
|
||||||
@ -95,11 +96,11 @@ public interface FakeApi {
|
|||||||
* @param dateTime None (optional)
|
* @param dateTime None (optional)
|
||||||
* @param password None (optional)
|
* @param password None (optional)
|
||||||
* @param paramCallback None (optional)
|
* @param paramCallback None (optional)
|
||||||
* @return Call<Void>
|
* @return Completable
|
||||||
*/
|
*/
|
||||||
@retrofit2.http.FormUrlEncoded
|
@retrofit2.http.FormUrlEncoded
|
||||||
@POST("fake")
|
@POST("fake")
|
||||||
Observable<Void> testEndpointParameters(
|
Completable testEndpointParameters(
|
||||||
@retrofit2.http.Field("number") BigDecimal number, @retrofit2.http.Field("double") Double _double, @retrofit2.http.Field("pattern_without_delimiter") String patternWithoutDelimiter, @retrofit2.http.Field("byte") byte[] _byte, @retrofit2.http.Field("integer") Integer integer, @retrofit2.http.Field("int32") Integer int32, @retrofit2.http.Field("int64") Long int64, @retrofit2.http.Field("float") Float _float, @retrofit2.http.Field("string") String string, @retrofit2.http.Field("binary") byte[] binary, @retrofit2.http.Field("date") LocalDate date, @retrofit2.http.Field("dateTime") OffsetDateTime dateTime, @retrofit2.http.Field("password") String password, @retrofit2.http.Field("callback") String paramCallback
|
@retrofit2.http.Field("number") BigDecimal number, @retrofit2.http.Field("double") Double _double, @retrofit2.http.Field("pattern_without_delimiter") String patternWithoutDelimiter, @retrofit2.http.Field("byte") byte[] _byte, @retrofit2.http.Field("integer") Integer integer, @retrofit2.http.Field("int32") Integer int32, @retrofit2.http.Field("int64") Long int64, @retrofit2.http.Field("float") Float _float, @retrofit2.http.Field("string") String string, @retrofit2.http.Field("binary") byte[] binary, @retrofit2.http.Field("date") LocalDate date, @retrofit2.http.Field("dateTime") OffsetDateTime dateTime, @retrofit2.http.Field("password") String password, @retrofit2.http.Field("callback") String paramCallback
|
||||||
);
|
);
|
||||||
|
|
||||||
@ -114,11 +115,11 @@ public interface FakeApi {
|
|||||||
* @param enumQueryString Query parameter enum test (string) (optional, default to -efg)
|
* @param enumQueryString Query parameter enum test (string) (optional, default to -efg)
|
||||||
* @param enumQueryInteger Query parameter enum test (double) (optional)
|
* @param enumQueryInteger Query parameter enum test (double) (optional)
|
||||||
* @param enumQueryDouble Query parameter enum test (double) (optional)
|
* @param enumQueryDouble Query parameter enum test (double) (optional)
|
||||||
* @return Call<Void>
|
* @return Completable
|
||||||
*/
|
*/
|
||||||
@retrofit2.http.FormUrlEncoded
|
@retrofit2.http.FormUrlEncoded
|
||||||
@GET("fake")
|
@GET("fake")
|
||||||
Observable<Void> testEnumParameters(
|
Completable testEnumParameters(
|
||||||
@retrofit2.http.Field("enum_form_string_array") List<String> enumFormStringArray, @retrofit2.http.Field("enum_form_string") String enumFormString, @retrofit2.http.Header("enum_header_string_array") List<String> enumHeaderStringArray, @retrofit2.http.Header("enum_header_string") String enumHeaderString, @retrofit2.http.Query("enum_query_string_array") CSVParams enumQueryStringArray, @retrofit2.http.Query("enum_query_string") String enumQueryString, @retrofit2.http.Query("enum_query_integer") Integer enumQueryInteger, @retrofit2.http.Field("enum_query_double") Double enumQueryDouble
|
@retrofit2.http.Field("enum_form_string_array") List<String> enumFormStringArray, @retrofit2.http.Field("enum_form_string") String enumFormString, @retrofit2.http.Header("enum_header_string_array") List<String> enumHeaderStringArray, @retrofit2.http.Header("enum_header_string") String enumHeaderString, @retrofit2.http.Query("enum_query_string_array") CSVParams enumQueryStringArray, @retrofit2.http.Query("enum_query_string") String enumQueryString, @retrofit2.http.Query("enum_query_integer") Integer enumQueryInteger, @retrofit2.http.Field("enum_query_double") Double enumQueryDouble
|
||||||
);
|
);
|
||||||
|
|
||||||
@ -126,13 +127,13 @@ public interface FakeApi {
|
|||||||
* test inline additionalProperties
|
* test inline additionalProperties
|
||||||
*
|
*
|
||||||
* @param param request body (required)
|
* @param param request body (required)
|
||||||
* @return Call<Void>
|
* @return Completable
|
||||||
*/
|
*/
|
||||||
@Headers({
|
@Headers({
|
||||||
"Content-Type:application/json"
|
"Content-Type:application/json"
|
||||||
})
|
})
|
||||||
@POST("fake/inline-additionalProperties")
|
@POST("fake/inline-additionalProperties")
|
||||||
Observable<Void> testInlineAdditionalProperties(
|
Completable testInlineAdditionalProperties(
|
||||||
@retrofit2.http.Body Object param
|
@retrofit2.http.Body Object param
|
||||||
);
|
);
|
||||||
|
|
||||||
@ -141,11 +142,11 @@ public interface FakeApi {
|
|||||||
*
|
*
|
||||||
* @param param field1 (required)
|
* @param param field1 (required)
|
||||||
* @param param2 field2 (required)
|
* @param param2 field2 (required)
|
||||||
* @return Call<Void>
|
* @return Completable
|
||||||
*/
|
*/
|
||||||
@retrofit2.http.FormUrlEncoded
|
@retrofit2.http.FormUrlEncoded
|
||||||
@GET("fake/jsonFormData")
|
@GET("fake/jsonFormData")
|
||||||
Observable<Void> testJsonFormData(
|
Completable testJsonFormData(
|
||||||
@retrofit2.http.Field("param") String param, @retrofit2.http.Field("param2") String param2
|
@retrofit2.http.Field("param") String param, @retrofit2.http.Field("param2") String param2
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -3,6 +3,7 @@ package io.swagger.client.api;
|
|||||||
import io.swagger.client.CollectionFormats.*;
|
import io.swagger.client.CollectionFormats.*;
|
||||||
|
|
||||||
import io.reactivex.Observable;
|
import io.reactivex.Observable;
|
||||||
|
import io.reactivex.Completable;
|
||||||
import retrofit2.http.*;
|
import retrofit2.http.*;
|
||||||
|
|
||||||
import okhttp3.RequestBody;
|
import okhttp3.RequestBody;
|
||||||
@ -20,7 +21,7 @@ public interface FakeClassnameTags123Api {
|
|||||||
* To test class name in snake case
|
* To test class name in snake case
|
||||||
*
|
*
|
||||||
* @param body client model (required)
|
* @param body client model (required)
|
||||||
* @return Call<Client>
|
* @return Observable<Client>
|
||||||
*/
|
*/
|
||||||
@Headers({
|
@Headers({
|
||||||
"Content-Type:application/json"
|
"Content-Type:application/json"
|
||||||
|
@ -3,6 +3,7 @@ package io.swagger.client.api;
|
|||||||
import io.swagger.client.CollectionFormats.*;
|
import io.swagger.client.CollectionFormats.*;
|
||||||
|
|
||||||
import io.reactivex.Observable;
|
import io.reactivex.Observable;
|
||||||
|
import io.reactivex.Completable;
|
||||||
import retrofit2.http.*;
|
import retrofit2.http.*;
|
||||||
|
|
||||||
import okhttp3.RequestBody;
|
import okhttp3.RequestBody;
|
||||||
@ -22,13 +23,13 @@ public interface PetApi {
|
|||||||
* Add a new pet to the store
|
* Add a new pet to the store
|
||||||
*
|
*
|
||||||
* @param body Pet object that needs to be added to the store (required)
|
* @param body Pet object that needs to be added to the store (required)
|
||||||
* @return Call<Void>
|
* @return Completable
|
||||||
*/
|
*/
|
||||||
@Headers({
|
@Headers({
|
||||||
"Content-Type:application/json"
|
"Content-Type:application/json"
|
||||||
})
|
})
|
||||||
@POST("pet")
|
@POST("pet")
|
||||||
Observable<Void> addPet(
|
Completable addPet(
|
||||||
@retrofit2.http.Body Pet body
|
@retrofit2.http.Body Pet body
|
||||||
);
|
);
|
||||||
|
|
||||||
@ -37,10 +38,10 @@ public interface PetApi {
|
|||||||
*
|
*
|
||||||
* @param petId Pet id to delete (required)
|
* @param petId Pet id to delete (required)
|
||||||
* @param apiKey (optional)
|
* @param apiKey (optional)
|
||||||
* @return Call<Void>
|
* @return Completable
|
||||||
*/
|
*/
|
||||||
@DELETE("pet/{petId}")
|
@DELETE("pet/{petId}")
|
||||||
Observable<Void> deletePet(
|
Completable deletePet(
|
||||||
@retrofit2.http.Path("petId") Long petId, @retrofit2.http.Header("api_key") String apiKey
|
@retrofit2.http.Path("petId") Long petId, @retrofit2.http.Header("api_key") String apiKey
|
||||||
);
|
);
|
||||||
|
|
||||||
@ -48,7 +49,7 @@ public interface PetApi {
|
|||||||
* 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
|
||||||
* @param status Status values that need to be considered for filter (required)
|
* @param status Status values that need to be considered for filter (required)
|
||||||
* @return Call<List<Pet>>
|
* @return Observable<List<Pet>>
|
||||||
*/
|
*/
|
||||||
@GET("pet/findByStatus")
|
@GET("pet/findByStatus")
|
||||||
Observable<List<Pet>> findPetsByStatus(
|
Observable<List<Pet>> findPetsByStatus(
|
||||||
@ -59,7 +60,7 @@ public interface PetApi {
|
|||||||
* 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.
|
||||||
* @param tags Tags to filter by (required)
|
* @param tags Tags to filter by (required)
|
||||||
* @return Call<List<Pet>>
|
* @return Observable<List<Pet>>
|
||||||
*/
|
*/
|
||||||
@GET("pet/findByTags")
|
@GET("pet/findByTags")
|
||||||
Observable<List<Pet>> findPetsByTags(
|
Observable<List<Pet>> findPetsByTags(
|
||||||
@ -70,7 +71,7 @@ public interface PetApi {
|
|||||||
* Find pet by ID
|
* Find pet by ID
|
||||||
* Returns a single pet
|
* Returns a single pet
|
||||||
* @param petId ID of pet to return (required)
|
* @param petId ID of pet to return (required)
|
||||||
* @return Call<Pet>
|
* @return Observable<Pet>
|
||||||
*/
|
*/
|
||||||
@GET("pet/{petId}")
|
@GET("pet/{petId}")
|
||||||
Observable<Pet> getPetById(
|
Observable<Pet> getPetById(
|
||||||
@ -81,13 +82,13 @@ public interface PetApi {
|
|||||||
* Update an existing pet
|
* Update an existing pet
|
||||||
*
|
*
|
||||||
* @param body Pet object that needs to be added to the store (required)
|
* @param body Pet object that needs to be added to the store (required)
|
||||||
* @return Call<Void>
|
* @return Completable
|
||||||
*/
|
*/
|
||||||
@Headers({
|
@Headers({
|
||||||
"Content-Type:application/json"
|
"Content-Type:application/json"
|
||||||
})
|
})
|
||||||
@PUT("pet")
|
@PUT("pet")
|
||||||
Observable<Void> updatePet(
|
Completable updatePet(
|
||||||
@retrofit2.http.Body Pet body
|
@retrofit2.http.Body Pet body
|
||||||
);
|
);
|
||||||
|
|
||||||
@ -97,11 +98,11 @@ public interface PetApi {
|
|||||||
* @param petId ID of pet that needs to be updated (required)
|
* @param petId ID of pet that needs to be updated (required)
|
||||||
* @param name Updated name of the pet (optional)
|
* @param name Updated name of the pet (optional)
|
||||||
* @param status Updated status of the pet (optional)
|
* @param status Updated status of the pet (optional)
|
||||||
* @return Call<Void>
|
* @return Completable
|
||||||
*/
|
*/
|
||||||
@retrofit2.http.FormUrlEncoded
|
@retrofit2.http.FormUrlEncoded
|
||||||
@POST("pet/{petId}")
|
@POST("pet/{petId}")
|
||||||
Observable<Void> updatePetWithForm(
|
Completable updatePetWithForm(
|
||||||
@retrofit2.http.Path("petId") Long petId, @retrofit2.http.Field("name") String name, @retrofit2.http.Field("status") String status
|
@retrofit2.http.Path("petId") Long petId, @retrofit2.http.Field("name") String name, @retrofit2.http.Field("status") String status
|
||||||
);
|
);
|
||||||
|
|
||||||
@ -111,7 +112,7 @@ public interface PetApi {
|
|||||||
* @param petId ID of pet to update (required)
|
* @param petId ID of pet to update (required)
|
||||||
* @param additionalMetadata Additional data to pass to server (optional)
|
* @param additionalMetadata Additional data to pass to server (optional)
|
||||||
* @param file file to upload (optional)
|
* @param file file to upload (optional)
|
||||||
* @return Call<ModelApiResponse>
|
* @return Observable<ModelApiResponse>
|
||||||
*/
|
*/
|
||||||
@retrofit2.http.Multipart
|
@retrofit2.http.Multipart
|
||||||
@POST("pet/{petId}/uploadImage")
|
@POST("pet/{petId}/uploadImage")
|
||||||
|
@ -3,6 +3,7 @@ package io.swagger.client.api;
|
|||||||
import io.swagger.client.CollectionFormats.*;
|
import io.swagger.client.CollectionFormats.*;
|
||||||
|
|
||||||
import io.reactivex.Observable;
|
import io.reactivex.Observable;
|
||||||
|
import io.reactivex.Completable;
|
||||||
import retrofit2.http.*;
|
import retrofit2.http.*;
|
||||||
|
|
||||||
import okhttp3.RequestBody;
|
import okhttp3.RequestBody;
|
||||||
@ -20,17 +21,17 @@ public interface StoreApi {
|
|||||||
* Delete purchase order by ID
|
* Delete purchase order by ID
|
||||||
* For valid response try integer IDs with value < 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
|
||||||
* @param orderId ID of the order that needs to be deleted (required)
|
* @param orderId ID of the order that needs to be deleted (required)
|
||||||
* @return Call<Void>
|
* @return Completable
|
||||||
*/
|
*/
|
||||||
@DELETE("store/order/{order_id}")
|
@DELETE("store/order/{order_id}")
|
||||||
Observable<Void> deleteOrder(
|
Completable deleteOrder(
|
||||||
@retrofit2.http.Path("order_id") String orderId
|
@retrofit2.http.Path("order_id") String orderId
|
||||||
);
|
);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 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
|
||||||
* @return Call<Map<String, Integer>>
|
* @return Observable<Map<String, Integer>>
|
||||||
*/
|
*/
|
||||||
@GET("store/inventory")
|
@GET("store/inventory")
|
||||||
Observable<Map<String, Integer>> getInventory();
|
Observable<Map<String, Integer>> getInventory();
|
||||||
@ -40,7 +41,7 @@ public interface StoreApi {
|
|||||||
* Find purchase order by ID
|
* Find purchase order by ID
|
||||||
* For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions
|
* For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions
|
||||||
* @param orderId ID of pet that needs to be fetched (required)
|
* @param orderId ID of pet that needs to be fetched (required)
|
||||||
* @return Call<Order>
|
* @return Observable<Order>
|
||||||
*/
|
*/
|
||||||
@GET("store/order/{order_id}")
|
@GET("store/order/{order_id}")
|
||||||
Observable<Order> getOrderById(
|
Observable<Order> getOrderById(
|
||||||
@ -51,7 +52,7 @@ public interface StoreApi {
|
|||||||
* Place an order for a pet
|
* Place an order for a pet
|
||||||
*
|
*
|
||||||
* @param body order placed for purchasing the pet (required)
|
* @param body order placed for purchasing the pet (required)
|
||||||
* @return Call<Order>
|
* @return Observable<Order>
|
||||||
*/
|
*/
|
||||||
@POST("store/order")
|
@POST("store/order")
|
||||||
Observable<Order> placeOrder(
|
Observable<Order> placeOrder(
|
||||||
|
@ -3,6 +3,7 @@ package io.swagger.client.api;
|
|||||||
import io.swagger.client.CollectionFormats.*;
|
import io.swagger.client.CollectionFormats.*;
|
||||||
|
|
||||||
import io.reactivex.Observable;
|
import io.reactivex.Observable;
|
||||||
|
import io.reactivex.Completable;
|
||||||
import retrofit2.http.*;
|
import retrofit2.http.*;
|
||||||
|
|
||||||
import okhttp3.RequestBody;
|
import okhttp3.RequestBody;
|
||||||
@ -20,10 +21,10 @@ public interface UserApi {
|
|||||||
* Create user
|
* Create user
|
||||||
* This can only be done by the logged in user.
|
* This can only be done by the logged in user.
|
||||||
* @param body Created user object (required)
|
* @param body Created user object (required)
|
||||||
* @return Call<Void>
|
* @return Completable
|
||||||
*/
|
*/
|
||||||
@POST("user")
|
@POST("user")
|
||||||
Observable<Void> createUser(
|
Completable createUser(
|
||||||
@retrofit2.http.Body User body
|
@retrofit2.http.Body User body
|
||||||
);
|
);
|
||||||
|
|
||||||
@ -31,10 +32,10 @@ public interface UserApi {
|
|||||||
* Creates list of users with given input array
|
* Creates list of users with given input array
|
||||||
*
|
*
|
||||||
* @param body List of user object (required)
|
* @param body List of user object (required)
|
||||||
* @return Call<Void>
|
* @return Completable
|
||||||
*/
|
*/
|
||||||
@POST("user/createWithArray")
|
@POST("user/createWithArray")
|
||||||
Observable<Void> createUsersWithArrayInput(
|
Completable createUsersWithArrayInput(
|
||||||
@retrofit2.http.Body List<User> body
|
@retrofit2.http.Body List<User> body
|
||||||
);
|
);
|
||||||
|
|
||||||
@ -42,10 +43,10 @@ public interface UserApi {
|
|||||||
* Creates list of users with given input array
|
* Creates list of users with given input array
|
||||||
*
|
*
|
||||||
* @param body List of user object (required)
|
* @param body List of user object (required)
|
||||||
* @return Call<Void>
|
* @return Completable
|
||||||
*/
|
*/
|
||||||
@POST("user/createWithList")
|
@POST("user/createWithList")
|
||||||
Observable<Void> createUsersWithListInput(
|
Completable createUsersWithListInput(
|
||||||
@retrofit2.http.Body List<User> body
|
@retrofit2.http.Body List<User> body
|
||||||
);
|
);
|
||||||
|
|
||||||
@ -53,10 +54,10 @@ public interface UserApi {
|
|||||||
* Delete user
|
* Delete user
|
||||||
* This can only be done by the logged in user.
|
* This can only be done by the logged in user.
|
||||||
* @param username The name that needs to be deleted (required)
|
* @param username The name that needs to be deleted (required)
|
||||||
* @return Call<Void>
|
* @return Completable
|
||||||
*/
|
*/
|
||||||
@DELETE("user/{username}")
|
@DELETE("user/{username}")
|
||||||
Observable<Void> deleteUser(
|
Completable deleteUser(
|
||||||
@retrofit2.http.Path("username") String username
|
@retrofit2.http.Path("username") String username
|
||||||
);
|
);
|
||||||
|
|
||||||
@ -64,7 +65,7 @@ public interface UserApi {
|
|||||||
* Get user by user name
|
* Get user by user name
|
||||||
*
|
*
|
||||||
* @param username The name that needs to be fetched. Use user1 for testing. (required)
|
* @param username The name that needs to be fetched. Use user1 for testing. (required)
|
||||||
* @return Call<User>
|
* @return Observable<User>
|
||||||
*/
|
*/
|
||||||
@GET("user/{username}")
|
@GET("user/{username}")
|
||||||
Observable<User> getUserByName(
|
Observable<User> getUserByName(
|
||||||
@ -76,7 +77,7 @@ public interface UserApi {
|
|||||||
*
|
*
|
||||||
* @param username The user name for login (required)
|
* @param username The user name for login (required)
|
||||||
* @param password The password for login in clear text (required)
|
* @param password The password for login in clear text (required)
|
||||||
* @return Call<String>
|
* @return Observable<String>
|
||||||
*/
|
*/
|
||||||
@GET("user/login")
|
@GET("user/login")
|
||||||
Observable<String> loginUser(
|
Observable<String> loginUser(
|
||||||
@ -86,10 +87,10 @@ public interface UserApi {
|
|||||||
/**
|
/**
|
||||||
* Logs out current logged in user session
|
* Logs out current logged in user session
|
||||||
*
|
*
|
||||||
* @return Call<Void>
|
* @return Completable
|
||||||
*/
|
*/
|
||||||
@GET("user/logout")
|
@GET("user/logout")
|
||||||
Observable<Void> logoutUser();
|
Completable logoutUser();
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -97,10 +98,10 @@ public interface UserApi {
|
|||||||
* This can only be done by the logged in user.
|
* This can only be done by the logged in user.
|
||||||
* @param username name that need to be deleted (required)
|
* @param username name that need to be deleted (required)
|
||||||
* @param body Updated user object (required)
|
* @param body Updated user object (required)
|
||||||
* @return Call<Void>
|
* @return Completable
|
||||||
*/
|
*/
|
||||||
@PUT("user/{username}")
|
@PUT("user/{username}")
|
||||||
Observable<Void> updateUser(
|
Completable updateUser(
|
||||||
@retrofit2.http.Path("username") String username, @retrofit2.http.Body User body
|
@retrofit2.http.Path("username") String username, @retrofit2.http.Body User body
|
||||||
);
|
);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user