forked from loafle/openapi-generator-original
fix java default and feign sample
This commit is contained in:
parent
0310d95800
commit
70b25a682d
@ -1,12 +1,10 @@
|
|||||||
<Properties StartupItem="SwaggerClientTest.csproj">
|
<Properties StartupItem="SwaggerClientTest.csproj">
|
||||||
<MonoDevelop.Ide.Workspace ActiveConfiguration="Debug" />
|
<MonoDevelop.Ide.Workspace ActiveConfiguration="Debug" />
|
||||||
<MonoDevelop.Ide.Workbench ActiveDocument="Lib/SwaggerClient/src/main/csharp/IO/Swagger/Model/Order.cs">
|
<MonoDevelop.Ide.Workbench ActiveDocument="Lib/SwaggerClient/src/main/csharp/IO/Swagger/Model/EnumTest.cs">
|
||||||
<Files>
|
<Files>
|
||||||
<File FileName="TestPet.cs" Line="1" Column="1" />
|
<File FileName="Lib/SwaggerClient/src/main/csharp/IO/Swagger/Model/EnumTest.cs" Line="18" Column="58" />
|
||||||
<File FileName="TestOrder.cs" Line="1" Column="1" />
|
<File FileName="Lib/SwaggerClient/src/main/csharp/IO/Swagger/Model/Order.cs" Line="1" Column="1" />
|
||||||
<File FileName="Lib/SwaggerClient/src/main/csharp/IO/Swagger/Model/EnumTest.cs" Line="1" Column="1" />
|
<File FileName="TestEnum.cs" Line="28" Column="75" />
|
||||||
<File FileName="Lib/SwaggerClient/src/main/csharp/IO/Swagger/Model/Order.cs" Line="71" Column="57" />
|
|
||||||
<File FileName="TestEnum.cs" Line="24" Column="12" />
|
|
||||||
<File FileName="Lib/SwaggerClient/src/main/csharp/IO/Swagger/Model/EnumClass.cs" Line="1" Column="1" />
|
<File FileName="Lib/SwaggerClient/src/main/csharp/IO/Swagger/Model/EnumClass.cs" Line="1" Column="1" />
|
||||||
</Files>
|
</Files>
|
||||||
</MonoDevelop.Ide.Workbench>
|
</MonoDevelop.Ide.Workbench>
|
||||||
|
@ -15,7 +15,6 @@ Name | Type | Description | Notes
|
|||||||
**binary** | **byte[]** | | [optional]
|
**binary** | **byte[]** | | [optional]
|
||||||
**date** | [**Date**](Date.md) | |
|
**date** | [**Date**](Date.md) | |
|
||||||
**dateTime** | [**Date**](Date.md) | | [optional]
|
**dateTime** | [**Date**](Date.md) | | [optional]
|
||||||
**uuid** | **String** | | [optional]
|
|
||||||
**password** | **String** | |
|
**password** | **String** | |
|
||||||
|
|
||||||
|
|
||||||
|
@ -16,9 +16,9 @@ Name | Type | Description | Notes
|
|||||||
## Enum: StatusEnum
|
## Enum: StatusEnum
|
||||||
Name | Value
|
Name | Value
|
||||||
---- | -----
|
---- | -----
|
||||||
PLACED | placed
|
PLACED | "placed"
|
||||||
APPROVED | approved
|
APPROVED | "approved"
|
||||||
DELIVERED | delivered
|
DELIVERED | "delivered"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -16,9 +16,9 @@ Name | Type | Description | Notes
|
|||||||
## Enum: StatusEnum
|
## Enum: StatusEnum
|
||||||
Name | Value
|
Name | Value
|
||||||
---- | -----
|
---- | -----
|
||||||
AVAILABLE | available
|
AVAILABLE | "available"
|
||||||
PENDING | pending
|
PENDING | "pending"
|
||||||
SOLD | sold
|
SOLD | "sold"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -3,7 +3,7 @@ package io.swagger.client;
|
|||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-04-02T22:36:41.205+08:00")
|
|
||||||
public class ApiException extends Exception {
|
public class ApiException extends Exception {
|
||||||
private int code = 0;
|
private int code = 0;
|
||||||
private Map<String, List<String>> responseHeaders = null;
|
private Map<String, List<String>> responseHeaders = null;
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
package io.swagger.client;
|
package io.swagger.client;
|
||||||
|
|
||||||
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-04-02T22:36:41.205+08:00")
|
|
||||||
public class Configuration {
|
public class Configuration {
|
||||||
private static ApiClient defaultApiClient = new ApiClient();
|
private static ApiClient defaultApiClient = new ApiClient();
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
package io.swagger.client;
|
package io.swagger.client;
|
||||||
|
|
||||||
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-04-02T22:36:41.205+08:00")
|
|
||||||
public class Pair {
|
public class Pair {
|
||||||
private String name = "";
|
private String name = "";
|
||||||
private String value = "";
|
private String value = "";
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
package io.swagger.client;
|
package io.swagger.client;
|
||||||
|
|
||||||
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-04-02T22:36:41.205+08:00")
|
|
||||||
public class StringUtil {
|
public class StringUtil {
|
||||||
/**
|
/**
|
||||||
* Check if the given array contains the given value (with case-insensitive comparison).
|
* Check if the given array contains the given value (with case-insensitive comparison).
|
||||||
|
@ -8,15 +8,15 @@ import io.swagger.client.Configuration;
|
|||||||
import io.swagger.client.Pair;
|
import io.swagger.client.Pair;
|
||||||
|
|
||||||
import io.swagger.client.model.Pet;
|
import io.swagger.client.model.Pet;
|
||||||
import io.swagger.client.model.InlineResponse200;
|
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
|
import io.swagger.client.model.ModelApiResponse;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-04-02T22:36:41.205+08:00")
|
|
||||||
public class PetApi {
|
public class PetApi {
|
||||||
private ApiClient apiClient;
|
private ApiClient apiClient;
|
||||||
|
|
||||||
@ -36,16 +36,20 @@ public class PetApi {
|
|||||||
this.apiClient = apiClient;
|
this.apiClient = apiClient;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 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 (optional)
|
* @param body Pet object that needs to be added to the store (required)
|
||||||
* @throws ApiException if fails to make API call
|
* @throws ApiException if fails to make API call
|
||||||
*/
|
*/
|
||||||
public void addPet(Pet body) throws ApiException {
|
public void addPet(Pet body) throws ApiException {
|
||||||
Object localVarPostBody = body;
|
Object localVarPostBody = body;
|
||||||
|
|
||||||
|
// verify the required parameter 'body' is set
|
||||||
|
if (body == null) {
|
||||||
|
throw new ApiException(400, "Missing the required parameter 'body' when calling addPet");
|
||||||
|
}
|
||||||
|
|
||||||
// create path and map variables
|
// create path and map variables
|
||||||
String localVarPath = "/pet".replaceAll("\\{format\\}","json");
|
String localVarPath = "/pet".replaceAll("\\{format\\}","json");
|
||||||
|
|
||||||
@ -54,14 +58,11 @@ public class PetApi {
|
|||||||
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
|
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
|
||||||
Map<String, Object> localVarFormParams = new HashMap<String, Object>();
|
Map<String, Object> localVarFormParams = new HashMap<String, Object>();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
final String[] localVarAccepts = {
|
final String[] localVarAccepts = {
|
||||||
"application/json", "application/xml"
|
"application/xml", "application/json"
|
||||||
};
|
};
|
||||||
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
|
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
|
||||||
|
|
||||||
@ -72,51 +73,9 @@ public class PetApi {
|
|||||||
|
|
||||||
String[] localVarAuthNames = new String[] { "petstore_auth" };
|
String[] localVarAuthNames = new String[] { "petstore_auth" };
|
||||||
|
|
||||||
|
|
||||||
apiClient.invokeAPI(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null);
|
apiClient.invokeAPI(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Fake endpoint to test byte array in body parameter for adding a new pet to the store
|
|
||||||
*
|
|
||||||
* @param body Pet object in the form of byte array (optional)
|
|
||||||
* @throws ApiException if fails to make API call
|
|
||||||
*/
|
|
||||||
public void addPetUsingByteArray(byte[] body) throws ApiException {
|
|
||||||
Object localVarPostBody = body;
|
|
||||||
|
|
||||||
// create path and map variables
|
|
||||||
String localVarPath = "/pet?testing_byte_array=true".replaceAll("\\{format\\}","json");
|
|
||||||
|
|
||||||
// query params
|
|
||||||
List<Pair> localVarQueryParams = new ArrayList<Pair>();
|
|
||||||
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
|
|
||||||
Map<String, Object> localVarFormParams = new HashMap<String, Object>();
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
final String[] localVarAccepts = {
|
|
||||||
"application/json", "application/xml"
|
|
||||||
};
|
|
||||||
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
|
|
||||||
|
|
||||||
final String[] localVarContentTypes = {
|
|
||||||
"application/json", "application/xml"
|
|
||||||
};
|
|
||||||
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
|
|
||||||
|
|
||||||
String[] localVarAuthNames = new String[] { "petstore_auth" };
|
|
||||||
|
|
||||||
|
|
||||||
apiClient.invokeAPI(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null);
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Deletes a pet
|
* Deletes a pet
|
||||||
*
|
*
|
||||||
@ -141,16 +100,13 @@ public class PetApi {
|
|||||||
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
|
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
|
||||||
Map<String, Object> localVarFormParams = new HashMap<String, Object>();
|
Map<String, Object> localVarFormParams = new HashMap<String, Object>();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (apiKey != null)
|
if (apiKey != null)
|
||||||
localVarHeaderParams.put("api_key", apiClient.parameterToString(apiKey));
|
localVarHeaderParams.put("api_key", apiClient.parameterToString(apiKey));
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
final String[] localVarAccepts = {
|
final String[] localVarAccepts = {
|
||||||
"application/json", "application/xml"
|
"application/xml", "application/json"
|
||||||
};
|
};
|
||||||
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
|
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
|
||||||
|
|
||||||
@ -161,21 +117,24 @@ public class PetApi {
|
|||||||
|
|
||||||
String[] localVarAuthNames = new String[] { "petstore_auth" };
|
String[] localVarAuthNames = new String[] { "petstore_auth" };
|
||||||
|
|
||||||
|
|
||||||
apiClient.invokeAPI(localVarPath, "DELETE", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null);
|
apiClient.invokeAPI(localVarPath, "DELETE", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 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 query (optional, default to available)
|
* @param status Status values that need to be considered for filter (required)
|
||||||
* @return List<Pet>
|
* @return List<Pet>
|
||||||
* @throws ApiException if fails to make API call
|
* @throws ApiException if fails to make API call
|
||||||
*/
|
*/
|
||||||
public List<Pet> findPetsByStatus(List<String> status) throws ApiException {
|
public List<Pet> findPetsByStatus(List<String> status) throws ApiException {
|
||||||
Object localVarPostBody = null;
|
Object localVarPostBody = null;
|
||||||
|
|
||||||
|
// verify the required parameter 'status' is set
|
||||||
|
if (status == null) {
|
||||||
|
throw new ApiException(400, "Missing the required parameter 'status' when calling findPetsByStatus");
|
||||||
|
}
|
||||||
|
|
||||||
// create path and map variables
|
// create path and map variables
|
||||||
String localVarPath = "/pet/findByStatus".replaceAll("\\{format\\}","json");
|
String localVarPath = "/pet/findByStatus".replaceAll("\\{format\\}","json");
|
||||||
|
|
||||||
@ -184,16 +143,12 @@ public class PetApi {
|
|||||||
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
|
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
|
||||||
Map<String, Object> localVarFormParams = new HashMap<String, Object>();
|
Map<String, Object> localVarFormParams = new HashMap<String, Object>();
|
||||||
|
|
||||||
|
localVarQueryParams.addAll(apiClient.parameterToPairs("csv", "status", status));
|
||||||
localVarQueryParams.addAll(apiClient.parameterToPairs("multi", "status", status));
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
final String[] localVarAccepts = {
|
final String[] localVarAccepts = {
|
||||||
"application/json", "application/xml"
|
"application/xml", "application/json"
|
||||||
};
|
};
|
||||||
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
|
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
|
||||||
|
|
||||||
@ -204,22 +159,24 @@ public class PetApi {
|
|||||||
|
|
||||||
String[] localVarAuthNames = new String[] { "petstore_auth" };
|
String[] localVarAuthNames = new String[] { "petstore_auth" };
|
||||||
|
|
||||||
|
|
||||||
GenericType<List<Pet>> localVarReturnType = new GenericType<List<Pet>>() {};
|
GenericType<List<Pet>> localVarReturnType = new GenericType<List<Pet>>() {};
|
||||||
return apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
|
return apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
|
||||||
|
}
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Finds Pets by tags
|
* Finds Pets by tags
|
||||||
* Muliple tags can be provided with comma seperated 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 (optional)
|
* @param tags Tags to filter by (required)
|
||||||
* @return List<Pet>
|
* @return List<Pet>
|
||||||
* @throws ApiException if fails to make API call
|
* @throws ApiException if fails to make API call
|
||||||
*/
|
*/
|
||||||
public List<Pet> findPetsByTags(List<String> tags) throws ApiException {
|
public List<Pet> findPetsByTags(List<String> tags) throws ApiException {
|
||||||
Object localVarPostBody = null;
|
Object localVarPostBody = null;
|
||||||
|
|
||||||
|
// verify the required parameter 'tags' is set
|
||||||
|
if (tags == null) {
|
||||||
|
throw new ApiException(400, "Missing the required parameter 'tags' when calling findPetsByTags");
|
||||||
|
}
|
||||||
|
|
||||||
// create path and map variables
|
// create path and map variables
|
||||||
String localVarPath = "/pet/findByTags".replaceAll("\\{format\\}","json");
|
String localVarPath = "/pet/findByTags".replaceAll("\\{format\\}","json");
|
||||||
|
|
||||||
@ -228,16 +185,12 @@ public class PetApi {
|
|||||||
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
|
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
|
||||||
Map<String, Object> localVarFormParams = new HashMap<String, Object>();
|
Map<String, Object> localVarFormParams = new HashMap<String, Object>();
|
||||||
|
|
||||||
|
localVarQueryParams.addAll(apiClient.parameterToPairs("csv", "tags", tags));
|
||||||
localVarQueryParams.addAll(apiClient.parameterToPairs("multi", "tags", tags));
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
final String[] localVarAccepts = {
|
final String[] localVarAccepts = {
|
||||||
"application/json", "application/xml"
|
"application/xml", "application/json"
|
||||||
};
|
};
|
||||||
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
|
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
|
||||||
|
|
||||||
@ -248,16 +201,13 @@ public class PetApi {
|
|||||||
|
|
||||||
String[] localVarAuthNames = new String[] { "petstore_auth" };
|
String[] localVarAuthNames = new String[] { "petstore_auth" };
|
||||||
|
|
||||||
|
|
||||||
GenericType<List<Pet>> localVarReturnType = new GenericType<List<Pet>>() {};
|
GenericType<List<Pet>> localVarReturnType = new GenericType<List<Pet>>() {};
|
||||||
return apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
|
return apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
|
||||||
|
}
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Find pet by ID
|
* Find pet by ID
|
||||||
* Returns a pet when ID < 10. ID > 10 or nonintegers will simulate API error conditions
|
* Returns a single pet
|
||||||
* @param petId ID of pet that needs to be fetched (required)
|
* @param petId ID of pet to return (required)
|
||||||
* @return Pet
|
* @return Pet
|
||||||
* @throws ApiException if fails to make API call
|
* @throws ApiException if fails to make API call
|
||||||
*/
|
*/
|
||||||
@ -278,14 +228,11 @@ public class PetApi {
|
|||||||
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
|
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
|
||||||
Map<String, Object> localVarFormParams = new HashMap<String, Object>();
|
Map<String, Object> localVarFormParams = new HashMap<String, Object>();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
final String[] localVarAccepts = {
|
final String[] localVarAccepts = {
|
||||||
"application/json", "application/xml"
|
"application/xml", "application/json"
|
||||||
};
|
};
|
||||||
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
|
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
|
||||||
|
|
||||||
@ -294,119 +241,25 @@ public class PetApi {
|
|||||||
};
|
};
|
||||||
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
|
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
|
||||||
|
|
||||||
String[] localVarAuthNames = new String[] { "api_key", "petstore_auth" };
|
String[] localVarAuthNames = new String[] { "api_key" };
|
||||||
|
|
||||||
|
|
||||||
GenericType<Pet> localVarReturnType = new GenericType<Pet>() {};
|
GenericType<Pet> localVarReturnType = new GenericType<Pet>() {};
|
||||||
return apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
|
return apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
|
||||||
|
}
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Fake endpoint to test inline arbitrary object return by 'Find pet by ID'
|
|
||||||
* Returns a pet when ID < 10. ID > 10 or nonintegers will simulate API error conditions
|
|
||||||
* @param petId ID of pet that needs to be fetched (required)
|
|
||||||
* @return InlineResponse200
|
|
||||||
* @throws ApiException if fails to make API call
|
|
||||||
*/
|
|
||||||
public InlineResponse200 getPetByIdInObject(Long petId) throws ApiException {
|
|
||||||
Object localVarPostBody = null;
|
|
||||||
|
|
||||||
// verify the required parameter 'petId' is set
|
|
||||||
if (petId == null) {
|
|
||||||
throw new ApiException(400, "Missing the required parameter 'petId' when calling getPetByIdInObject");
|
|
||||||
}
|
|
||||||
|
|
||||||
// create path and map variables
|
|
||||||
String localVarPath = "/pet/{petId}?response=inline_arbitrary_object".replaceAll("\\{format\\}","json")
|
|
||||||
.replaceAll("\\{" + "petId" + "\\}", apiClient.escapeString(petId.toString()));
|
|
||||||
|
|
||||||
// query params
|
|
||||||
List<Pair> localVarQueryParams = new ArrayList<Pair>();
|
|
||||||
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
|
|
||||||
Map<String, Object> localVarFormParams = new HashMap<String, Object>();
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
final String[] localVarAccepts = {
|
|
||||||
"application/json", "application/xml"
|
|
||||||
};
|
|
||||||
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
|
|
||||||
|
|
||||||
final String[] localVarContentTypes = {
|
|
||||||
|
|
||||||
};
|
|
||||||
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
|
|
||||||
|
|
||||||
String[] localVarAuthNames = new String[] { "api_key", "petstore_auth" };
|
|
||||||
|
|
||||||
|
|
||||||
GenericType<InlineResponse200> localVarReturnType = new GenericType<InlineResponse200>() {};
|
|
||||||
return apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Fake endpoint to test byte array return by 'Find pet by ID'
|
|
||||||
* Returns a pet when ID < 10. ID > 10 or nonintegers will simulate API error conditions
|
|
||||||
* @param petId ID of pet that needs to be fetched (required)
|
|
||||||
* @return byte[]
|
|
||||||
* @throws ApiException if fails to make API call
|
|
||||||
*/
|
|
||||||
public byte[] petPetIdtestingByteArraytrueGet(Long petId) throws ApiException {
|
|
||||||
Object localVarPostBody = null;
|
|
||||||
|
|
||||||
// verify the required parameter 'petId' is set
|
|
||||||
if (petId == null) {
|
|
||||||
throw new ApiException(400, "Missing the required parameter 'petId' when calling petPetIdtestingByteArraytrueGet");
|
|
||||||
}
|
|
||||||
|
|
||||||
// create path and map variables
|
|
||||||
String localVarPath = "/pet/{petId}?testing_byte_array=true".replaceAll("\\{format\\}","json")
|
|
||||||
.replaceAll("\\{" + "petId" + "\\}", apiClient.escapeString(petId.toString()));
|
|
||||||
|
|
||||||
// query params
|
|
||||||
List<Pair> localVarQueryParams = new ArrayList<Pair>();
|
|
||||||
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
|
|
||||||
Map<String, Object> localVarFormParams = new HashMap<String, Object>();
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
final String[] localVarAccepts = {
|
|
||||||
"application/json", "application/xml"
|
|
||||||
};
|
|
||||||
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
|
|
||||||
|
|
||||||
final String[] localVarContentTypes = {
|
|
||||||
|
|
||||||
};
|
|
||||||
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
|
|
||||||
|
|
||||||
String[] localVarAuthNames = new String[] { "api_key", "petstore_auth" };
|
|
||||||
|
|
||||||
|
|
||||||
GenericType<byte[]> localVarReturnType = new GenericType<byte[]>() {};
|
|
||||||
return apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Update an existing pet
|
* Update an existing pet
|
||||||
*
|
*
|
||||||
* @param body Pet object that needs to be added to the store (optional)
|
* @param body Pet object that needs to be added to the store (required)
|
||||||
* @throws ApiException if fails to make API call
|
* @throws ApiException if fails to make API call
|
||||||
*/
|
*/
|
||||||
public void updatePet(Pet body) throws ApiException {
|
public void updatePet(Pet body) throws ApiException {
|
||||||
Object localVarPostBody = body;
|
Object localVarPostBody = body;
|
||||||
|
|
||||||
|
// verify the required parameter 'body' is set
|
||||||
|
if (body == null) {
|
||||||
|
throw new ApiException(400, "Missing the required parameter 'body' when calling updatePet");
|
||||||
|
}
|
||||||
|
|
||||||
// create path and map variables
|
// create path and map variables
|
||||||
String localVarPath = "/pet".replaceAll("\\{format\\}","json");
|
String localVarPath = "/pet".replaceAll("\\{format\\}","json");
|
||||||
|
|
||||||
@ -415,14 +268,11 @@ public class PetApi {
|
|||||||
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
|
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
|
||||||
Map<String, Object> localVarFormParams = new HashMap<String, Object>();
|
Map<String, Object> localVarFormParams = new HashMap<String, Object>();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
final String[] localVarAccepts = {
|
final String[] localVarAccepts = {
|
||||||
"application/json", "application/xml"
|
"application/xml", "application/json"
|
||||||
};
|
};
|
||||||
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
|
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
|
||||||
|
|
||||||
@ -433,11 +283,9 @@ public class PetApi {
|
|||||||
|
|
||||||
String[] localVarAuthNames = new String[] { "petstore_auth" };
|
String[] localVarAuthNames = new String[] { "petstore_auth" };
|
||||||
|
|
||||||
|
|
||||||
apiClient.invokeAPI(localVarPath, "PUT", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null);
|
apiClient.invokeAPI(localVarPath, "PUT", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Updates a pet in the store with form data
|
* Updates a pet in the store with form data
|
||||||
*
|
*
|
||||||
@ -446,7 +294,7 @@ public class PetApi {
|
|||||||
* @param status Updated status of the pet (optional)
|
* @param status Updated status of the pet (optional)
|
||||||
* @throws ApiException if fails to make API call
|
* @throws ApiException if fails to make API call
|
||||||
*/
|
*/
|
||||||
public void updatePetWithForm(String petId, String name, String status) throws ApiException {
|
public void updatePetWithForm(Long petId, String name, String status) throws ApiException {
|
||||||
Object localVarPostBody = null;
|
Object localVarPostBody = null;
|
||||||
|
|
||||||
// verify the required parameter 'petId' is set
|
// verify the required parameter 'petId' is set
|
||||||
@ -463,18 +311,15 @@ public class PetApi {
|
|||||||
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
|
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
|
||||||
Map<String, Object> localVarFormParams = new HashMap<String, Object>();
|
Map<String, Object> localVarFormParams = new HashMap<String, Object>();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (name != null)
|
if (name != null)
|
||||||
localVarFormParams.put("name", name);
|
localVarFormParams.put("name", name);
|
||||||
if (status != null)
|
if (status != null)
|
||||||
localVarFormParams.put("status", status);
|
localVarFormParams.put("status", status);
|
||||||
|
|
||||||
|
|
||||||
final String[] localVarAccepts = {
|
final String[] localVarAccepts = {
|
||||||
"application/json", "application/xml"
|
"application/xml", "application/json"
|
||||||
};
|
};
|
||||||
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
|
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
|
||||||
|
|
||||||
@ -485,20 +330,19 @@ public class PetApi {
|
|||||||
|
|
||||||
String[] localVarAuthNames = new String[] { "petstore_auth" };
|
String[] localVarAuthNames = new String[] { "petstore_auth" };
|
||||||
|
|
||||||
|
|
||||||
apiClient.invokeAPI(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null);
|
apiClient.invokeAPI(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* uploads an image
|
* uploads an image
|
||||||
*
|
*
|
||||||
* @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 ModelApiResponse
|
||||||
* @throws ApiException if fails to make API call
|
* @throws ApiException if fails to make API call
|
||||||
*/
|
*/
|
||||||
public void uploadFile(Long petId, String additionalMetadata, File file) throws ApiException {
|
public ModelApiResponse uploadFile(Long petId, String additionalMetadata, File file) throws ApiException {
|
||||||
Object localVarPostBody = null;
|
Object localVarPostBody = null;
|
||||||
|
|
||||||
// verify the required parameter 'petId' is set
|
// verify the required parameter 'petId' is set
|
||||||
@ -515,18 +359,15 @@ public class PetApi {
|
|||||||
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
|
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
|
||||||
Map<String, Object> localVarFormParams = new HashMap<String, Object>();
|
Map<String, Object> localVarFormParams = new HashMap<String, Object>();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (additionalMetadata != null)
|
if (additionalMetadata != null)
|
||||||
localVarFormParams.put("additionalMetadata", additionalMetadata);
|
localVarFormParams.put("additionalMetadata", additionalMetadata);
|
||||||
if (file != null)
|
if (file != null)
|
||||||
localVarFormParams.put("file", file);
|
localVarFormParams.put("file", file);
|
||||||
|
|
||||||
|
|
||||||
final String[] localVarAccepts = {
|
final String[] localVarAccepts = {
|
||||||
"application/json", "application/xml"
|
"application/json"
|
||||||
};
|
};
|
||||||
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
|
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
|
||||||
|
|
||||||
@ -537,9 +378,7 @@ public class PetApi {
|
|||||||
|
|
||||||
String[] localVarAuthNames = new String[] { "petstore_auth" };
|
String[] localVarAuthNames = new String[] { "petstore_auth" };
|
||||||
|
|
||||||
|
GenericType<ModelApiResponse> localVarReturnType = new GenericType<ModelApiResponse>() {};
|
||||||
apiClient.invokeAPI(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null);
|
return apiClient.invokeAPI(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
|
||||||
|
}
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -14,7 +14,7 @@ import java.util.HashMap;
|
|||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-04-02T22:36:41.205+08:00")
|
|
||||||
public class StoreApi {
|
public class StoreApi {
|
||||||
private ApiClient apiClient;
|
private ApiClient apiClient;
|
||||||
|
|
||||||
@ -34,7 +34,6 @@ public class StoreApi {
|
|||||||
this.apiClient = apiClient;
|
this.apiClient = apiClient;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 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
|
||||||
@ -58,14 +57,11 @@ public class StoreApi {
|
|||||||
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
|
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
|
||||||
Map<String, Object> localVarFormParams = new HashMap<String, Object>();
|
Map<String, Object> localVarFormParams = new HashMap<String, Object>();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
final String[] localVarAccepts = {
|
final String[] localVarAccepts = {
|
||||||
"application/json", "application/xml"
|
"application/xml", "application/json"
|
||||||
};
|
};
|
||||||
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
|
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
|
||||||
|
|
||||||
@ -76,55 +72,9 @@ public class StoreApi {
|
|||||||
|
|
||||||
String[] localVarAuthNames = new String[] { };
|
String[] localVarAuthNames = new String[] { };
|
||||||
|
|
||||||
|
|
||||||
apiClient.invokeAPI(localVarPath, "DELETE", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null);
|
apiClient.invokeAPI(localVarPath, "DELETE", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Finds orders by status
|
|
||||||
* A single status value can be provided as a string
|
|
||||||
* @param status Status value that needs to be considered for query (optional, default to placed)
|
|
||||||
* @return List<Order>
|
|
||||||
* @throws ApiException if fails to make API call
|
|
||||||
*/
|
|
||||||
public List<Order> findOrdersByStatus(String status) throws ApiException {
|
|
||||||
Object localVarPostBody = null;
|
|
||||||
|
|
||||||
// create path and map variables
|
|
||||||
String localVarPath = "/store/findByStatus".replaceAll("\\{format\\}","json");
|
|
||||||
|
|
||||||
// query params
|
|
||||||
List<Pair> localVarQueryParams = new ArrayList<Pair>();
|
|
||||||
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
|
|
||||||
Map<String, Object> localVarFormParams = new HashMap<String, Object>();
|
|
||||||
|
|
||||||
|
|
||||||
localVarQueryParams.addAll(apiClient.parameterToPairs("", "status", status));
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
final String[] localVarAccepts = {
|
|
||||||
"application/json", "application/xml"
|
|
||||||
};
|
|
||||||
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
|
|
||||||
|
|
||||||
final String[] localVarContentTypes = {
|
|
||||||
|
|
||||||
};
|
|
||||||
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
|
|
||||||
|
|
||||||
String[] localVarAuthNames = new String[] { "test_api_client_id", "test_api_client_secret" };
|
|
||||||
|
|
||||||
|
|
||||||
GenericType<List<Order>> localVarReturnType = new GenericType<List<Order>>() {};
|
|
||||||
return apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 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
|
||||||
@ -142,14 +92,11 @@ public class StoreApi {
|
|||||||
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
|
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
|
||||||
Map<String, Object> localVarFormParams = new HashMap<String, Object>();
|
Map<String, Object> localVarFormParams = new HashMap<String, Object>();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
final String[] localVarAccepts = {
|
final String[] localVarAccepts = {
|
||||||
"application/json", "application/xml"
|
"application/json"
|
||||||
};
|
};
|
||||||
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
|
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
|
||||||
|
|
||||||
@ -160,61 +107,17 @@ public class StoreApi {
|
|||||||
|
|
||||||
String[] localVarAuthNames = new String[] { "api_key" };
|
String[] localVarAuthNames = new String[] { "api_key" };
|
||||||
|
|
||||||
|
|
||||||
GenericType<Map<String, Integer>> localVarReturnType = new GenericType<Map<String, Integer>>() {};
|
GenericType<Map<String, Integer>> localVarReturnType = new GenericType<Map<String, Integer>>() {};
|
||||||
return apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
|
return apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
|
||||||
|
}
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Fake endpoint to test arbitrary object return by 'Get inventory'
|
|
||||||
* Returns an arbitrary object which is actually a map of status codes to quantities
|
|
||||||
* @return Object
|
|
||||||
* @throws ApiException if fails to make API call
|
|
||||||
*/
|
|
||||||
public Object getInventoryInObject() throws ApiException {
|
|
||||||
Object localVarPostBody = null;
|
|
||||||
|
|
||||||
// create path and map variables
|
|
||||||
String localVarPath = "/store/inventory?response=arbitrary_object".replaceAll("\\{format\\}","json");
|
|
||||||
|
|
||||||
// query params
|
|
||||||
List<Pair> localVarQueryParams = new ArrayList<Pair>();
|
|
||||||
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
|
|
||||||
Map<String, Object> localVarFormParams = new HashMap<String, Object>();
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
final String[] localVarAccepts = {
|
|
||||||
"application/json", "application/xml"
|
|
||||||
};
|
|
||||||
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
|
|
||||||
|
|
||||||
final String[] localVarContentTypes = {
|
|
||||||
|
|
||||||
};
|
|
||||||
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
|
|
||||||
|
|
||||||
String[] localVarAuthNames = new String[] { "api_key" };
|
|
||||||
|
|
||||||
|
|
||||||
GenericType<Object> localVarReturnType = new GenericType<Object>() {};
|
|
||||||
return apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 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 Order
|
* @return Order
|
||||||
* @throws ApiException if fails to make API call
|
* @throws ApiException if fails to make API call
|
||||||
*/
|
*/
|
||||||
public Order getOrderById(String orderId) throws ApiException {
|
public Order getOrderById(Long orderId) throws ApiException {
|
||||||
Object localVarPostBody = null;
|
Object localVarPostBody = null;
|
||||||
|
|
||||||
// verify the required parameter 'orderId' is set
|
// verify the required parameter 'orderId' is set
|
||||||
@ -231,14 +134,11 @@ public class StoreApi {
|
|||||||
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
|
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
|
||||||
Map<String, Object> localVarFormParams = new HashMap<String, Object>();
|
Map<String, Object> localVarFormParams = new HashMap<String, Object>();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
final String[] localVarAccepts = {
|
final String[] localVarAccepts = {
|
||||||
"application/json", "application/xml"
|
"application/xml", "application/json"
|
||||||
};
|
};
|
||||||
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
|
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
|
||||||
|
|
||||||
@ -247,24 +147,26 @@ public class StoreApi {
|
|||||||
};
|
};
|
||||||
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
|
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
|
||||||
|
|
||||||
String[] localVarAuthNames = new String[] { "test_api_key_header", "test_api_key_query" };
|
String[] localVarAuthNames = new String[] { };
|
||||||
|
|
||||||
|
|
||||||
GenericType<Order> localVarReturnType = new GenericType<Order>() {};
|
GenericType<Order> localVarReturnType = new GenericType<Order>() {};
|
||||||
return apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
|
return apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
|
||||||
|
}
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Place an order for a pet
|
* Place an order for a pet
|
||||||
*
|
*
|
||||||
* @param body order placed for purchasing the pet (optional)
|
* @param body order placed for purchasing the pet (required)
|
||||||
* @return Order
|
* @return Order
|
||||||
* @throws ApiException if fails to make API call
|
* @throws ApiException if fails to make API call
|
||||||
*/
|
*/
|
||||||
public Order placeOrder(Order body) throws ApiException {
|
public Order placeOrder(Order body) throws ApiException {
|
||||||
Object localVarPostBody = body;
|
Object localVarPostBody = body;
|
||||||
|
|
||||||
|
// verify the required parameter 'body' is set
|
||||||
|
if (body == null) {
|
||||||
|
throw new ApiException(400, "Missing the required parameter 'body' when calling placeOrder");
|
||||||
|
}
|
||||||
|
|
||||||
// create path and map variables
|
// create path and map variables
|
||||||
String localVarPath = "/store/order".replaceAll("\\{format\\}","json");
|
String localVarPath = "/store/order".replaceAll("\\{format\\}","json");
|
||||||
|
|
||||||
@ -273,14 +175,11 @@ public class StoreApi {
|
|||||||
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
|
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
|
||||||
Map<String, Object> localVarFormParams = new HashMap<String, Object>();
|
Map<String, Object> localVarFormParams = new HashMap<String, Object>();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
final String[] localVarAccepts = {
|
final String[] localVarAccepts = {
|
||||||
"application/json", "application/xml"
|
"application/xml", "application/json"
|
||||||
};
|
};
|
||||||
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
|
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
|
||||||
|
|
||||||
@ -289,12 +188,9 @@ public class StoreApi {
|
|||||||
};
|
};
|
||||||
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
|
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
|
||||||
|
|
||||||
String[] localVarAuthNames = new String[] { "test_api_client_id", "test_api_client_secret" };
|
String[] localVarAuthNames = new String[] { };
|
||||||
|
|
||||||
|
|
||||||
GenericType<Order> localVarReturnType = new GenericType<Order>() {};
|
GenericType<Order> localVarReturnType = new GenericType<Order>() {};
|
||||||
return apiClient.invokeAPI(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
|
return apiClient.invokeAPI(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
|
||||||
|
}
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -14,7 +14,7 @@ import java.util.HashMap;
|
|||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-04-02T22:36:41.205+08:00")
|
|
||||||
public class UserApi {
|
public class UserApi {
|
||||||
private ApiClient apiClient;
|
private ApiClient apiClient;
|
||||||
|
|
||||||
@ -34,16 +34,20 @@ public class UserApi {
|
|||||||
this.apiClient = apiClient;
|
this.apiClient = apiClient;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create user
|
* Create user
|
||||||
* This can only be done by the logged in user.
|
* This can only be done by the logged in user.
|
||||||
* @param body Created user object (optional)
|
* @param body Created user object (required)
|
||||||
* @throws ApiException if fails to make API call
|
* @throws ApiException if fails to make API call
|
||||||
*/
|
*/
|
||||||
public void createUser(User body) throws ApiException {
|
public void createUser(User body) throws ApiException {
|
||||||
Object localVarPostBody = body;
|
Object localVarPostBody = body;
|
||||||
|
|
||||||
|
// verify the required parameter 'body' is set
|
||||||
|
if (body == null) {
|
||||||
|
throw new ApiException(400, "Missing the required parameter 'body' when calling createUser");
|
||||||
|
}
|
||||||
|
|
||||||
// create path and map variables
|
// create path and map variables
|
||||||
String localVarPath = "/user".replaceAll("\\{format\\}","json");
|
String localVarPath = "/user".replaceAll("\\{format\\}","json");
|
||||||
|
|
||||||
@ -52,14 +56,11 @@ public class UserApi {
|
|||||||
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
|
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
|
||||||
Map<String, Object> localVarFormParams = new HashMap<String, Object>();
|
Map<String, Object> localVarFormParams = new HashMap<String, Object>();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
final String[] localVarAccepts = {
|
final String[] localVarAccepts = {
|
||||||
"application/json", "application/xml"
|
"application/xml", "application/json"
|
||||||
};
|
};
|
||||||
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
|
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
|
||||||
|
|
||||||
@ -70,20 +71,23 @@ public class UserApi {
|
|||||||
|
|
||||||
String[] localVarAuthNames = new String[] { };
|
String[] localVarAuthNames = new String[] { };
|
||||||
|
|
||||||
|
|
||||||
apiClient.invokeAPI(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null);
|
apiClient.invokeAPI(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates list of users with given input array
|
* Creates list of users with given input array
|
||||||
*
|
*
|
||||||
* @param body List of user object (optional)
|
* @param body List of user object (required)
|
||||||
* @throws ApiException if fails to make API call
|
* @throws ApiException if fails to make API call
|
||||||
*/
|
*/
|
||||||
public void createUsersWithArrayInput(List<User> body) throws ApiException {
|
public void createUsersWithArrayInput(List<User> body) throws ApiException {
|
||||||
Object localVarPostBody = body;
|
Object localVarPostBody = body;
|
||||||
|
|
||||||
|
// verify the required parameter 'body' is set
|
||||||
|
if (body == null) {
|
||||||
|
throw new ApiException(400, "Missing the required parameter 'body' when calling createUsersWithArrayInput");
|
||||||
|
}
|
||||||
|
|
||||||
// create path and map variables
|
// create path and map variables
|
||||||
String localVarPath = "/user/createWithArray".replaceAll("\\{format\\}","json");
|
String localVarPath = "/user/createWithArray".replaceAll("\\{format\\}","json");
|
||||||
|
|
||||||
@ -92,14 +96,11 @@ public class UserApi {
|
|||||||
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
|
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
|
||||||
Map<String, Object> localVarFormParams = new HashMap<String, Object>();
|
Map<String, Object> localVarFormParams = new HashMap<String, Object>();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
final String[] localVarAccepts = {
|
final String[] localVarAccepts = {
|
||||||
"application/json", "application/xml"
|
"application/xml", "application/json"
|
||||||
};
|
};
|
||||||
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
|
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
|
||||||
|
|
||||||
@ -110,20 +111,23 @@ public class UserApi {
|
|||||||
|
|
||||||
String[] localVarAuthNames = new String[] { };
|
String[] localVarAuthNames = new String[] { };
|
||||||
|
|
||||||
|
|
||||||
apiClient.invokeAPI(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null);
|
apiClient.invokeAPI(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates list of users with given input array
|
* Creates list of users with given input array
|
||||||
*
|
*
|
||||||
* @param body List of user object (optional)
|
* @param body List of user object (required)
|
||||||
* @throws ApiException if fails to make API call
|
* @throws ApiException if fails to make API call
|
||||||
*/
|
*/
|
||||||
public void createUsersWithListInput(List<User> body) throws ApiException {
|
public void createUsersWithListInput(List<User> body) throws ApiException {
|
||||||
Object localVarPostBody = body;
|
Object localVarPostBody = body;
|
||||||
|
|
||||||
|
// verify the required parameter 'body' is set
|
||||||
|
if (body == null) {
|
||||||
|
throw new ApiException(400, "Missing the required parameter 'body' when calling createUsersWithListInput");
|
||||||
|
}
|
||||||
|
|
||||||
// create path and map variables
|
// create path and map variables
|
||||||
String localVarPath = "/user/createWithList".replaceAll("\\{format\\}","json");
|
String localVarPath = "/user/createWithList".replaceAll("\\{format\\}","json");
|
||||||
|
|
||||||
@ -132,14 +136,11 @@ public class UserApi {
|
|||||||
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
|
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
|
||||||
Map<String, Object> localVarFormParams = new HashMap<String, Object>();
|
Map<String, Object> localVarFormParams = new HashMap<String, Object>();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
final String[] localVarAccepts = {
|
final String[] localVarAccepts = {
|
||||||
"application/json", "application/xml"
|
"application/xml", "application/json"
|
||||||
};
|
};
|
||||||
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
|
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
|
||||||
|
|
||||||
@ -150,11 +151,9 @@ public class UserApi {
|
|||||||
|
|
||||||
String[] localVarAuthNames = new String[] { };
|
String[] localVarAuthNames = new String[] { };
|
||||||
|
|
||||||
|
|
||||||
apiClient.invokeAPI(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null);
|
apiClient.invokeAPI(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Delete user
|
* Delete user
|
||||||
* This can only be done by the logged in user.
|
* This can only be done by the logged in user.
|
||||||
@ -178,14 +177,11 @@ public class UserApi {
|
|||||||
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
|
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
|
||||||
Map<String, Object> localVarFormParams = new HashMap<String, Object>();
|
Map<String, Object> localVarFormParams = new HashMap<String, Object>();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
final String[] localVarAccepts = {
|
final String[] localVarAccepts = {
|
||||||
"application/json", "application/xml"
|
"application/xml", "application/json"
|
||||||
};
|
};
|
||||||
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
|
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
|
||||||
|
|
||||||
@ -194,17 +190,15 @@ public class UserApi {
|
|||||||
};
|
};
|
||||||
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
|
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
|
||||||
|
|
||||||
String[] localVarAuthNames = new String[] { "test_http_basic" };
|
String[] localVarAuthNames = new String[] { };
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
apiClient.invokeAPI(localVarPath, "DELETE", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null);
|
apiClient.invokeAPI(localVarPath, "DELETE", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 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 User
|
* @return User
|
||||||
* @throws ApiException if fails to make API call
|
* @throws ApiException if fails to make API call
|
||||||
*/
|
*/
|
||||||
@ -225,14 +219,11 @@ public class UserApi {
|
|||||||
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
|
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
|
||||||
Map<String, Object> localVarFormParams = new HashMap<String, Object>();
|
Map<String, Object> localVarFormParams = new HashMap<String, Object>();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
final String[] localVarAccepts = {
|
final String[] localVarAccepts = {
|
||||||
"application/json", "application/xml"
|
"application/xml", "application/json"
|
||||||
};
|
};
|
||||||
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
|
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
|
||||||
|
|
||||||
@ -243,23 +234,30 @@ public class UserApi {
|
|||||||
|
|
||||||
String[] localVarAuthNames = new String[] { };
|
String[] localVarAuthNames = new String[] { };
|
||||||
|
|
||||||
|
|
||||||
GenericType<User> localVarReturnType = new GenericType<User>() {};
|
GenericType<User> localVarReturnType = new GenericType<User>() {};
|
||||||
return apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
|
return apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
|
||||||
|
}
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Logs user into the system
|
* Logs user into the system
|
||||||
*
|
*
|
||||||
* @param username The user name for login (optional)
|
* @param username The user name for login (required)
|
||||||
* @param password The password for login in clear text (optional)
|
* @param password The password for login in clear text (required)
|
||||||
* @return String
|
* @return String
|
||||||
* @throws ApiException if fails to make API call
|
* @throws ApiException if fails to make API call
|
||||||
*/
|
*/
|
||||||
public String loginUser(String username, String password) throws ApiException {
|
public String loginUser(String username, String password) throws ApiException {
|
||||||
Object localVarPostBody = null;
|
Object localVarPostBody = null;
|
||||||
|
|
||||||
|
// verify the required parameter 'username' is set
|
||||||
|
if (username == null) {
|
||||||
|
throw new ApiException(400, "Missing the required parameter 'username' when calling loginUser");
|
||||||
|
}
|
||||||
|
|
||||||
|
// verify the required parameter 'password' is set
|
||||||
|
if (password == null) {
|
||||||
|
throw new ApiException(400, "Missing the required parameter 'password' when calling loginUser");
|
||||||
|
}
|
||||||
|
|
||||||
// create path and map variables
|
// create path and map variables
|
||||||
String localVarPath = "/user/login".replaceAll("\\{format\\}","json");
|
String localVarPath = "/user/login".replaceAll("\\{format\\}","json");
|
||||||
|
|
||||||
@ -268,18 +266,13 @@ public class UserApi {
|
|||||||
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
|
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
|
||||||
Map<String, Object> localVarFormParams = new HashMap<String, Object>();
|
Map<String, Object> localVarFormParams = new HashMap<String, Object>();
|
||||||
|
|
||||||
|
|
||||||
localVarQueryParams.addAll(apiClient.parameterToPairs("", "username", username));
|
localVarQueryParams.addAll(apiClient.parameterToPairs("", "username", username));
|
||||||
|
|
||||||
localVarQueryParams.addAll(apiClient.parameterToPairs("", "password", password));
|
localVarQueryParams.addAll(apiClient.parameterToPairs("", "password", password));
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
final String[] localVarAccepts = {
|
final String[] localVarAccepts = {
|
||||||
"application/json", "application/xml"
|
"application/xml", "application/json"
|
||||||
};
|
};
|
||||||
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
|
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
|
||||||
|
|
||||||
@ -290,12 +283,9 @@ public class UserApi {
|
|||||||
|
|
||||||
String[] localVarAuthNames = new String[] { };
|
String[] localVarAuthNames = new String[] { };
|
||||||
|
|
||||||
|
|
||||||
GenericType<String> localVarReturnType = new GenericType<String>() {};
|
GenericType<String> localVarReturnType = new GenericType<String>() {};
|
||||||
return apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
|
return apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
|
||||||
|
}
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Logs out current logged in user session
|
* Logs out current logged in user session
|
||||||
*
|
*
|
||||||
@ -312,14 +302,11 @@ public class UserApi {
|
|||||||
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
|
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
|
||||||
Map<String, Object> localVarFormParams = new HashMap<String, Object>();
|
Map<String, Object> localVarFormParams = new HashMap<String, Object>();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
final String[] localVarAccepts = {
|
final String[] localVarAccepts = {
|
||||||
"application/json", "application/xml"
|
"application/xml", "application/json"
|
||||||
};
|
};
|
||||||
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
|
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
|
||||||
|
|
||||||
@ -330,16 +317,14 @@ public class UserApi {
|
|||||||
|
|
||||||
String[] localVarAuthNames = new String[] { };
|
String[] localVarAuthNames = new String[] { };
|
||||||
|
|
||||||
|
|
||||||
apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null);
|
apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Updated user
|
* Updated user
|
||||||
* 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 (optional)
|
* @param body Updated user object (required)
|
||||||
* @throws ApiException if fails to make API call
|
* @throws ApiException if fails to make API call
|
||||||
*/
|
*/
|
||||||
public void updateUser(String username, User body) throws ApiException {
|
public void updateUser(String username, User body) throws ApiException {
|
||||||
@ -350,6 +335,11 @@ public class UserApi {
|
|||||||
throw new ApiException(400, "Missing the required parameter 'username' when calling updateUser");
|
throw new ApiException(400, "Missing the required parameter 'username' when calling updateUser");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// verify the required parameter 'body' is set
|
||||||
|
if (body == null) {
|
||||||
|
throw new ApiException(400, "Missing the required parameter 'body' when calling updateUser");
|
||||||
|
}
|
||||||
|
|
||||||
// create path and map variables
|
// create path and map variables
|
||||||
String localVarPath = "/user/{username}".replaceAll("\\{format\\}","json")
|
String localVarPath = "/user/{username}".replaceAll("\\{format\\}","json")
|
||||||
.replaceAll("\\{" + "username" + "\\}", apiClient.escapeString(username.toString()));
|
.replaceAll("\\{" + "username" + "\\}", apiClient.escapeString(username.toString()));
|
||||||
@ -359,14 +349,11 @@ public class UserApi {
|
|||||||
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
|
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
|
||||||
Map<String, Object> localVarFormParams = new HashMap<String, Object>();
|
Map<String, Object> localVarFormParams = new HashMap<String, Object>();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
final String[] localVarAccepts = {
|
final String[] localVarAccepts = {
|
||||||
"application/json", "application/xml"
|
"application/xml", "application/json"
|
||||||
};
|
};
|
||||||
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
|
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
|
||||||
|
|
||||||
@ -377,9 +364,7 @@ public class UserApi {
|
|||||||
|
|
||||||
String[] localVarAuthNames = new String[] { };
|
String[] localVarAuthNames = new String[] { };
|
||||||
|
|
||||||
|
|
||||||
apiClient.invokeAPI(localVarPath, "PUT", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null);
|
apiClient.invokeAPI(localVarPath, "PUT", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -5,7 +5,7 @@ import io.swagger.client.Pair;
|
|||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-04-02T22:36:41.205+08:00")
|
|
||||||
public class ApiKeyAuth implements Authentication {
|
public class ApiKeyAuth implements Authentication {
|
||||||
private final String location;
|
private final String location;
|
||||||
private final String paramName;
|
private final String paramName;
|
||||||
|
@ -9,7 +9,7 @@ import java.util.List;
|
|||||||
|
|
||||||
import java.io.UnsupportedEncodingException;
|
import java.io.UnsupportedEncodingException;
|
||||||
|
|
||||||
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-04-02T22:36:41.205+08:00")
|
|
||||||
public class HttpBasicAuth implements Authentication {
|
public class HttpBasicAuth implements Authentication {
|
||||||
private String username;
|
private String username;
|
||||||
private String password;
|
private String password;
|
||||||
|
@ -5,7 +5,7 @@ import io.swagger.client.Pair;
|
|||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-04-02T22:36:41.205+08:00")
|
|
||||||
public class OAuth implements Authentication {
|
public class OAuth implements Authentication {
|
||||||
private String accessToken;
|
private String accessToken;
|
||||||
|
|
||||||
|
@ -9,7 +9,7 @@ import io.swagger.annotations.ApiModelProperty;
|
|||||||
/**
|
/**
|
||||||
* Animal
|
* Animal
|
||||||
*/
|
*/
|
||||||
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-04-12T22:48:50.833+08:00")
|
|
||||||
public class Animal {
|
public class Animal {
|
||||||
|
|
||||||
private String className = null;
|
private String className = null;
|
||||||
@ -31,7 +31,6 @@ public class Animal {
|
|||||||
this.className = className;
|
this.className = className;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean equals(java.lang.Object o) {
|
public boolean equals(java.lang.Object o) {
|
||||||
|
@ -10,7 +10,7 @@ import io.swagger.client.model.Animal;
|
|||||||
/**
|
/**
|
||||||
* Cat
|
* Cat
|
||||||
*/
|
*/
|
||||||
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-04-12T22:48:50.833+08:00")
|
|
||||||
public class Cat extends Animal {
|
public class Cat extends Animal {
|
||||||
|
|
||||||
private String className = null;
|
private String className = null;
|
||||||
@ -33,7 +33,7 @@ public class Cat extends Animal {
|
|||||||
this.className = className;
|
this.className = className;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
**/
|
**/
|
||||||
public Cat declawed(Boolean declawed) {
|
public Cat declawed(Boolean declawed) {
|
||||||
@ -50,7 +50,6 @@ public class Cat extends Animal {
|
|||||||
this.declawed = declawed;
|
this.declawed = declawed;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean equals(java.lang.Object o) {
|
public boolean equals(java.lang.Object o) {
|
||||||
|
@ -9,7 +9,7 @@ import io.swagger.annotations.ApiModelProperty;
|
|||||||
/**
|
/**
|
||||||
* Category
|
* Category
|
||||||
*/
|
*/
|
||||||
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-04-12T22:48:50.833+08:00")
|
|
||||||
public class Category {
|
public class Category {
|
||||||
|
|
||||||
private Long id = null;
|
private Long id = null;
|
||||||
@ -32,7 +32,7 @@ public class Category {
|
|||||||
this.id = id;
|
this.id = id;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
**/
|
**/
|
||||||
public Category name(String name) {
|
public Category name(String name) {
|
||||||
@ -49,7 +49,6 @@ public class Category {
|
|||||||
this.name = name;
|
this.name = name;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean equals(java.lang.Object o) {
|
public boolean equals(java.lang.Object o) {
|
||||||
|
@ -10,7 +10,7 @@ import io.swagger.client.model.Animal;
|
|||||||
/**
|
/**
|
||||||
* Dog
|
* Dog
|
||||||
*/
|
*/
|
||||||
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-04-12T22:48:50.833+08:00")
|
|
||||||
public class Dog extends Animal {
|
public class Dog extends Animal {
|
||||||
|
|
||||||
private String className = null;
|
private String className = null;
|
||||||
@ -33,7 +33,7 @@ public class Dog extends Animal {
|
|||||||
this.className = className;
|
this.className = className;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
**/
|
**/
|
||||||
public Dog breed(String breed) {
|
public Dog breed(String breed) {
|
||||||
@ -50,7 +50,6 @@ public class Dog extends Animal {
|
|||||||
this.breed = breed;
|
this.breed = breed;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean equals(java.lang.Object o) {
|
public boolean equals(java.lang.Object o) {
|
||||||
|
@ -10,7 +10,7 @@ import io.swagger.annotations.ApiModelProperty;
|
|||||||
/**
|
/**
|
||||||
* EnumTest
|
* EnumTest
|
||||||
*/
|
*/
|
||||||
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-04-12T22:48:50.833+08:00")
|
|
||||||
public class EnumTest {
|
public class EnumTest {
|
||||||
|
|
||||||
|
|
||||||
@ -97,7 +97,7 @@ public class EnumTest {
|
|||||||
this.enumString = enumString;
|
this.enumString = enumString;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
**/
|
**/
|
||||||
public EnumTest enumInteger(EnumIntegerEnum enumInteger) {
|
public EnumTest enumInteger(EnumIntegerEnum enumInteger) {
|
||||||
@ -114,7 +114,7 @@ public class EnumTest {
|
|||||||
this.enumInteger = enumInteger;
|
this.enumInteger = enumInteger;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
**/
|
**/
|
||||||
public EnumTest enumNumber(EnumNumberEnum enumNumber) {
|
public EnumTest enumNumber(EnumNumberEnum enumNumber) {
|
||||||
@ -131,7 +131,6 @@ public class EnumTest {
|
|||||||
this.enumNumber = enumNumber;
|
this.enumNumber = enumNumber;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean equals(java.lang.Object o) {
|
public boolean equals(java.lang.Object o) {
|
||||||
|
@ -8,9 +8,9 @@ import java.math.BigDecimal;
|
|||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* FormatTest
|
||||||
|
*/
|
||||||
|
|
||||||
public class FormatTest {
|
public class FormatTest {
|
||||||
|
|
||||||
|
@ -7,9 +7,10 @@ import io.swagger.annotations.ApiModelProperty;
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Model200Response
|
* Model for testing model name starting with number
|
||||||
*/
|
*/
|
||||||
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-04-12T22:48:50.833+08:00")
|
@ApiModel(description = "Model for testing model name starting with number")
|
||||||
|
|
||||||
public class Model200Response {
|
public class Model200Response {
|
||||||
|
|
||||||
private Integer name = null;
|
private Integer name = null;
|
||||||
@ -31,7 +32,6 @@ public class Model200Response {
|
|||||||
this.name = name;
|
this.name = name;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean equals(java.lang.Object o) {
|
public boolean equals(java.lang.Object o) {
|
||||||
|
@ -6,9 +6,9 @@ import io.swagger.annotations.ApiModel;
|
|||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* ModelApiResponse
|
||||||
|
*/
|
||||||
|
|
||||||
public class ModelApiResponse {
|
public class ModelApiResponse {
|
||||||
|
|
||||||
|
@ -7,9 +7,10 @@ import io.swagger.annotations.ApiModelProperty;
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ModelReturn
|
* Model for testing reserved words
|
||||||
*/
|
*/
|
||||||
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-04-12T22:48:50.833+08:00")
|
@ApiModel(description = "Model for testing reserved words")
|
||||||
|
|
||||||
public class ModelReturn {
|
public class ModelReturn {
|
||||||
|
|
||||||
private Integer _return = null;
|
private Integer _return = null;
|
||||||
@ -31,7 +32,6 @@ public class ModelReturn {
|
|||||||
this._return = _return;
|
this._return = _return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean equals(java.lang.Object o) {
|
public boolean equals(java.lang.Object o) {
|
||||||
|
@ -7,13 +7,15 @@ import io.swagger.annotations.ApiModelProperty;
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Name
|
* Model for testing model name same as property name
|
||||||
*/
|
*/
|
||||||
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-04-12T22:48:50.833+08:00")
|
@ApiModel(description = "Model for testing model name same as property name")
|
||||||
|
|
||||||
public class Name {
|
public class Name {
|
||||||
|
|
||||||
private Integer name = null;
|
private Integer name = null;
|
||||||
private Integer snakeCase = null;
|
private Integer snakeCase = null;
|
||||||
|
private String property = null;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -23,7 +25,7 @@ public class Name {
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ApiModelProperty(example = "null", value = "")
|
@ApiModelProperty(example = "null", required = true, value = "")
|
||||||
@JsonProperty("name")
|
@JsonProperty("name")
|
||||||
public Integer getName() {
|
public Integer getName() {
|
||||||
return name;
|
return name;
|
||||||
@ -32,24 +34,30 @@ public class Name {
|
|||||||
this.name = name;
|
this.name = name;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
**/
|
|
||||||
public Name snakeCase(Integer snakeCase) {
|
|
||||||
this.snakeCase = snakeCase;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
@ApiModelProperty(example = "null", value = "")
|
@ApiModelProperty(example = "null", value = "")
|
||||||
@JsonProperty("snake_case")
|
@JsonProperty("snake_case")
|
||||||
public Integer getSnakeCase() {
|
public Integer getSnakeCase() {
|
||||||
return snakeCase;
|
return snakeCase;
|
||||||
}
|
}
|
||||||
public void setSnakeCase(Integer snakeCase) {
|
|
||||||
this.snakeCase = snakeCase;
|
|
||||||
|
/**
|
||||||
|
**/
|
||||||
|
public Name property(String property) {
|
||||||
|
this.property = property;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
@ApiModelProperty(example = "null", value = "")
|
||||||
|
@JsonProperty("property")
|
||||||
|
public String getProperty() {
|
||||||
|
return property;
|
||||||
|
}
|
||||||
|
public void setProperty(String property) {
|
||||||
|
this.property = property;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean equals(java.lang.Object o) {
|
public boolean equals(java.lang.Object o) {
|
||||||
@ -61,12 +69,13 @@ public class Name {
|
|||||||
}
|
}
|
||||||
Name name = (Name) o;
|
Name name = (Name) o;
|
||||||
return Objects.equals(this.name, name.name) &&
|
return Objects.equals(this.name, name.name) &&
|
||||||
Objects.equals(this.snakeCase, name.snakeCase);
|
Objects.equals(this.snakeCase, name.snakeCase) &&
|
||||||
|
Objects.equals(this.property, name.property);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int hashCode() {
|
public int hashCode() {
|
||||||
return Objects.hash(name, snakeCase);
|
return Objects.hash(name, snakeCase, property);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@ -76,6 +85,7 @@ public class Name {
|
|||||||
|
|
||||||
sb.append(" name: ").append(toIndentedString(name)).append("\n");
|
sb.append(" name: ").append(toIndentedString(name)).append("\n");
|
||||||
sb.append(" snakeCase: ").append(toIndentedString(snakeCase)).append("\n");
|
sb.append(" snakeCase: ").append(toIndentedString(snakeCase)).append("\n");
|
||||||
|
sb.append(" property: ").append(toIndentedString(property)).append("\n");
|
||||||
sb.append("}");
|
sb.append("}");
|
||||||
return sb.toString();
|
return sb.toString();
|
||||||
}
|
}
|
||||||
|
@ -11,7 +11,7 @@ import java.util.Date;
|
|||||||
/**
|
/**
|
||||||
* Order
|
* Order
|
||||||
*/
|
*/
|
||||||
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-04-12T22:48:50.833+08:00")
|
|
||||||
public class Order {
|
public class Order {
|
||||||
|
|
||||||
private Long id = null;
|
private Long id = null;
|
||||||
@ -40,17 +40,27 @@ public class Order {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private StatusEnum status = StatusEnum.PLACED;
|
private StatusEnum status = null;
|
||||||
private Boolean complete = null;
|
private Boolean complete = false;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
**/
|
||||||
|
public Order id(Long id) {
|
||||||
|
this.id = id;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
@ApiModelProperty(example = "null", value = "")
|
@ApiModelProperty(example = "null", value = "")
|
||||||
@JsonProperty("id")
|
@JsonProperty("id")
|
||||||
public Long getId() {
|
public Long getId() {
|
||||||
return id;
|
return id;
|
||||||
}
|
}
|
||||||
|
public void setId(Long id) {
|
||||||
|
this.id = id;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
**/
|
**/
|
||||||
public Order petId(Long petId) {
|
public Order petId(Long petId) {
|
||||||
@ -67,7 +77,7 @@ public class Order {
|
|||||||
this.petId = petId;
|
this.petId = petId;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
**/
|
**/
|
||||||
public Order quantity(Integer quantity) {
|
public Order quantity(Integer quantity) {
|
||||||
@ -84,7 +94,7 @@ public class Order {
|
|||||||
this.quantity = quantity;
|
this.quantity = quantity;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
**/
|
**/
|
||||||
public Order shipDate(Date shipDate) {
|
public Order shipDate(Date shipDate) {
|
||||||
@ -101,7 +111,7 @@ public class Order {
|
|||||||
this.shipDate = shipDate;
|
this.shipDate = shipDate;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Order Status
|
* Order Status
|
||||||
**/
|
**/
|
||||||
@ -119,7 +129,7 @@ public class Order {
|
|||||||
this.status = status;
|
this.status = status;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
**/
|
**/
|
||||||
public Order complete(Boolean complete) {
|
public Order complete(Boolean complete) {
|
||||||
@ -136,7 +146,6 @@ public class Order {
|
|||||||
this.complete = complete;
|
this.complete = complete;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean equals(java.lang.Object o) {
|
public boolean equals(java.lang.Object o) {
|
||||||
|
@ -14,7 +14,7 @@ import java.util.List;
|
|||||||
/**
|
/**
|
||||||
* Pet
|
* Pet
|
||||||
*/
|
*/
|
||||||
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-04-12T22:48:50.833+08:00")
|
|
||||||
public class Pet {
|
public class Pet {
|
||||||
|
|
||||||
private Long id = null;
|
private Long id = null;
|
||||||
@ -63,7 +63,7 @@ public class Pet {
|
|||||||
this.id = id;
|
this.id = id;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
**/
|
**/
|
||||||
public Pet category(Category category) {
|
public Pet category(Category category) {
|
||||||
@ -80,7 +80,7 @@ public class Pet {
|
|||||||
this.category = category;
|
this.category = category;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
**/
|
**/
|
||||||
public Pet name(String name) {
|
public Pet name(String name) {
|
||||||
@ -97,7 +97,7 @@ public class Pet {
|
|||||||
this.name = name;
|
this.name = name;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
**/
|
**/
|
||||||
public Pet photoUrls(List<String> photoUrls) {
|
public Pet photoUrls(List<String> photoUrls) {
|
||||||
@ -114,7 +114,7 @@ public class Pet {
|
|||||||
this.photoUrls = photoUrls;
|
this.photoUrls = photoUrls;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
**/
|
**/
|
||||||
public Pet tags(List<Tag> tags) {
|
public Pet tags(List<Tag> tags) {
|
||||||
@ -131,7 +131,7 @@ public class Pet {
|
|||||||
this.tags = tags;
|
this.tags = tags;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* pet status in the store
|
* pet status in the store
|
||||||
**/
|
**/
|
||||||
@ -149,7 +149,6 @@ public class Pet {
|
|||||||
this.status = status;
|
this.status = status;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean equals(java.lang.Object o) {
|
public boolean equals(java.lang.Object o) {
|
||||||
|
@ -9,7 +9,7 @@ import io.swagger.annotations.ApiModelProperty;
|
|||||||
/**
|
/**
|
||||||
* SpecialModelName
|
* SpecialModelName
|
||||||
*/
|
*/
|
||||||
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-04-12T22:48:50.833+08:00")
|
|
||||||
public class SpecialModelName {
|
public class SpecialModelName {
|
||||||
|
|
||||||
private Long specialPropertyName = null;
|
private Long specialPropertyName = null;
|
||||||
@ -31,7 +31,6 @@ public class SpecialModelName {
|
|||||||
this.specialPropertyName = specialPropertyName;
|
this.specialPropertyName = specialPropertyName;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean equals(java.lang.Object o) {
|
public boolean equals(java.lang.Object o) {
|
||||||
|
@ -9,7 +9,7 @@ import io.swagger.annotations.ApiModelProperty;
|
|||||||
/**
|
/**
|
||||||
* Tag
|
* Tag
|
||||||
*/
|
*/
|
||||||
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-04-12T22:48:50.833+08:00")
|
|
||||||
public class Tag {
|
public class Tag {
|
||||||
|
|
||||||
private Long id = null;
|
private Long id = null;
|
||||||
@ -32,7 +32,7 @@ public class Tag {
|
|||||||
this.id = id;
|
this.id = id;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
**/
|
**/
|
||||||
public Tag name(String name) {
|
public Tag name(String name) {
|
||||||
@ -49,7 +49,6 @@ public class Tag {
|
|||||||
this.name = name;
|
this.name = name;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean equals(java.lang.Object o) {
|
public boolean equals(java.lang.Object o) {
|
||||||
|
@ -9,7 +9,7 @@ import io.swagger.annotations.ApiModelProperty;
|
|||||||
/**
|
/**
|
||||||
* User
|
* User
|
||||||
*/
|
*/
|
||||||
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-04-12T22:48:50.833+08:00")
|
|
||||||
public class User {
|
public class User {
|
||||||
|
|
||||||
private Long id = null;
|
private Long id = null;
|
||||||
@ -38,7 +38,7 @@ public class User {
|
|||||||
this.id = id;
|
this.id = id;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
**/
|
**/
|
||||||
public User username(String username) {
|
public User username(String username) {
|
||||||
@ -55,7 +55,7 @@ public class User {
|
|||||||
this.username = username;
|
this.username = username;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
**/
|
**/
|
||||||
public User firstName(String firstName) {
|
public User firstName(String firstName) {
|
||||||
@ -72,7 +72,7 @@ public class User {
|
|||||||
this.firstName = firstName;
|
this.firstName = firstName;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
**/
|
**/
|
||||||
public User lastName(String lastName) {
|
public User lastName(String lastName) {
|
||||||
@ -89,7 +89,7 @@ public class User {
|
|||||||
this.lastName = lastName;
|
this.lastName = lastName;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
**/
|
**/
|
||||||
public User email(String email) {
|
public User email(String email) {
|
||||||
@ -106,7 +106,7 @@ public class User {
|
|||||||
this.email = email;
|
this.email = email;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
**/
|
**/
|
||||||
public User password(String password) {
|
public User password(String password) {
|
||||||
@ -123,7 +123,7 @@ public class User {
|
|||||||
this.password = password;
|
this.password = password;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
**/
|
**/
|
||||||
public User phone(String phone) {
|
public User phone(String phone) {
|
||||||
@ -140,7 +140,7 @@ public class User {
|
|||||||
this.phone = phone;
|
this.phone = phone;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* User Status
|
* User Status
|
||||||
**/
|
**/
|
||||||
@ -158,7 +158,6 @@ public class User {
|
|||||||
this.userStatus = userStatus;
|
this.userStatus = userStatus;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean equals(java.lang.Object o) {
|
public boolean equals(java.lang.Object o) {
|
||||||
|
@ -14,7 +14,7 @@ import feign.codec.EncodeException;
|
|||||||
import feign.codec.Encoder;
|
import feign.codec.Encoder;
|
||||||
import feign.RequestTemplate;
|
import feign.RequestTemplate;
|
||||||
|
|
||||||
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-04-23T12:48:24.088+08:00")
|
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-04-27T23:17:22.230+08:00")
|
||||||
public class FormAwareEncoder implements Encoder {
|
public class FormAwareEncoder implements Encoder {
|
||||||
public static final String UTF_8 = "utf-8";
|
public static final String UTF_8 = "utf-8";
|
||||||
private static final String LINE_FEED = "\r\n";
|
private static final String LINE_FEED = "\r\n";
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
package io.swagger.client;
|
package io.swagger.client;
|
||||||
|
|
||||||
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-04-23T12:48:24.088+08:00")
|
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-04-27T23:17:22.230+08:00")
|
||||||
public class StringUtil {
|
public class StringUtil {
|
||||||
/**
|
/**
|
||||||
* Check if the given array contains the given value (with case-insensitive comparison).
|
* Check if the given array contains the given value (with case-insensitive comparison).
|
||||||
|
@ -3,8 +3,8 @@ package io.swagger.client.api;
|
|||||||
import io.swagger.client.ApiClient;
|
import io.swagger.client.ApiClient;
|
||||||
|
|
||||||
import io.swagger.client.model.Pet;
|
import io.swagger.client.model.Pet;
|
||||||
import io.swagger.client.model.InlineResponse200;
|
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
|
import io.swagger.client.model.ModelApiResponse;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
@ -12,14 +12,14 @@ import java.util.List;
|
|||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import feign.*;
|
import feign.*;
|
||||||
|
|
||||||
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-04-12T23:06:03.099+08:00")
|
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-04-27T23:17:22.230+08:00")
|
||||||
public interface PetApi extends ApiClient.Api {
|
public interface PetApi extends ApiClient.Api {
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 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 (optional)
|
* @param body Pet object that needs to be added to the store (required)
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
@RequestLine("POST /pet")
|
@RequestLine("POST /pet")
|
||||||
@ -28,20 +28,7 @@ public interface PetApi extends ApiClient.Api {
|
|||||||
"Accepts: application/json",
|
"Accepts: application/json",
|
||||||
})
|
})
|
||||||
void addPet(Pet body);
|
void addPet(Pet body);
|
||||||
|
|
||||||
/**
|
|
||||||
* Fake endpoint to test byte array in body parameter for adding a new pet to the store
|
|
||||||
*
|
|
||||||
* @param body Pet object in the form of byte array (optional)
|
|
||||||
* @return void
|
|
||||||
*/
|
|
||||||
@RequestLine("POST /pet?testing_byte_array=true")
|
|
||||||
@Headers({
|
|
||||||
"Content-type: application/json",
|
|
||||||
"Accepts: application/json",
|
|
||||||
})
|
|
||||||
void addPetUsingByteArray(byte[] body);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Deletes a pet
|
* Deletes a pet
|
||||||
*
|
*
|
||||||
@ -56,11 +43,11 @@ public interface PetApi extends ApiClient.Api {
|
|||||||
"apiKey: {apiKey}"
|
"apiKey: {apiKey}"
|
||||||
})
|
})
|
||||||
void deletePet(@Param("petId") Long petId, @Param("apiKey") String apiKey);
|
void deletePet(@Param("petId") Long petId, @Param("apiKey") String apiKey);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 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 query (optional, default to available)
|
* @param status Status values that need to be considered for filter (required)
|
||||||
* @return List<Pet>
|
* @return List<Pet>
|
||||||
*/
|
*/
|
||||||
@RequestLine("GET /pet/findByStatus?status={status}")
|
@RequestLine("GET /pet/findByStatus?status={status}")
|
||||||
@ -69,11 +56,11 @@ public interface PetApi extends ApiClient.Api {
|
|||||||
"Accepts: application/json",
|
"Accepts: application/json",
|
||||||
})
|
})
|
||||||
List<Pet> findPetsByStatus(@Param("status") List<String> status);
|
List<Pet> findPetsByStatus(@Param("status") List<String> status);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Finds Pets by tags
|
* Finds Pets by tags
|
||||||
* Muliple tags can be provided with comma seperated 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 (optional)
|
* @param tags Tags to filter by (required)
|
||||||
* @return List<Pet>
|
* @return List<Pet>
|
||||||
*/
|
*/
|
||||||
@RequestLine("GET /pet/findByTags?tags={tags}")
|
@RequestLine("GET /pet/findByTags?tags={tags}")
|
||||||
@ -82,11 +69,11 @@ public interface PetApi extends ApiClient.Api {
|
|||||||
"Accepts: application/json",
|
"Accepts: application/json",
|
||||||
})
|
})
|
||||||
List<Pet> findPetsByTags(@Param("tags") List<String> tags);
|
List<Pet> findPetsByTags(@Param("tags") List<String> tags);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Find pet by ID
|
* Find pet by ID
|
||||||
* Returns a pet when ID < 10. ID > 10 or nonintegers will simulate API error conditions
|
* Returns a single pet
|
||||||
* @param petId ID of pet that needs to be fetched (required)
|
* @param petId ID of pet to return (required)
|
||||||
* @return Pet
|
* @return Pet
|
||||||
*/
|
*/
|
||||||
@RequestLine("GET /pet/{petId}")
|
@RequestLine("GET /pet/{petId}")
|
||||||
@ -95,37 +82,11 @@ public interface PetApi extends ApiClient.Api {
|
|||||||
"Accepts: application/json",
|
"Accepts: application/json",
|
||||||
})
|
})
|
||||||
Pet getPetById(@Param("petId") Long petId);
|
Pet getPetById(@Param("petId") Long petId);
|
||||||
|
|
||||||
/**
|
|
||||||
* Fake endpoint to test inline arbitrary object return by 'Find pet by ID'
|
|
||||||
* Returns a pet when ID < 10. ID > 10 or nonintegers will simulate API error conditions
|
|
||||||
* @param petId ID of pet that needs to be fetched (required)
|
|
||||||
* @return InlineResponse200
|
|
||||||
*/
|
|
||||||
@RequestLine("GET /pet/{petId}?response=inline_arbitrary_object")
|
|
||||||
@Headers({
|
|
||||||
"Content-type: application/json",
|
|
||||||
"Accepts: application/json",
|
|
||||||
})
|
|
||||||
InlineResponse200 getPetByIdInObject(@Param("petId") Long petId);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Fake endpoint to test byte array return by 'Find pet by ID'
|
|
||||||
* Returns a pet when ID < 10. ID > 10 or nonintegers will simulate API error conditions
|
|
||||||
* @param petId ID of pet that needs to be fetched (required)
|
|
||||||
* @return byte[]
|
|
||||||
*/
|
|
||||||
@RequestLine("GET /pet/{petId}?testing_byte_array=true")
|
|
||||||
@Headers({
|
|
||||||
"Content-type: application/json",
|
|
||||||
"Accepts: application/json",
|
|
||||||
})
|
|
||||||
byte[] petPetIdtestingByteArraytrueGet(@Param("petId") Long petId);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Update an existing pet
|
* Update an existing pet
|
||||||
*
|
*
|
||||||
* @param body Pet object that needs to be added to the store (optional)
|
* @param body Pet object that needs to be added to the store (required)
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
@RequestLine("PUT /pet")
|
@RequestLine("PUT /pet")
|
||||||
@ -134,7 +95,7 @@ public interface PetApi extends ApiClient.Api {
|
|||||||
"Accepts: application/json",
|
"Accepts: application/json",
|
||||||
})
|
})
|
||||||
void updatePet(Pet body);
|
void updatePet(Pet body);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Updates a pet in the store with form data
|
* Updates a pet in the store with form data
|
||||||
*
|
*
|
||||||
@ -148,21 +109,20 @@ public interface PetApi extends ApiClient.Api {
|
|||||||
"Content-type: application/x-www-form-urlencoded",
|
"Content-type: application/x-www-form-urlencoded",
|
||||||
"Accepts: application/json",
|
"Accepts: application/json",
|
||||||
})
|
})
|
||||||
void updatePetWithForm(@Param("petId") String petId, @Param("name") String name, @Param("status") String status);
|
void updatePetWithForm(@Param("petId") Long petId, @Param("name") String name, @Param("status") String status);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* uploads an image
|
* uploads an image
|
||||||
*
|
*
|
||||||
* @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 void
|
* @return ModelApiResponse
|
||||||
*/
|
*/
|
||||||
@RequestLine("POST /pet/{petId}/uploadImage")
|
@RequestLine("POST /pet/{petId}/uploadImage")
|
||||||
@Headers({
|
@Headers({
|
||||||
"Content-type: multipart/form-data",
|
"Content-type: multipart/form-data",
|
||||||
"Accepts: application/json",
|
"Accepts: application/json",
|
||||||
})
|
})
|
||||||
void uploadFile(@Param("petId") Long petId, @Param("additionalMetadata") String additionalMetadata, @Param("file") File file);
|
ModelApiResponse uploadFile(@Param("petId") Long petId, @Param("additionalMetadata") String additionalMetadata, @Param("file") File file);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -10,7 +10,7 @@ import java.util.List;
|
|||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import feign.*;
|
import feign.*;
|
||||||
|
|
||||||
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-04-12T23:06:03.099+08:00")
|
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-04-27T23:17:22.230+08:00")
|
||||||
public interface StoreApi extends ApiClient.Api {
|
public interface StoreApi extends ApiClient.Api {
|
||||||
|
|
||||||
|
|
||||||
@ -26,20 +26,7 @@ public interface StoreApi extends ApiClient.Api {
|
|||||||
"Accepts: application/json",
|
"Accepts: application/json",
|
||||||
})
|
})
|
||||||
void deleteOrder(@Param("orderId") String orderId);
|
void deleteOrder(@Param("orderId") String orderId);
|
||||||
|
|
||||||
/**
|
|
||||||
* Finds orders by status
|
|
||||||
* A single status value can be provided as a string
|
|
||||||
* @param status Status value that needs to be considered for query (optional, default to placed)
|
|
||||||
* @return List<Order>
|
|
||||||
*/
|
|
||||||
@RequestLine("GET /store/findByStatus?status={status}")
|
|
||||||
@Headers({
|
|
||||||
"Content-type: application/json",
|
|
||||||
"Accepts: application/json",
|
|
||||||
})
|
|
||||||
List<Order> findOrdersByStatus(@Param("status") String status);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 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
|
||||||
@ -51,22 +38,10 @@ public interface StoreApi extends ApiClient.Api {
|
|||||||
"Accepts: application/json",
|
"Accepts: application/json",
|
||||||
})
|
})
|
||||||
Map<String, Integer> getInventory();
|
Map<String, Integer> getInventory();
|
||||||
|
|
||||||
/**
|
|
||||||
* Fake endpoint to test arbitrary object return by 'Get inventory'
|
|
||||||
* Returns an arbitrary object which is actually a map of status codes to quantities
|
|
||||||
* @return Object
|
|
||||||
*/
|
|
||||||
@RequestLine("GET /store/inventory?response=arbitrary_object")
|
|
||||||
@Headers({
|
|
||||||
"Content-type: application/json",
|
|
||||||
"Accepts: application/json",
|
|
||||||
})
|
|
||||||
Object getInventoryInObject();
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 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 Order
|
* @return Order
|
||||||
*/
|
*/
|
||||||
@ -75,12 +50,12 @@ public interface StoreApi extends ApiClient.Api {
|
|||||||
"Content-type: application/json",
|
"Content-type: application/json",
|
||||||
"Accepts: application/json",
|
"Accepts: application/json",
|
||||||
})
|
})
|
||||||
Order getOrderById(@Param("orderId") String orderId);
|
Order getOrderById(@Param("orderId") Long orderId);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Place an order for a pet
|
* Place an order for a pet
|
||||||
*
|
*
|
||||||
* @param body order placed for purchasing the pet (optional)
|
* @param body order placed for purchasing the pet (required)
|
||||||
* @return Order
|
* @return Order
|
||||||
*/
|
*/
|
||||||
@RequestLine("POST /store/order")
|
@RequestLine("POST /store/order")
|
||||||
@ -89,5 +64,4 @@ public interface StoreApi extends ApiClient.Api {
|
|||||||
"Accepts: application/json",
|
"Accepts: application/json",
|
||||||
})
|
})
|
||||||
Order placeOrder(Order body);
|
Order placeOrder(Order body);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -10,14 +10,14 @@ import java.util.List;
|
|||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import feign.*;
|
import feign.*;
|
||||||
|
|
||||||
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-04-12T23:06:03.099+08:00")
|
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-04-27T23:17:22.230+08:00")
|
||||||
public interface UserApi extends ApiClient.Api {
|
public interface UserApi extends ApiClient.Api {
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 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 (optional)
|
* @param body Created user object (required)
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
@RequestLine("POST /user")
|
@RequestLine("POST /user")
|
||||||
@ -26,11 +26,11 @@ public interface UserApi extends ApiClient.Api {
|
|||||||
"Accepts: application/json",
|
"Accepts: application/json",
|
||||||
})
|
})
|
||||||
void createUser(User body);
|
void createUser(User body);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates list of users with given input array
|
* Creates list of users with given input array
|
||||||
*
|
*
|
||||||
* @param body List of user object (optional)
|
* @param body List of user object (required)
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
@RequestLine("POST /user/createWithArray")
|
@RequestLine("POST /user/createWithArray")
|
||||||
@ -39,11 +39,11 @@ public interface UserApi extends ApiClient.Api {
|
|||||||
"Accepts: application/json",
|
"Accepts: application/json",
|
||||||
})
|
})
|
||||||
void createUsersWithArrayInput(List<User> body);
|
void createUsersWithArrayInput(List<User> body);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates list of users with given input array
|
* Creates list of users with given input array
|
||||||
*
|
*
|
||||||
* @param body List of user object (optional)
|
* @param body List of user object (required)
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
@RequestLine("POST /user/createWithList")
|
@RequestLine("POST /user/createWithList")
|
||||||
@ -52,7 +52,7 @@ public interface UserApi extends ApiClient.Api {
|
|||||||
"Accepts: application/json",
|
"Accepts: application/json",
|
||||||
})
|
})
|
||||||
void createUsersWithListInput(List<User> body);
|
void createUsersWithListInput(List<User> body);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Delete user
|
* Delete user
|
||||||
* This can only be done by the logged in user.
|
* This can only be done by the logged in user.
|
||||||
@ -65,11 +65,11 @@ public interface UserApi extends ApiClient.Api {
|
|||||||
"Accepts: application/json",
|
"Accepts: application/json",
|
||||||
})
|
})
|
||||||
void deleteUser(@Param("username") String username);
|
void deleteUser(@Param("username") String username);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 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 User
|
* @return User
|
||||||
*/
|
*/
|
||||||
@RequestLine("GET /user/{username}")
|
@RequestLine("GET /user/{username}")
|
||||||
@ -78,12 +78,12 @@ public interface UserApi extends ApiClient.Api {
|
|||||||
"Accepts: application/json",
|
"Accepts: application/json",
|
||||||
})
|
})
|
||||||
User getUserByName(@Param("username") String username);
|
User getUserByName(@Param("username") String username);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Logs user into the system
|
* Logs user into the system
|
||||||
*
|
*
|
||||||
* @param username The user name for login (optional)
|
* @param username The user name for login (required)
|
||||||
* @param password The password for login in clear text (optional)
|
* @param password The password for login in clear text (required)
|
||||||
* @return String
|
* @return String
|
||||||
*/
|
*/
|
||||||
@RequestLine("GET /user/login?username={username}&password={password}")
|
@RequestLine("GET /user/login?username={username}&password={password}")
|
||||||
@ -92,7 +92,7 @@ public interface UserApi extends ApiClient.Api {
|
|||||||
"Accepts: application/json",
|
"Accepts: application/json",
|
||||||
})
|
})
|
||||||
String loginUser(@Param("username") String username, @Param("password") String password);
|
String loginUser(@Param("username") String username, @Param("password") String password);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Logs out current logged in user session
|
* Logs out current logged in user session
|
||||||
*
|
*
|
||||||
@ -104,12 +104,12 @@ public interface UserApi extends ApiClient.Api {
|
|||||||
"Accepts: application/json",
|
"Accepts: application/json",
|
||||||
})
|
})
|
||||||
void logoutUser();
|
void logoutUser();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Updated user
|
* Updated user
|
||||||
* 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 (optional)
|
* @param body Updated user object (required)
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
@RequestLine("PUT /user/{username}")
|
@RequestLine("PUT /user/{username}")
|
||||||
@ -118,5 +118,4 @@ public interface UserApi extends ApiClient.Api {
|
|||||||
"Accepts: application/json",
|
"Accepts: application/json",
|
||||||
})
|
})
|
||||||
void updateUser(@Param("username") String username, User body);
|
void updateUser(@Param("username") String username, User body);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -9,7 +9,7 @@ import io.swagger.annotations.ApiModelProperty;
|
|||||||
/**
|
/**
|
||||||
* Animal
|
* Animal
|
||||||
*/
|
*/
|
||||||
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-04-12T23:06:03.099+08:00")
|
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-04-27T23:17:22.230+08:00")
|
||||||
public class Animal {
|
public class Animal {
|
||||||
|
|
||||||
private String className = null;
|
private String className = null;
|
||||||
@ -31,7 +31,6 @@ public class Animal {
|
|||||||
this.className = className;
|
this.className = className;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean equals(java.lang.Object o) {
|
public boolean equals(java.lang.Object o) {
|
||||||
|
@ -10,7 +10,7 @@ import io.swagger.client.model.Animal;
|
|||||||
/**
|
/**
|
||||||
* Cat
|
* Cat
|
||||||
*/
|
*/
|
||||||
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-04-12T23:06:03.099+08:00")
|
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-04-27T23:17:22.230+08:00")
|
||||||
public class Cat extends Animal {
|
public class Cat extends Animal {
|
||||||
|
|
||||||
private String className = null;
|
private String className = null;
|
||||||
@ -33,7 +33,7 @@ public class Cat extends Animal {
|
|||||||
this.className = className;
|
this.className = className;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
**/
|
**/
|
||||||
public Cat declawed(Boolean declawed) {
|
public Cat declawed(Boolean declawed) {
|
||||||
@ -50,7 +50,6 @@ public class Cat extends Animal {
|
|||||||
this.declawed = declawed;
|
this.declawed = declawed;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean equals(java.lang.Object o) {
|
public boolean equals(java.lang.Object o) {
|
||||||
|
@ -9,7 +9,7 @@ import io.swagger.annotations.ApiModelProperty;
|
|||||||
/**
|
/**
|
||||||
* Category
|
* Category
|
||||||
*/
|
*/
|
||||||
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-04-12T23:06:03.099+08:00")
|
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-04-27T23:17:22.230+08:00")
|
||||||
public class Category {
|
public class Category {
|
||||||
|
|
||||||
private Long id = null;
|
private Long id = null;
|
||||||
@ -32,7 +32,7 @@ public class Category {
|
|||||||
this.id = id;
|
this.id = id;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
**/
|
**/
|
||||||
public Category name(String name) {
|
public Category name(String name) {
|
||||||
@ -49,7 +49,6 @@ public class Category {
|
|||||||
this.name = name;
|
this.name = name;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean equals(java.lang.Object o) {
|
public boolean equals(java.lang.Object o) {
|
||||||
|
@ -10,7 +10,7 @@ import io.swagger.client.model.Animal;
|
|||||||
/**
|
/**
|
||||||
* Dog
|
* Dog
|
||||||
*/
|
*/
|
||||||
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-04-12T23:06:03.099+08:00")
|
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-04-27T23:17:22.230+08:00")
|
||||||
public class Dog extends Animal {
|
public class Dog extends Animal {
|
||||||
|
|
||||||
private String className = null;
|
private String className = null;
|
||||||
@ -33,7 +33,7 @@ public class Dog extends Animal {
|
|||||||
this.className = className;
|
this.className = className;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
**/
|
**/
|
||||||
public Dog breed(String breed) {
|
public Dog breed(String breed) {
|
||||||
@ -50,7 +50,6 @@ public class Dog extends Animal {
|
|||||||
this.breed = breed;
|
this.breed = breed;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean equals(java.lang.Object o) {
|
public boolean equals(java.lang.Object o) {
|
||||||
|
@ -10,7 +10,7 @@ import io.swagger.annotations.ApiModelProperty;
|
|||||||
/**
|
/**
|
||||||
* EnumTest
|
* EnumTest
|
||||||
*/
|
*/
|
||||||
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-04-12T23:06:03.099+08:00")
|
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-04-27T23:17:22.230+08:00")
|
||||||
public class EnumTest {
|
public class EnumTest {
|
||||||
|
|
||||||
|
|
||||||
@ -97,7 +97,7 @@ public class EnumTest {
|
|||||||
this.enumString = enumString;
|
this.enumString = enumString;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
**/
|
**/
|
||||||
public EnumTest enumInteger(EnumIntegerEnum enumInteger) {
|
public EnumTest enumInteger(EnumIntegerEnum enumInteger) {
|
||||||
@ -114,7 +114,7 @@ public class EnumTest {
|
|||||||
this.enumInteger = enumInteger;
|
this.enumInteger = enumInteger;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
**/
|
**/
|
||||||
public EnumTest enumNumber(EnumNumberEnum enumNumber) {
|
public EnumTest enumNumber(EnumNumberEnum enumNumber) {
|
||||||
@ -131,7 +131,6 @@ public class EnumTest {
|
|||||||
this.enumNumber = enumNumber;
|
this.enumNumber = enumNumber;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean equals(java.lang.Object o) {
|
public boolean equals(java.lang.Object o) {
|
||||||
|
@ -8,10 +8,10 @@ import java.math.BigDecimal;
|
|||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* FormatTest
|
||||||
|
*/
|
||||||
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-04-23T12:48:24.088+08:00")
|
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-04-27T23:17:22.230+08:00")
|
||||||
public class FormatTest {
|
public class FormatTest {
|
||||||
|
|
||||||
private Integer integer = null;
|
private Integer integer = null;
|
||||||
@ -29,6 +29,8 @@ public class FormatTest {
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* minimum: 10.0
|
||||||
|
* maximum: 100.0
|
||||||
**/
|
**/
|
||||||
public FormatTest integer(Integer integer) {
|
public FormatTest integer(Integer integer) {
|
||||||
this.integer = integer;
|
this.integer = integer;
|
||||||
@ -46,6 +48,8 @@ public class FormatTest {
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* minimum: 20.0
|
||||||
|
* maximum: 200.0
|
||||||
**/
|
**/
|
||||||
public FormatTest int32(Integer int32) {
|
public FormatTest int32(Integer int32) {
|
||||||
this.int32 = int32;
|
this.int32 = int32;
|
||||||
@ -80,6 +84,8 @@ public class FormatTest {
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* minimum: 32.1
|
||||||
|
* maximum: 543.2
|
||||||
**/
|
**/
|
||||||
public FormatTest number(BigDecimal number) {
|
public FormatTest number(BigDecimal number) {
|
||||||
this.number = number;
|
this.number = number;
|
||||||
@ -97,6 +103,8 @@ public class FormatTest {
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* minimum: 54.3
|
||||||
|
* maximum: 987.6
|
||||||
**/
|
**/
|
||||||
public FormatTest _float(Float _float) {
|
public FormatTest _float(Float _float) {
|
||||||
this._float = _float;
|
this._float = _float;
|
||||||
@ -114,6 +122,8 @@ public class FormatTest {
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* minimum: 67.8
|
||||||
|
* maximum: 123.4
|
||||||
**/
|
**/
|
||||||
public FormatTest _double(Double _double) {
|
public FormatTest _double(Double _double) {
|
||||||
this._double = _double;
|
this._double = _double;
|
||||||
@ -154,7 +164,7 @@ public class FormatTest {
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ApiModelProperty(example = "null", value = "")
|
@ApiModelProperty(example = "null", required = true, value = "")
|
||||||
@JsonProperty("byte")
|
@JsonProperty("byte")
|
||||||
public byte[] getByte() {
|
public byte[] getByte() {
|
||||||
return _byte;
|
return _byte;
|
||||||
@ -188,7 +198,7 @@ public class FormatTest {
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ApiModelProperty(example = "null", value = "")
|
@ApiModelProperty(example = "null", required = true, value = "")
|
||||||
@JsonProperty("date")
|
@JsonProperty("date")
|
||||||
public Date getDate() {
|
public Date getDate() {
|
||||||
return date;
|
return date;
|
||||||
@ -222,7 +232,7 @@ public class FormatTest {
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ApiModelProperty(example = "null", value = "")
|
@ApiModelProperty(example = "null", required = true, value = "")
|
||||||
@JsonProperty("password")
|
@JsonProperty("password")
|
||||||
public String getPassword() {
|
public String getPassword() {
|
||||||
return password;
|
return password;
|
||||||
|
@ -7,9 +7,10 @@ import io.swagger.annotations.ApiModelProperty;
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Model200Response
|
* Model for testing model name starting with number
|
||||||
*/
|
*/
|
||||||
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-04-12T23:06:03.099+08:00")
|
@ApiModel(description = "Model for testing model name starting with number")
|
||||||
|
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-04-27T23:17:22.230+08:00")
|
||||||
public class Model200Response {
|
public class Model200Response {
|
||||||
|
|
||||||
private Integer name = null;
|
private Integer name = null;
|
||||||
@ -31,7 +32,6 @@ public class Model200Response {
|
|||||||
this.name = name;
|
this.name = name;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean equals(java.lang.Object o) {
|
public boolean equals(java.lang.Object o) {
|
||||||
|
@ -6,10 +6,10 @@ import io.swagger.annotations.ApiModel;
|
|||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* ModelApiResponse
|
||||||
|
*/
|
||||||
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-04-23T12:48:24.088+08:00")
|
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-04-27T23:17:22.230+08:00")
|
||||||
public class ModelApiResponse {
|
public class ModelApiResponse {
|
||||||
|
|
||||||
private Integer code = null;
|
private Integer code = null;
|
||||||
|
@ -7,9 +7,10 @@ import io.swagger.annotations.ApiModelProperty;
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ModelReturn
|
* Model for testing reserved words
|
||||||
*/
|
*/
|
||||||
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-04-12T23:06:03.099+08:00")
|
@ApiModel(description = "Model for testing reserved words")
|
||||||
|
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-04-27T23:17:22.230+08:00")
|
||||||
public class ModelReturn {
|
public class ModelReturn {
|
||||||
|
|
||||||
private Integer _return = null;
|
private Integer _return = null;
|
||||||
@ -31,7 +32,6 @@ public class ModelReturn {
|
|||||||
this._return = _return;
|
this._return = _return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean equals(java.lang.Object o) {
|
public boolean equals(java.lang.Object o) {
|
||||||
|
@ -7,13 +7,15 @@ import io.swagger.annotations.ApiModelProperty;
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Name
|
* Model for testing model name same as property name
|
||||||
*/
|
*/
|
||||||
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-04-12T23:06:03.099+08:00")
|
@ApiModel(description = "Model for testing model name same as property name")
|
||||||
|
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-04-27T23:17:22.230+08:00")
|
||||||
public class Name {
|
public class Name {
|
||||||
|
|
||||||
private Integer name = null;
|
private Integer name = null;
|
||||||
private Integer snakeCase = null;
|
private Integer snakeCase = null;
|
||||||
|
private String property = null;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -23,7 +25,7 @@ public class Name {
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ApiModelProperty(example = "null", value = "")
|
@ApiModelProperty(example = "null", required = true, value = "")
|
||||||
@JsonProperty("name")
|
@JsonProperty("name")
|
||||||
public Integer getName() {
|
public Integer getName() {
|
||||||
return name;
|
return name;
|
||||||
@ -32,24 +34,30 @@ public class Name {
|
|||||||
this.name = name;
|
this.name = name;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
**/
|
|
||||||
public Name snakeCase(Integer snakeCase) {
|
|
||||||
this.snakeCase = snakeCase;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
@ApiModelProperty(example = "null", value = "")
|
@ApiModelProperty(example = "null", value = "")
|
||||||
@JsonProperty("snake_case")
|
@JsonProperty("snake_case")
|
||||||
public Integer getSnakeCase() {
|
public Integer getSnakeCase() {
|
||||||
return snakeCase;
|
return snakeCase;
|
||||||
}
|
}
|
||||||
public void setSnakeCase(Integer snakeCase) {
|
|
||||||
this.snakeCase = snakeCase;
|
|
||||||
|
/**
|
||||||
|
**/
|
||||||
|
public Name property(String property) {
|
||||||
|
this.property = property;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
@ApiModelProperty(example = "null", value = "")
|
||||||
|
@JsonProperty("property")
|
||||||
|
public String getProperty() {
|
||||||
|
return property;
|
||||||
|
}
|
||||||
|
public void setProperty(String property) {
|
||||||
|
this.property = property;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean equals(java.lang.Object o) {
|
public boolean equals(java.lang.Object o) {
|
||||||
@ -61,12 +69,13 @@ public class Name {
|
|||||||
}
|
}
|
||||||
Name name = (Name) o;
|
Name name = (Name) o;
|
||||||
return Objects.equals(this.name, name.name) &&
|
return Objects.equals(this.name, name.name) &&
|
||||||
Objects.equals(this.snakeCase, name.snakeCase);
|
Objects.equals(this.snakeCase, name.snakeCase) &&
|
||||||
|
Objects.equals(this.property, name.property);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int hashCode() {
|
public int hashCode() {
|
||||||
return Objects.hash(name, snakeCase);
|
return Objects.hash(name, snakeCase, property);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@ -76,6 +85,7 @@ public class Name {
|
|||||||
|
|
||||||
sb.append(" name: ").append(toIndentedString(name)).append("\n");
|
sb.append(" name: ").append(toIndentedString(name)).append("\n");
|
||||||
sb.append(" snakeCase: ").append(toIndentedString(snakeCase)).append("\n");
|
sb.append(" snakeCase: ").append(toIndentedString(snakeCase)).append("\n");
|
||||||
|
sb.append(" property: ").append(toIndentedString(property)).append("\n");
|
||||||
sb.append("}");
|
sb.append("}");
|
||||||
return sb.toString();
|
return sb.toString();
|
||||||
}
|
}
|
||||||
|
@ -11,7 +11,7 @@ import java.util.Date;
|
|||||||
/**
|
/**
|
||||||
* Order
|
* Order
|
||||||
*/
|
*/
|
||||||
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-04-12T23:06:03.099+08:00")
|
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-04-27T23:17:22.230+08:00")
|
||||||
public class Order {
|
public class Order {
|
||||||
|
|
||||||
private Long id = null;
|
private Long id = null;
|
||||||
@ -40,17 +40,27 @@ public class Order {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private StatusEnum status = StatusEnum.PLACED;
|
private StatusEnum status = null;
|
||||||
private Boolean complete = null;
|
private Boolean complete = false;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
**/
|
||||||
|
public Order id(Long id) {
|
||||||
|
this.id = id;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
@ApiModelProperty(example = "null", value = "")
|
@ApiModelProperty(example = "null", value = "")
|
||||||
@JsonProperty("id")
|
@JsonProperty("id")
|
||||||
public Long getId() {
|
public Long getId() {
|
||||||
return id;
|
return id;
|
||||||
}
|
}
|
||||||
|
public void setId(Long id) {
|
||||||
|
this.id = id;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
**/
|
**/
|
||||||
public Order petId(Long petId) {
|
public Order petId(Long petId) {
|
||||||
@ -67,7 +77,7 @@ public class Order {
|
|||||||
this.petId = petId;
|
this.petId = petId;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
**/
|
**/
|
||||||
public Order quantity(Integer quantity) {
|
public Order quantity(Integer quantity) {
|
||||||
@ -84,7 +94,7 @@ public class Order {
|
|||||||
this.quantity = quantity;
|
this.quantity = quantity;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
**/
|
**/
|
||||||
public Order shipDate(Date shipDate) {
|
public Order shipDate(Date shipDate) {
|
||||||
@ -101,7 +111,7 @@ public class Order {
|
|||||||
this.shipDate = shipDate;
|
this.shipDate = shipDate;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Order Status
|
* Order Status
|
||||||
**/
|
**/
|
||||||
@ -119,7 +129,7 @@ public class Order {
|
|||||||
this.status = status;
|
this.status = status;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
**/
|
**/
|
||||||
public Order complete(Boolean complete) {
|
public Order complete(Boolean complete) {
|
||||||
@ -136,7 +146,6 @@ public class Order {
|
|||||||
this.complete = complete;
|
this.complete = complete;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean equals(java.lang.Object o) {
|
public boolean equals(java.lang.Object o) {
|
||||||
|
@ -14,7 +14,7 @@ import java.util.List;
|
|||||||
/**
|
/**
|
||||||
* Pet
|
* Pet
|
||||||
*/
|
*/
|
||||||
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-04-12T23:06:03.099+08:00")
|
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-04-27T23:17:22.230+08:00")
|
||||||
public class Pet {
|
public class Pet {
|
||||||
|
|
||||||
private Long id = null;
|
private Long id = null;
|
||||||
@ -63,7 +63,7 @@ public class Pet {
|
|||||||
this.id = id;
|
this.id = id;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
**/
|
**/
|
||||||
public Pet category(Category category) {
|
public Pet category(Category category) {
|
||||||
@ -80,7 +80,7 @@ public class Pet {
|
|||||||
this.category = category;
|
this.category = category;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
**/
|
**/
|
||||||
public Pet name(String name) {
|
public Pet name(String name) {
|
||||||
@ -97,7 +97,7 @@ public class Pet {
|
|||||||
this.name = name;
|
this.name = name;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
**/
|
**/
|
||||||
public Pet photoUrls(List<String> photoUrls) {
|
public Pet photoUrls(List<String> photoUrls) {
|
||||||
@ -114,7 +114,7 @@ public class Pet {
|
|||||||
this.photoUrls = photoUrls;
|
this.photoUrls = photoUrls;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
**/
|
**/
|
||||||
public Pet tags(List<Tag> tags) {
|
public Pet tags(List<Tag> tags) {
|
||||||
@ -131,7 +131,7 @@ public class Pet {
|
|||||||
this.tags = tags;
|
this.tags = tags;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* pet status in the store
|
* pet status in the store
|
||||||
**/
|
**/
|
||||||
@ -149,7 +149,6 @@ public class Pet {
|
|||||||
this.status = status;
|
this.status = status;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean equals(java.lang.Object o) {
|
public boolean equals(java.lang.Object o) {
|
||||||
|
@ -9,7 +9,7 @@ import io.swagger.annotations.ApiModelProperty;
|
|||||||
/**
|
/**
|
||||||
* SpecialModelName
|
* SpecialModelName
|
||||||
*/
|
*/
|
||||||
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-04-12T23:06:03.099+08:00")
|
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-04-27T23:17:22.230+08:00")
|
||||||
public class SpecialModelName {
|
public class SpecialModelName {
|
||||||
|
|
||||||
private Long specialPropertyName = null;
|
private Long specialPropertyName = null;
|
||||||
@ -31,7 +31,6 @@ public class SpecialModelName {
|
|||||||
this.specialPropertyName = specialPropertyName;
|
this.specialPropertyName = specialPropertyName;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean equals(java.lang.Object o) {
|
public boolean equals(java.lang.Object o) {
|
||||||
|
@ -9,7 +9,7 @@ import io.swagger.annotations.ApiModelProperty;
|
|||||||
/**
|
/**
|
||||||
* Tag
|
* Tag
|
||||||
*/
|
*/
|
||||||
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-04-12T23:06:03.099+08:00")
|
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-04-27T23:17:22.230+08:00")
|
||||||
public class Tag {
|
public class Tag {
|
||||||
|
|
||||||
private Long id = null;
|
private Long id = null;
|
||||||
@ -32,7 +32,7 @@ public class Tag {
|
|||||||
this.id = id;
|
this.id = id;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
**/
|
**/
|
||||||
public Tag name(String name) {
|
public Tag name(String name) {
|
||||||
@ -49,7 +49,6 @@ public class Tag {
|
|||||||
this.name = name;
|
this.name = name;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean equals(java.lang.Object o) {
|
public boolean equals(java.lang.Object o) {
|
||||||
|
@ -9,7 +9,7 @@ import io.swagger.annotations.ApiModelProperty;
|
|||||||
/**
|
/**
|
||||||
* User
|
* User
|
||||||
*/
|
*/
|
||||||
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-04-12T23:06:03.099+08:00")
|
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-04-27T23:17:22.230+08:00")
|
||||||
public class User {
|
public class User {
|
||||||
|
|
||||||
private Long id = null;
|
private Long id = null;
|
||||||
@ -38,7 +38,7 @@ public class User {
|
|||||||
this.id = id;
|
this.id = id;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
**/
|
**/
|
||||||
public User username(String username) {
|
public User username(String username) {
|
||||||
@ -55,7 +55,7 @@ public class User {
|
|||||||
this.username = username;
|
this.username = username;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
**/
|
**/
|
||||||
public User firstName(String firstName) {
|
public User firstName(String firstName) {
|
||||||
@ -72,7 +72,7 @@ public class User {
|
|||||||
this.firstName = firstName;
|
this.firstName = firstName;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
**/
|
**/
|
||||||
public User lastName(String lastName) {
|
public User lastName(String lastName) {
|
||||||
@ -89,7 +89,7 @@ public class User {
|
|||||||
this.lastName = lastName;
|
this.lastName = lastName;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
**/
|
**/
|
||||||
public User email(String email) {
|
public User email(String email) {
|
||||||
@ -106,7 +106,7 @@ public class User {
|
|||||||
this.email = email;
|
this.email = email;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
**/
|
**/
|
||||||
public User password(String password) {
|
public User password(String password) {
|
||||||
@ -123,7 +123,7 @@ public class User {
|
|||||||
this.password = password;
|
this.password = password;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
**/
|
**/
|
||||||
public User phone(String phone) {
|
public User phone(String phone) {
|
||||||
@ -140,7 +140,7 @@ public class User {
|
|||||||
this.phone = phone;
|
this.phone = phone;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* User Status
|
* User Status
|
||||||
**/
|
**/
|
||||||
@ -158,7 +158,6 @@ public class User {
|
|||||||
this.userStatus = userStatus;
|
this.userStatus = userStatus;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean equals(java.lang.Object o) {
|
public boolean equals(java.lang.Object o) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user