forked from loafle/openapi-generator-original
Merge pull request #3293 from wing328/retrofit2_doc_warning
[Java][Retrofit2] remove javadoc, pom.xml warnings
This commit is contained in:
commit
7c05b902ac
@ -74,7 +74,7 @@ public class ApiClient {
|
||||
|
||||
/**
|
||||
* Basic constructor for single auth name
|
||||
* @param authName
|
||||
* @param authName Authentication name
|
||||
*/
|
||||
public ApiClient(String authName) {
|
||||
this(new String[]{authName});
|
||||
@ -82,8 +82,8 @@ public class ApiClient {
|
||||
|
||||
/**
|
||||
* Helper constructor for single api key
|
||||
* @param authName
|
||||
* @param apiKey
|
||||
* @param authName Authentication name
|
||||
* @param apiKey API key
|
||||
*/
|
||||
public ApiClient(String authName, String apiKey) {
|
||||
this(authName);
|
||||
@ -92,9 +92,9 @@ public class ApiClient {
|
||||
|
||||
/**
|
||||
* Helper constructor for single basic auth or password oauth2
|
||||
* @param authName
|
||||
* @param username
|
||||
* @param password
|
||||
* @param authName Authentication name
|
||||
* @param username Username
|
||||
* @param password Password
|
||||
*/
|
||||
public ApiClient(String authName, String username, String password) {
|
||||
this(authName);
|
||||
@ -103,11 +103,11 @@ public class ApiClient {
|
||||
|
||||
/**
|
||||
* Helper constructor for single password oauth2
|
||||
* @param authName
|
||||
* @param clientId
|
||||
* @param secret
|
||||
* @param username
|
||||
* @param password
|
||||
* @param authName Authentication name
|
||||
* @param clientId Client ID
|
||||
* @param secret Client Secret
|
||||
* @param username Username
|
||||
* @param password Password
|
||||
*/
|
||||
public ApiClient(String authName, String clientId, String secret, String username, String password) {
|
||||
this(authName);
|
||||
@ -154,7 +154,7 @@ public class ApiClient {
|
||||
|
||||
/**
|
||||
* Helper method to configure the first api key found
|
||||
* @param apiKey
|
||||
* @param apiKey API key
|
||||
*/
|
||||
private void setApiKey(String apiKey) {
|
||||
for(Interceptor apiAuthorization : apiAuthorizations.values()) {
|
||||
@ -168,8 +168,8 @@ public class ApiClient {
|
||||
|
||||
/**
|
||||
* Helper method to configure the username/password for basic auth or password oauth
|
||||
* @param username
|
||||
* @param password
|
||||
* @param username Username
|
||||
* @param password Password
|
||||
*/
|
||||
private void setCredentials(String username, String password) {
|
||||
for(Interceptor apiAuthorization : apiAuthorizations.values()) {
|
||||
@ -188,7 +188,7 @@ public class ApiClient {
|
||||
|
||||
/**
|
||||
* Helper method to configure the token endpoint of the first oauth found in the apiAuthorizations (there should be only one)
|
||||
* @return
|
||||
* @return Token request builder
|
||||
*/
|
||||
public TokenRequestBuilder getTokenEndPoint() {
|
||||
for(Interceptor apiAuthorization : apiAuthorizations.values()) {
|
||||
@ -202,7 +202,7 @@ public class ApiClient {
|
||||
|
||||
/**
|
||||
* Helper method to configure authorization endpoint of the first oauth found in the apiAuthorizations (there should be only one)
|
||||
* @return
|
||||
* @return Authentication request builder
|
||||
*/
|
||||
public AuthenticationRequestBuilder getAuthorizationEndPoint() {
|
||||
for(Interceptor apiAuthorization : apiAuthorizations.values()) {
|
||||
@ -216,7 +216,7 @@ public class ApiClient {
|
||||
|
||||
/**
|
||||
* Helper method to pre-set the oauth access token of the first oauth found in the apiAuthorizations (there should be only one)
|
||||
* @param accessToken
|
||||
* @param accessToken Access token
|
||||
*/
|
||||
public void setAccessToken(String accessToken) {
|
||||
for(Interceptor apiAuthorization : apiAuthorizations.values()) {
|
||||
@ -230,9 +230,9 @@ public class ApiClient {
|
||||
|
||||
/**
|
||||
* Helper method to configure the oauth accessCode/implicit flow parameters
|
||||
* @param clientId
|
||||
* @param clientSecret
|
||||
* @param redirectURI
|
||||
* @param clientId Client ID
|
||||
* @param clientSecret Client secret
|
||||
* @param redirectURI Redirect URI
|
||||
*/
|
||||
public void configureAuthorizationFlow(String clientId, String clientSecret, String redirectURI) {
|
||||
for(Interceptor apiAuthorization : apiAuthorizations.values()) {
|
||||
@ -252,7 +252,7 @@ public class ApiClient {
|
||||
|
||||
/**
|
||||
* Configures a listener which is notified when a new access token is received.
|
||||
* @param accessTokenListener
|
||||
* @param accessTokenListener Access token listener
|
||||
*/
|
||||
public void registerAccessTokenListener(AccessTokenListener accessTokenListener) {
|
||||
for(Interceptor apiAuthorization : apiAuthorizations.values()) {
|
||||
@ -266,8 +266,8 @@ public class ApiClient {
|
||||
|
||||
/**
|
||||
* Adds an authorization to be used by the client
|
||||
* @param authName
|
||||
* @param authorization
|
||||
* @param authName Authentication name
|
||||
* @param authorization Authorization interceptor
|
||||
*/
|
||||
public void addAuthorization(String authName, Interceptor authorization) {
|
||||
if (apiAuthorizations.containsKey(authName)) {
|
||||
@ -305,7 +305,7 @@ public class ApiClient {
|
||||
|
||||
/**
|
||||
* Clones the okBuilder given in parameter, adds the auth interceptors and uses it to configure the Retrofit
|
||||
* @param okClient
|
||||
* @param okClient An instance of OK HTTP client
|
||||
*/
|
||||
public void configureFromOkclient(OkHttpClient okClient) {
|
||||
this.okBuilder = okClient.newBuilder();
|
||||
|
@ -25,7 +25,7 @@ public interface {{classname}} {
|
||||
* {{summary}}
|
||||
* {{notes}}
|
||||
{{#allParams}} * @param {{paramName}} {{description}}{{#required}} (required){{/required}}{{^required}} (optional{{#defaultValue}}, default to {{{.}}}{{/defaultValue}}){{/required}}
|
||||
{{/allParams}} * @return Call<{{#returnType}}{{{returnType}}}{{/returnType}}{{^returnType}}Object{{/returnType}}>
|
||||
{{/allParams}} * @return Call<{{#returnType}}{{{returnType}}}{{/returnType}}{{^returnType}}Object{{/returnType}}>
|
||||
*/
|
||||
{{#formParams}}{{#-first}}
|
||||
{{#isMultipart}}@Multipart{{/isMultipart}}{{^isMultipart}}@FormUrlEncoded{{/isMultipart}}{{/-first}}{{/formParams}}
|
||||
|
@ -68,6 +68,7 @@
|
||||
<plugin>
|
||||
<groupId>org.codehaus.mojo</groupId>
|
||||
<artifactId>build-helper-maven-plugin</artifactId>
|
||||
<version>1.10</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>add_sources</id>
|
||||
@ -152,6 +153,7 @@
|
||||
</dependency>
|
||||
</dependencies>
|
||||
<properties>
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
<java.version>{{#java8}}1.8{{/java8}}{{^java8}}1.7{{/java8}}</java.version>
|
||||
<maven.compiler.source>${java.version}</maven.compiler.source>
|
||||
<maven.compiler.target>${java.version}</maven.compiler.target>
|
||||
|
@ -7,13 +7,6 @@ Name | Type | Description | Notes
|
||||
**arrayOfString** | **List<String>** | | [optional]
|
||||
**arrayArrayOfInteger** | [**List<List<Long>>**](List.md) | | [optional]
|
||||
**arrayArrayOfModel** | [**List<List<ReadOnlyFirst>>**](List.md) | | [optional]
|
||||
**arrayOfEnum** | [**List<ArrayOfEnumEnum>**](#List<ArrayOfEnumEnum>) | | [optional]
|
||||
|
||||
|
||||
<a name="List<ArrayOfEnumEnum>"></a>
|
||||
## Enum: List<ArrayOfEnumEnum>
|
||||
Name | Value
|
||||
---- | -----
|
||||
|
||||
|
||||
|
||||
|
@ -4,54 +4,10 @@ All URIs are relative to *http://petstore.swagger.io/v2*
|
||||
|
||||
Method | HTTP request | Description
|
||||
------------- | ------------- | -------------
|
||||
[**testCodeInjectEnd**](FakeApi.md#testCodeInjectEnd) | **PUT** fake | To test code injection =end
|
||||
[**testEndpointParameters**](FakeApi.md#testEndpointParameters) | **POST** fake | Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
|
||||
[**testEnumQueryParameters**](FakeApi.md#testEnumQueryParameters) | **GET** fake | To test enum query parameters
|
||||
|
||||
|
||||
<a name="testCodeInjectEnd"></a>
|
||||
# **testCodeInjectEnd**
|
||||
> Void testCodeInjectEnd(testCodeInjectEnd)
|
||||
|
||||
To test code injection =end
|
||||
|
||||
### Example
|
||||
```java
|
||||
// Import classes:
|
||||
//import io.swagger.client.ApiException;
|
||||
//import io.swagger.client.api.FakeApi;
|
||||
|
||||
|
||||
FakeApi apiInstance = new FakeApi();
|
||||
String testCodeInjectEnd = "testCodeInjectEnd_example"; // String | To test code injection =end
|
||||
try {
|
||||
Void result = apiInstance.testCodeInjectEnd(testCodeInjectEnd);
|
||||
System.out.println(result);
|
||||
} catch (ApiException e) {
|
||||
System.err.println("Exception when calling FakeApi#testCodeInjectEnd");
|
||||
e.printStackTrace();
|
||||
}
|
||||
```
|
||||
|
||||
### Parameters
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**testCodeInjectEnd** | **String**| To test code injection =end | [optional]
|
||||
|
||||
### Return type
|
||||
|
||||
[**Void**](.md)
|
||||
|
||||
### Authorization
|
||||
|
||||
No authorization required
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: application/json, */ =end'));(phpinfo('
|
||||
- **Accept**: application/json, */ end
|
||||
|
||||
<a name="testEndpointParameters"></a>
|
||||
# **testEndpointParameters**
|
||||
> Void testEndpointParameters(number, _double, string, _byte, integer, int32, int64, _float, binary, date, dateTime, password)
|
||||
|
@ -68,6 +68,7 @@
|
||||
<plugin>
|
||||
<groupId>org.codehaus.mojo</groupId>
|
||||
<artifactId>build-helper-maven-plugin</artifactId>
|
||||
<version>1.10</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>add_sources</id>
|
||||
@ -138,6 +139,7 @@
|
||||
</dependency>
|
||||
</dependencies>
|
||||
<properties>
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
<java.version>1.7</java.version>
|
||||
<maven.compiler.source>${java.version}</maven.compiler.source>
|
||||
<maven.compiler.target>${java.version}</maven.compiler.target>
|
||||
|
@ -53,10 +53,10 @@ public class ApiClient {
|
||||
this();
|
||||
for(String authName : authNames) {
|
||||
Interceptor auth;
|
||||
if (authName == "petstore_auth") {
|
||||
auth = new OAuth(OAuthFlow.implicit, "http://petstore.swagger.io/api/oauth/dialog", "", "write:pets, read:pets");
|
||||
} else if (authName == "api_key") {
|
||||
if (authName == "api_key") {
|
||||
auth = new ApiKeyAuth("header", "api_key");
|
||||
} else if (authName == "petstore_auth") {
|
||||
auth = new OAuth(OAuthFlow.implicit, "http://petstore.swagger.io/api/oauth/dialog", "", "write:pets, read:pets");
|
||||
} else {
|
||||
throw new RuntimeException("auth name \"" + authName + "\" not found in available auth names");
|
||||
}
|
||||
@ -66,7 +66,7 @@ public class ApiClient {
|
||||
|
||||
/**
|
||||
* Basic constructor for single auth name
|
||||
* @param authName
|
||||
* @param authName Authentication name
|
||||
*/
|
||||
public ApiClient(String authName) {
|
||||
this(new String[]{authName});
|
||||
@ -74,8 +74,8 @@ public class ApiClient {
|
||||
|
||||
/**
|
||||
* Helper constructor for single api key
|
||||
* @param authName
|
||||
* @param apiKey
|
||||
* @param authName Authentication name
|
||||
* @param apiKey API key
|
||||
*/
|
||||
public ApiClient(String authName, String apiKey) {
|
||||
this(authName);
|
||||
@ -84,9 +84,9 @@ public class ApiClient {
|
||||
|
||||
/**
|
||||
* Helper constructor for single basic auth or password oauth2
|
||||
* @param authName
|
||||
* @param username
|
||||
* @param password
|
||||
* @param authName Authentication name
|
||||
* @param username Username
|
||||
* @param password Password
|
||||
*/
|
||||
public ApiClient(String authName, String username, String password) {
|
||||
this(authName);
|
||||
@ -95,11 +95,11 @@ public class ApiClient {
|
||||
|
||||
/**
|
||||
* Helper constructor for single password oauth2
|
||||
* @param authName
|
||||
* @param clientId
|
||||
* @param secret
|
||||
* @param username
|
||||
* @param password
|
||||
* @param authName Authentication name
|
||||
* @param clientId Client ID
|
||||
* @param secret Client Secret
|
||||
* @param username Username
|
||||
* @param password Password
|
||||
*/
|
||||
public ApiClient(String authName, String clientId, String secret, String username, String password) {
|
||||
this(authName);
|
||||
@ -141,7 +141,7 @@ public class ApiClient {
|
||||
|
||||
/**
|
||||
* Helper method to configure the first api key found
|
||||
* @param apiKey
|
||||
* @param apiKey API key
|
||||
*/
|
||||
private void setApiKey(String apiKey) {
|
||||
for(Interceptor apiAuthorization : apiAuthorizations.values()) {
|
||||
@ -155,8 +155,8 @@ public class ApiClient {
|
||||
|
||||
/**
|
||||
* Helper method to configure the username/password for basic auth or password oauth
|
||||
* @param username
|
||||
* @param password
|
||||
* @param username Username
|
||||
* @param password Password
|
||||
*/
|
||||
private void setCredentials(String username, String password) {
|
||||
for(Interceptor apiAuthorization : apiAuthorizations.values()) {
|
||||
@ -175,7 +175,7 @@ public class ApiClient {
|
||||
|
||||
/**
|
||||
* Helper method to configure the token endpoint of the first oauth found in the apiAuthorizations (there should be only one)
|
||||
* @return
|
||||
* @return Token request builder
|
||||
*/
|
||||
public TokenRequestBuilder getTokenEndPoint() {
|
||||
for(Interceptor apiAuthorization : apiAuthorizations.values()) {
|
||||
@ -189,7 +189,7 @@ public class ApiClient {
|
||||
|
||||
/**
|
||||
* Helper method to configure authorization endpoint of the first oauth found in the apiAuthorizations (there should be only one)
|
||||
* @return
|
||||
* @return Authentication request builder
|
||||
*/
|
||||
public AuthenticationRequestBuilder getAuthorizationEndPoint() {
|
||||
for(Interceptor apiAuthorization : apiAuthorizations.values()) {
|
||||
@ -203,7 +203,7 @@ public class ApiClient {
|
||||
|
||||
/**
|
||||
* Helper method to pre-set the oauth access token of the first oauth found in the apiAuthorizations (there should be only one)
|
||||
* @param accessToken
|
||||
* @param accessToken Access token
|
||||
*/
|
||||
public void setAccessToken(String accessToken) {
|
||||
for(Interceptor apiAuthorization : apiAuthorizations.values()) {
|
||||
@ -217,9 +217,9 @@ public class ApiClient {
|
||||
|
||||
/**
|
||||
* Helper method to configure the oauth accessCode/implicit flow parameters
|
||||
* @param clientId
|
||||
* @param clientSecret
|
||||
* @param redirectURI
|
||||
* @param clientId Client ID
|
||||
* @param clientSecret Client secret
|
||||
* @param redirectURI Redirect URI
|
||||
*/
|
||||
public void configureAuthorizationFlow(String clientId, String clientSecret, String redirectURI) {
|
||||
for(Interceptor apiAuthorization : apiAuthorizations.values()) {
|
||||
@ -239,7 +239,7 @@ public class ApiClient {
|
||||
|
||||
/**
|
||||
* Configures a listener which is notified when a new access token is received.
|
||||
* @param accessTokenListener
|
||||
* @param accessTokenListener Access token listener
|
||||
*/
|
||||
public void registerAccessTokenListener(AccessTokenListener accessTokenListener) {
|
||||
for(Interceptor apiAuthorization : apiAuthorizations.values()) {
|
||||
@ -253,8 +253,8 @@ public class ApiClient {
|
||||
|
||||
/**
|
||||
* Adds an authorization to be used by the client
|
||||
* @param authName
|
||||
* @param authorization
|
||||
* @param authName Authentication name
|
||||
* @param authorization Authorization interceptor
|
||||
*/
|
||||
public void addAuthorization(String authName, Interceptor authorization) {
|
||||
if (apiAuthorizations.containsKey(authName)) {
|
||||
@ -292,7 +292,7 @@ public class ApiClient {
|
||||
|
||||
/**
|
||||
* Clones the okBuilder given in parameter, adds the auth interceptors and uses it to configure the Retrofit
|
||||
* @param okClient
|
||||
* @param okClient An instance of OK HTTP client
|
||||
*/
|
||||
public void configureFromOkclient(OkHttpClient okClient) {
|
||||
this.okBuilder = okClient.newBuilder();
|
||||
|
@ -9,8 +9,8 @@ import retrofit2.http.*;
|
||||
import okhttp3.RequestBody;
|
||||
|
||||
import org.joda.time.LocalDate;
|
||||
import java.math.BigDecimal;
|
||||
import org.joda.time.DateTime;
|
||||
import java.math.BigDecimal;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
@ -18,19 +18,6 @@ import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
public interface FakeApi {
|
||||
/**
|
||||
* To test code injection =end
|
||||
*
|
||||
* @param testCodeInjectEnd To test code injection =end (optional)
|
||||
* @return Call<Void>
|
||||
*/
|
||||
|
||||
@FormUrlEncoded
|
||||
@PUT("fake")
|
||||
Call<Void> testCodeInjectEnd(
|
||||
@Field("test code inject */ =end") String testCodeInjectEnd
|
||||
);
|
||||
|
||||
/**
|
||||
* Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
|
||||
* Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
|
||||
@ -46,7 +33,7 @@ public interface FakeApi {
|
||||
* @param date None (optional)
|
||||
* @param dateTime None (optional)
|
||||
* @param password None (optional)
|
||||
* @return Call<Void>
|
||||
* @return Call<Void>
|
||||
*/
|
||||
|
||||
@FormUrlEncoded
|
||||
@ -61,7 +48,7 @@ public interface FakeApi {
|
||||
* @param enumQueryString Query parameter enum test (string) (optional, default to -efg)
|
||||
* @param enumQueryInteger Query parameter enum test (double) (optional)
|
||||
* @param enumQueryDouble Query parameter enum test (double) (optional)
|
||||
* @return Call<Void>
|
||||
* @return Call<Void>
|
||||
*/
|
||||
|
||||
@FormUrlEncoded
|
||||
|
@ -9,8 +9,8 @@ import retrofit2.http.*;
|
||||
import okhttp3.RequestBody;
|
||||
|
||||
import io.swagger.client.model.Pet;
|
||||
import io.swagger.client.model.ModelApiResponse;
|
||||
import java.io.File;
|
||||
import io.swagger.client.model.ModelApiResponse;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
@ -22,7 +22,7 @@ public interface PetApi {
|
||||
* Add a new pet to the store
|
||||
*
|
||||
* @param body Pet object that needs to be added to the store (required)
|
||||
* @return Call<Void>
|
||||
* @return Call<Void>
|
||||
*/
|
||||
|
||||
@POST("pet")
|
||||
@ -35,7 +35,7 @@ public interface PetApi {
|
||||
*
|
||||
* @param petId Pet id to delete (required)
|
||||
* @param apiKey (optional)
|
||||
* @return Call<Void>
|
||||
* @return Call<Void>
|
||||
*/
|
||||
|
||||
@DELETE("pet/{petId}")
|
||||
@ -47,7 +47,7 @@ public interface PetApi {
|
||||
* Finds Pets by status
|
||||
* Multiple status values can be provided with comma separated strings
|
||||
* @param status Status values that need to be considered for filter (required)
|
||||
* @return Call<List<Pet>>
|
||||
* @return Call<List<Pet>>
|
||||
*/
|
||||
|
||||
@GET("pet/findByStatus")
|
||||
@ -59,7 +59,7 @@ public interface PetApi {
|
||||
* Finds Pets by tags
|
||||
* Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.
|
||||
* @param tags Tags to filter by (required)
|
||||
* @return Call<List<Pet>>
|
||||
* @return Call<List<Pet>>
|
||||
*/
|
||||
|
||||
@GET("pet/findByTags")
|
||||
@ -71,7 +71,7 @@ public interface PetApi {
|
||||
* Find pet by ID
|
||||
* Returns a single pet
|
||||
* @param petId ID of pet to return (required)
|
||||
* @return Call<Pet>
|
||||
* @return Call<Pet>
|
||||
*/
|
||||
|
||||
@GET("pet/{petId}")
|
||||
@ -83,7 +83,7 @@ public interface PetApi {
|
||||
* Update an existing pet
|
||||
*
|
||||
* @param body Pet object that needs to be added to the store (required)
|
||||
* @return Call<Void>
|
||||
* @return Call<Void>
|
||||
*/
|
||||
|
||||
@PUT("pet")
|
||||
@ -97,7 +97,7 @@ public interface PetApi {
|
||||
* @param petId ID of pet that needs to be updated (required)
|
||||
* @param name Updated name of the pet (optional)
|
||||
* @param status Updated status of the pet (optional)
|
||||
* @return Call<Void>
|
||||
* @return Call<Void>
|
||||
*/
|
||||
|
||||
@FormUrlEncoded
|
||||
@ -112,7 +112,7 @@ public interface PetApi {
|
||||
* @param petId ID of pet to update (required)
|
||||
* @param additionalMetadata Additional data to pass to server (optional)
|
||||
* @param file file to upload (optional)
|
||||
* @return Call<ModelApiResponse>
|
||||
* @return Call<ModelApiResponse>
|
||||
*/
|
||||
|
||||
@Multipart
|
||||
|
@ -20,7 +20,7 @@ public interface StoreApi {
|
||||
* Delete purchase order by ID
|
||||
* 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)
|
||||
* @return Call<Void>
|
||||
* @return Call<Void>
|
||||
*/
|
||||
|
||||
@DELETE("store/order/{orderId}")
|
||||
@ -31,7 +31,7 @@ public interface StoreApi {
|
||||
/**
|
||||
* Returns pet inventories by status
|
||||
* Returns a map of status codes to quantities
|
||||
* @return Call<Map<String, Integer>>
|
||||
* @return Call<Map<String, Integer>>
|
||||
*/
|
||||
|
||||
@GET("store/inventory")
|
||||
@ -42,7 +42,7 @@ public interface StoreApi {
|
||||
* Find purchase order by ID
|
||||
* 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)
|
||||
* @return Call<Order>
|
||||
* @return Call<Order>
|
||||
*/
|
||||
|
||||
@GET("store/order/{orderId}")
|
||||
@ -54,7 +54,7 @@ public interface StoreApi {
|
||||
* Place an order for a pet
|
||||
*
|
||||
* @param body order placed for purchasing the pet (required)
|
||||
* @return Call<Order>
|
||||
* @return Call<Order>
|
||||
*/
|
||||
|
||||
@POST("store/order")
|
||||
|
@ -20,7 +20,7 @@ public interface UserApi {
|
||||
* Create user
|
||||
* This can only be done by the logged in user.
|
||||
* @param body Created user object (required)
|
||||
* @return Call<Void>
|
||||
* @return Call<Void>
|
||||
*/
|
||||
|
||||
@POST("user")
|
||||
@ -32,7 +32,7 @@ public interface UserApi {
|
||||
* Creates list of users with given input array
|
||||
*
|
||||
* @param body List of user object (required)
|
||||
* @return Call<Void>
|
||||
* @return Call<Void>
|
||||
*/
|
||||
|
||||
@POST("user/createWithArray")
|
||||
@ -44,7 +44,7 @@ public interface UserApi {
|
||||
* Creates list of users with given input array
|
||||
*
|
||||
* @param body List of user object (required)
|
||||
* @return Call<Void>
|
||||
* @return Call<Void>
|
||||
*/
|
||||
|
||||
@POST("user/createWithList")
|
||||
@ -56,7 +56,7 @@ public interface UserApi {
|
||||
* Delete user
|
||||
* This can only be done by the logged in user.
|
||||
* @param username The name that needs to be deleted (required)
|
||||
* @return Call<Void>
|
||||
* @return Call<Void>
|
||||
*/
|
||||
|
||||
@DELETE("user/{username}")
|
||||
@ -68,7 +68,7 @@ public interface UserApi {
|
||||
* Get user by user name
|
||||
*
|
||||
* @param username The name that needs to be fetched. Use user1 for testing. (required)
|
||||
* @return Call<User>
|
||||
* @return Call<User>
|
||||
*/
|
||||
|
||||
@GET("user/{username}")
|
||||
@ -81,7 +81,7 @@ public interface UserApi {
|
||||
*
|
||||
* @param username The user name for login (required)
|
||||
* @param password The password for login in clear text (required)
|
||||
* @return Call<String>
|
||||
* @return Call<String>
|
||||
*/
|
||||
|
||||
@GET("user/login")
|
||||
@ -92,7 +92,7 @@ public interface UserApi {
|
||||
/**
|
||||
* Logs out current logged in user session
|
||||
*
|
||||
* @return Call<Void>
|
||||
* @return Call<Void>
|
||||
*/
|
||||
|
||||
@GET("user/logout")
|
||||
@ -104,7 +104,7 @@ public interface UserApi {
|
||||
* This can only be done by the logged in user.
|
||||
* @param username name that need to be deleted (required)
|
||||
* @param body Updated user object (required)
|
||||
* @return Call<Void>
|
||||
* @return Call<Void>
|
||||
*/
|
||||
|
||||
@PUT("user/{username}")
|
||||
|
@ -48,31 +48,6 @@ public class ArrayTest {
|
||||
@SerializedName("array_array_of_model")
|
||||
private List<List<ReadOnlyFirst>> arrayArrayOfModel = new ArrayList<List<ReadOnlyFirst>>();
|
||||
|
||||
/**
|
||||
* Gets or Sets arrayOfEnum
|
||||
*/
|
||||
public enum ArrayOfEnumEnum {
|
||||
@SerializedName("UPPER")
|
||||
UPPER("UPPER"),
|
||||
|
||||
@SerializedName("lower")
|
||||
LOWER("lower");
|
||||
|
||||
private String value;
|
||||
|
||||
ArrayOfEnumEnum(String value) {
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return String.valueOf(value);
|
||||
}
|
||||
}
|
||||
|
||||
@SerializedName("array_of_enum")
|
||||
private List<ArrayOfEnumEnum> arrayOfEnum = new ArrayList<ArrayOfEnumEnum>();
|
||||
|
||||
public ArrayTest arrayOfString(List<String> arrayOfString) {
|
||||
this.arrayOfString = arrayOfString;
|
||||
return this;
|
||||
@ -127,24 +102,6 @@ public class ArrayTest {
|
||||
this.arrayArrayOfModel = arrayArrayOfModel;
|
||||
}
|
||||
|
||||
public ArrayTest arrayOfEnum(List<ArrayOfEnumEnum> arrayOfEnum) {
|
||||
this.arrayOfEnum = arrayOfEnum;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get arrayOfEnum
|
||||
* @return arrayOfEnum
|
||||
**/
|
||||
@ApiModelProperty(example = "null", value = "")
|
||||
public List<ArrayOfEnumEnum> getArrayOfEnum() {
|
||||
return arrayOfEnum;
|
||||
}
|
||||
|
||||
public void setArrayOfEnum(List<ArrayOfEnumEnum> arrayOfEnum) {
|
||||
this.arrayOfEnum = arrayOfEnum;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
@ -157,13 +114,12 @@ public class ArrayTest {
|
||||
ArrayTest arrayTest = (ArrayTest) o;
|
||||
return Objects.equals(this.arrayOfString, arrayTest.arrayOfString) &&
|
||||
Objects.equals(this.arrayArrayOfInteger, arrayTest.arrayArrayOfInteger) &&
|
||||
Objects.equals(this.arrayArrayOfModel, arrayTest.arrayArrayOfModel) &&
|
||||
Objects.equals(this.arrayOfEnum, arrayTest.arrayOfEnum);
|
||||
Objects.equals(this.arrayArrayOfModel, arrayTest.arrayArrayOfModel);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(arrayOfString, arrayArrayOfInteger, arrayArrayOfModel, arrayOfEnum);
|
||||
return Objects.hash(arrayOfString, arrayArrayOfInteger, arrayArrayOfModel);
|
||||
}
|
||||
|
||||
@Override
|
||||
@ -174,7 +130,6 @@ public class ArrayTest {
|
||||
sb.append(" arrayOfString: ").append(toIndentedString(arrayOfString)).append("\n");
|
||||
sb.append(" arrayArrayOfInteger: ").append(toIndentedString(arrayArrayOfInteger)).append("\n");
|
||||
sb.append(" arrayArrayOfModel: ").append(toIndentedString(arrayArrayOfModel)).append("\n");
|
||||
sb.append(" arrayOfEnum: ").append(toIndentedString(arrayOfEnum)).append("\n");
|
||||
sb.append("}");
|
||||
return sb.toString();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user