Add a "fullJavaUtil" option to Java clients

to toggle whether to use full qualified name (with full package prefix)
for classes under java.util
This commit is contained in:
xhh 2015-10-09 22:07:43 +08:00
parent ab34dc5697
commit aa0fbada07
26 changed files with 412 additions and 334 deletions

View File

@ -311,14 +311,15 @@ public class DefaultCodegen {
); );
typeMapping = new HashMap<String, String>(); typeMapping = new HashMap<String, String>();
typeMapping.put("array", "java.util.List"); typeMapping.put("array", "List");
typeMapping.put("map", "java.util.Map"); typeMapping.put("map", "Map");
typeMapping.put("List", "List");
typeMapping.put("boolean", "Boolean"); typeMapping.put("boolean", "Boolean");
typeMapping.put("string", "String"); typeMapping.put("string", "String");
typeMapping.put("int", "Integer"); typeMapping.put("int", "Integer");
typeMapping.put("float", "Float"); typeMapping.put("float", "Float");
typeMapping.put("number", "BigDecimal"); typeMapping.put("number", "BigDecimal");
typeMapping.put("DateTime", "java.util.Date"); typeMapping.put("DateTime", "Date");
typeMapping.put("long", "Long"); typeMapping.put("long", "Long");
typeMapping.put("short", "Short"); typeMapping.put("short", "Short");
typeMapping.put("char", "String"); typeMapping.put("char", "String");
@ -336,7 +337,15 @@ public class DefaultCodegen {
importMapping.put("BigDecimal", "java.math.BigDecimal"); importMapping.put("BigDecimal", "java.math.BigDecimal");
importMapping.put("UUID", "java.util.UUID"); importMapping.put("UUID", "java.util.UUID");
importMapping.put("File", "java.io.File"); importMapping.put("File", "java.io.File");
importMapping.put("Date", "java.util.Date");
importMapping.put("Timestamp", "java.sql.Timestamp"); importMapping.put("Timestamp", "java.sql.Timestamp");
importMapping.put("Map", "java.util.Map");
importMapping.put("HashMap", "java.util.HashMap");
importMapping.put("Array", "java.util.List");
importMapping.put("ArrayList", "java.util.ArrayList");
importMapping.put("List", "java.util.*");
importMapping.put("Set", "java.util.*");
importMapping.put("DateTime", "org.joda.time.*");
importMapping.put("LocalDateTime", "org.joda.time.*"); importMapping.put("LocalDateTime", "org.joda.time.*");
importMapping.put("LocalDate", "org.joda.time.*"); importMapping.put("LocalDate", "org.joda.time.*");
importMapping.put("LocalTime", "org.joda.time.*"); importMapping.put("LocalTime", "org.joda.time.*");

View File

@ -37,6 +37,8 @@ public class JavaClientCodegen extends DefaultCodegen implements CodegenConfig {
protected String artifactVersion = "1.0.0"; protected String artifactVersion = "1.0.0";
protected String sourceFolder = "src/main/java"; protected String sourceFolder = "src/main/java";
protected String localVariablePrefix = ""; protected String localVariablePrefix = "";
protected boolean fullJavaUtil = false;
protected String javaUtilPrefix = "";
protected Boolean serializableModel = false; protected Boolean serializableModel = false;
public JavaClientCodegen() { public JavaClientCodegen() {
@ -71,8 +73,8 @@ public class JavaClientCodegen extends DefaultCodegen implements CodegenConfig {
"Object", "Object",
"byte[]") "byte[]")
); );
instantiationTypes.put("array", "java.util.ArrayList"); instantiationTypes.put("array", "ArrayList");
instantiationTypes.put("map", "java.util.HashMap"); instantiationTypes.put("map", "HashMap");
cliOptions.add(new CliOption(CodegenConstants.INVOKER_PACKAGE, CodegenConstants.INVOKER_PACKAGE_DESC)); cliOptions.add(new CliOption(CodegenConstants.INVOKER_PACKAGE, CodegenConstants.INVOKER_PACKAGE_DESC));
cliOptions.add(new CliOption(CodegenConstants.GROUP_ID, CodegenConstants.GROUP_ID_DESC)); cliOptions.add(new CliOption(CodegenConstants.GROUP_ID, CodegenConstants.GROUP_ID_DESC));
@ -81,6 +83,7 @@ public class JavaClientCodegen extends DefaultCodegen implements CodegenConfig {
cliOptions.add(new CliOption(CodegenConstants.SOURCE_FOLDER, CodegenConstants.SOURCE_FOLDER_DESC)); cliOptions.add(new CliOption(CodegenConstants.SOURCE_FOLDER, CodegenConstants.SOURCE_FOLDER_DESC));
cliOptions.add(new CliOption(CodegenConstants.LOCAL_VARIABLE_PREFIX, CodegenConstants.LOCAL_VARIABLE_PREFIX_DESC)); cliOptions.add(new CliOption(CodegenConstants.LOCAL_VARIABLE_PREFIX, CodegenConstants.LOCAL_VARIABLE_PREFIX_DESC));
cliOptions.add(new CliOption(CodegenConstants.SERIALIZABLE_MODEL, CodegenConstants.SERIALIZABLE_MODEL_DESC)); cliOptions.add(new CliOption(CodegenConstants.SERIALIZABLE_MODEL, CodegenConstants.SERIALIZABLE_MODEL_DESC));
cliOptions.add(new CliOption("fullJavaUtil", "whether to use full qualified name for classes under java.util (default to false)"));
supportedLibraries.put("<default>", "HTTP client: Jersey client 1.18. JSON processing: Jackson 2.4.2"); supportedLibraries.put("<default>", "HTTP client: Jersey client 1.18. JSON processing: Jackson 2.4.2");
supportedLibraries.put("jersey2", "HTTP client: Jersey client 2.6"); supportedLibraries.put("jersey2", "HTTP client: Jersey client 2.6");
@ -152,6 +155,32 @@ public class JavaClientCodegen extends DefaultCodegen implements CodegenConfig {
// need to put back serializableModel (boolean) into additionalProperties as value in additionalProperties is string // need to put back serializableModel (boolean) into additionalProperties as value in additionalProperties is string
additionalProperties.put(CodegenConstants.SERIALIZABLE_MODEL, serializableModel); additionalProperties.put(CodegenConstants.SERIALIZABLE_MODEL, serializableModel);
if (additionalProperties.containsKey("fullJavaUtil")) {
fullJavaUtil = Boolean.valueOf(additionalProperties.get("fullJavaUtil").toString());
}
if (fullJavaUtil) {
javaUtilPrefix = "java.util.";
}
additionalProperties.put("fullJavaUtil", fullJavaUtil);
additionalProperties.put("javaUtilPrefix", javaUtilPrefix);
if (fullJavaUtil) {
typeMapping.put("array", "java.util.List");
typeMapping.put("map", "java.util.Map");
typeMapping.put("DateTime", "java.util.Date");
typeMapping.remove("List");
importMapping.remove("Date");
importMapping.remove("Map");
importMapping.remove("HashMap");
importMapping.remove("Array");
importMapping.remove("ArrayList");
importMapping.remove("List");
importMapping.remove("Set");
importMapping.remove("DateTime");
instantiationTypes.put("array", "java.util.ArrayList");
instantiationTypes.put("map", "java.util.HashMap");
}
this.sanitizeConfig(); this.sanitizeConfig();
final String invokerFolder = (sourceFolder + File.separator + invokerPackage).replace(".", File.separator); final String invokerFolder = (sourceFolder + File.separator + invokerPackage).replace(".", File.separator);
@ -294,10 +323,22 @@ public class JavaClientCodegen extends DefaultCodegen implements CodegenConfig {
public String toDefaultValue(Property p) { public String toDefaultValue(Property p) {
if (p instanceof ArrayProperty) { if (p instanceof ArrayProperty) {
final ArrayProperty ap = (ArrayProperty) p; final ArrayProperty ap = (ArrayProperty) p;
return String.format("new java.util.ArrayList<%s>()", getTypeDeclaration(ap.getItems())); final String pattern;
if (fullJavaUtil) {
pattern = "new java.util.ArrayList<%s>()";
} else {
pattern = "new ArrayList<%s>()";
}
return String.format(pattern, getTypeDeclaration(ap.getItems()));
} else if (p instanceof MapProperty) { } else if (p instanceof MapProperty) {
final MapProperty ap = (MapProperty) p; final MapProperty ap = (MapProperty) p;
return String.format("new java.util.HashMap<String, %s>()", getTypeDeclaration(ap.getAdditionalProperties())); final String pattern;
if (fullJavaUtil) {
pattern = "new java.util.HashMap<String, %s>()";
} else {
pattern = "new HashMap<String, %s>()";
}
return String.format(pattern, getTypeDeclaration(ap.getAdditionalProperties()));
} }
return super.toDefaultValue(p); return super.toDefaultValue(p);
} }

View File

@ -9,6 +9,10 @@ import {{invokerPackage}}.TypeRef;
{{#imports}}import {{import}}; {{#imports}}import {{import}};
{{/imports}} {{/imports}}
{{^fullJavaUtil}}
import java.util.*;
{{/fullJavaUtil}}
{{>generatedAnnotation}} {{>generatedAnnotation}}
{{#operations}} {{#operations}}
public class {{classname}} { public class {{classname}} {
@ -51,9 +55,9 @@ public class {{classname}} {
.replaceAll("\\{" + "{{baseName}}" + "\\}", {{localVariablePrefix}}apiClient.escapeString({{{paramName}}}.toString())){{/pathParams}}; .replaceAll("\\{" + "{{baseName}}" + "\\}", {{localVariablePrefix}}apiClient.escapeString({{{paramName}}}.toString())){{/pathParams}};
// query params // query params
java.util.List<Pair> {{localVariablePrefix}}queryParams = new java.util.ArrayList<Pair>(); {{javaUtilPrefix}}List<Pair> {{localVariablePrefix}}queryParams = new {{javaUtilPrefix}}ArrayList<Pair>();
java.util.Map<String, String> {{localVariablePrefix}}headerParams = new java.util.HashMap<String, String>(); {{javaUtilPrefix}}Map<String, String> {{localVariablePrefix}}headerParams = new {{javaUtilPrefix}}HashMap<String, String>();
java.util.Map<String, Object> {{localVariablePrefix}}formParams = new java.util.HashMap<String, Object>(); {{javaUtilPrefix}}Map<String, Object> {{localVariablePrefix}}formParams = new {{javaUtilPrefix}}HashMap<String, Object>();
{{#queryParams}} {{#queryParams}}
{{localVariablePrefix}}queryParams.addAll({{localVariablePrefix}}apiClient.parameterToPairs("{{#collectionFormat}}{{{collectionFormat}}}{{/collectionFormat}}", "{{baseName}}", {{paramName}})); {{localVariablePrefix}}queryParams.addAll({{localVariablePrefix}}apiClient.parameterToPairs("{{#collectionFormat}}{{{collectionFormat}}}{{/collectionFormat}}", "{{baseName}}", {{paramName}}));

View File

@ -6,11 +6,13 @@ import {{invokerPackage}}.Configuration;
import {{invokerPackage}}.Pair; import {{invokerPackage}}.Pair;
import {{invokerPackage}}.TypeRef; import {{invokerPackage}}.TypeRef;
import {{modelPackage}}.*;
{{#imports}}import {{import}}; {{#imports}}import {{import}};
{{/imports}} {{/imports}}
{{^fullJavaUtil}}
import java.util.*;
{{/fullJavaUtil}}
{{>generatedAnnotation}} {{>generatedAnnotation}}
{{#operations}} {{#operations}}
public class {{classname}} { public class {{classname}} {
@ -52,9 +54,9 @@ public class {{classname}} {
.replaceAll("\\{" + "{{baseName}}" + "\\}", {{localVariablePrefix}}apiClient.escapeString({{{paramName}}}.toString())){{/pathParams}}; .replaceAll("\\{" + "{{baseName}}" + "\\}", {{localVariablePrefix}}apiClient.escapeString({{{paramName}}}.toString())){{/pathParams}};
// query params // query params
java.util.List<Pair> {{localVariablePrefix}}queryParams = new java.util.ArrayList<Pair>(); {{javaUtilPrefix}}List<Pair> {{localVariablePrefix}}queryParams = new {{javaUtilPrefix}}ArrayList<Pair>();
java.util.Map<String, String> {{localVariablePrefix}}headerParams = new java.util.HashMap<String, String>(); {{javaUtilPrefix}}Map<String, String> {{localVariablePrefix}}headerParams = new {{javaUtilPrefix}}HashMap<String, String>();
java.util.Map<String, Object> {{localVariablePrefix}}formParams = new java.util.HashMap<String, Object>(); {{javaUtilPrefix}}Map<String, Object> {{localVariablePrefix}}formParams = new {{javaUtilPrefix}}HashMap<String, Object>();
{{#queryParams}} {{#queryParams}}
{{localVariablePrefix}}queryParams.addAll({{localVariablePrefix}}apiClient.parameterToPairs("{{#collectionFormat}}{{{collectionFormat}}}{{/collectionFormat}}", "{{baseName}}", {{paramName}})); {{localVariablePrefix}}queryParams.addAll({{localVariablePrefix}}apiClient.parameterToPairs("{{#collectionFormat}}{{{collectionFormat}}}{{/collectionFormat}}", "{{baseName}}", {{paramName}}));

View File

@ -6,17 +6,18 @@ import {{invokerPackage}}.ApiException;
import {{invokerPackage}}.Configuration; import {{invokerPackage}}.Configuration;
import {{invokerPackage}}.Pair; import {{invokerPackage}}.Pair;
import {{modelPackage}}.*;
import com.google.gson.reflect.TypeToken; import com.google.gson.reflect.TypeToken;
import com.squareup.okhttp.Call; import com.squareup.okhttp.Call;
import java.lang.reflect.Type;
{{#imports}}import {{import}}; {{#imports}}import {{import}};
{{/imports}} {{/imports}}
import java.lang.reflect.Type;
{{^fullJavaUtil}}
import java.util.*;
{{/fullJavaUtil}}
{{#operations}} {{#operations}}
public class {{classname}} { public class {{classname}} {
private ApiClient {{localVariablePrefix}}apiClient; private ApiClient {{localVariablePrefix}}apiClient;
@ -52,15 +53,15 @@ public class {{classname}} {
String {{localVariablePrefix}}path = "{{path}}".replaceAll("\\{format\\}","json"){{#pathParams}} String {{localVariablePrefix}}path = "{{path}}".replaceAll("\\{format\\}","json"){{#pathParams}}
.replaceAll("\\{" + "{{baseName}}" + "\\}", {{localVariablePrefix}}apiClient.escapeString({{{paramName}}}.toString())){{/pathParams}}; .replaceAll("\\{" + "{{baseName}}" + "\\}", {{localVariablePrefix}}apiClient.escapeString({{{paramName}}}.toString())){{/pathParams}};
java.util.List<Pair> {{localVariablePrefix}}queryParams = new java.util.ArrayList<Pair>();{{#queryParams}} {{javaUtilPrefix}}List<Pair> {{localVariablePrefix}}queryParams = new {{javaUtilPrefix}}ArrayList<Pair>();{{#queryParams}}
if ({{paramName}} != null) if ({{paramName}} != null)
{{localVariablePrefix}}queryParams.addAll({{localVariablePrefix}}apiClient.parameterToPairs("{{#collectionFormat}}{{{collectionFormat}}}{{/collectionFormat}}", "{{baseName}}", {{paramName}}));{{/queryParams}} {{localVariablePrefix}}queryParams.addAll({{localVariablePrefix}}apiClient.parameterToPairs("{{#collectionFormat}}{{{collectionFormat}}}{{/collectionFormat}}", "{{baseName}}", {{paramName}}));{{/queryParams}}
java.util.Map<String, String> {{localVariablePrefix}}headerParams = new java.util.HashMap<String, String>();{{#headerParams}} {{javaUtilPrefix}}Map<String, String> {{localVariablePrefix}}headerParams = new {{javaUtilPrefix}}HashMap<String, String>();{{#headerParams}}
if ({{paramName}} != null) if ({{paramName}} != null)
{{localVariablePrefix}}headerParams.put("{{baseName}}", {{localVariablePrefix}}apiClient.parameterToString({{paramName}}));{{/headerParams}} {{localVariablePrefix}}headerParams.put("{{baseName}}", {{localVariablePrefix}}apiClient.parameterToString({{paramName}}));{{/headerParams}}
java.util.Map<String, Object> {{localVariablePrefix}}formParams = new java.util.HashMap<String, Object>();{{#formParams}} {{javaUtilPrefix}}Map<String, Object> {{localVariablePrefix}}formParams = new {{javaUtilPrefix}}HashMap<String, Object>();{{#formParams}}
if ({{paramName}} != null) if ({{paramName}} != null)
{{localVariablePrefix}}formParams.put("{{baseName}}", {{paramName}});{{/formParams}} {{localVariablePrefix}}formParams.put("{{baseName}}", {{paramName}});{{/formParams}}

View File

@ -1,7 +1,5 @@
package {{package}}; package {{package}};
import {{modelPackage}}.*;
import retrofit.Callback; import retrofit.Callback;
import retrofit.http.*; import retrofit.http.*;
import retrofit.mime.*; import retrofit.mime.*;
@ -9,6 +7,10 @@ import retrofit.mime.*;
{{#imports}}import {{import}}; {{#imports}}import {{import}};
{{/imports}} {{/imports}}
{{^fullJavaUtil}}
import java.util.*;
{{/fullJavaUtil}}
{{#operations}} {{#operations}}
public interface {{classname}} { public interface {{classname}} {
{{#operation}} {{#operation}}

View File

@ -9,7 +9,9 @@ import io.swagger.client.TypeRef;
import io.swagger.client.model.Pet; import io.swagger.client.model.Pet;
import java.io.File; import java.io.File;
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2015-10-08T20:57:43.997+08:00") import java.util.*;
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2015-10-09T21:30:27.235+08:00")
public class PetApi { public class PetApi {
private ApiClient apiClient; private ApiClient apiClient;
@ -44,9 +46,9 @@ public class PetApi {
String path = "/pet".replaceAll("\\{format\\}","json"); String path = "/pet".replaceAll("\\{format\\}","json");
// query params // query params
java.util.List<Pair> queryParams = new java.util.ArrayList<Pair>(); List<Pair> queryParams = new ArrayList<Pair>();
java.util.Map<String, String> headerParams = new java.util.HashMap<String, String>(); Map<String, String> headerParams = new HashMap<String, String>();
java.util.Map<String, Object> formParams = new java.util.HashMap<String, Object>(); Map<String, Object> formParams = new HashMap<String, Object>();
@ -91,9 +93,9 @@ public class PetApi {
String path = "/pet".replaceAll("\\{format\\}","json"); String path = "/pet".replaceAll("\\{format\\}","json");
// query params // query params
java.util.List<Pair> queryParams = new java.util.ArrayList<Pair>(); List<Pair> queryParams = new ArrayList<Pair>();
java.util.Map<String, String> headerParams = new java.util.HashMap<String, String>(); Map<String, String> headerParams = new HashMap<String, String>();
java.util.Map<String, Object> formParams = new java.util.HashMap<String, Object>(); Map<String, Object> formParams = new HashMap<String, Object>();
@ -128,9 +130,9 @@ public class PetApi {
* Finds Pets by status * Finds Pets by status
* Multiple status values can be provided with comma seperated strings * Multiple status values can be provided with comma seperated strings
* @param status Status values that need to be considered for filter * @param status Status values that need to be considered for filter
* @return java.util.List<Pet> * @return List<Pet>
*/ */
public java.util.List<Pet> findPetsByStatus (java.util.List<String> status) throws ApiException { public List<Pet> findPetsByStatus (List<String> status) throws ApiException {
Object postBody = null; Object postBody = null;
byte[] postBinaryBody = null; byte[] postBinaryBody = null;
@ -138,9 +140,9 @@ public class PetApi {
String path = "/pet/findByStatus".replaceAll("\\{format\\}","json"); String path = "/pet/findByStatus".replaceAll("\\{format\\}","json");
// query params // query params
java.util.List<Pair> queryParams = new java.util.ArrayList<Pair>(); List<Pair> queryParams = new ArrayList<Pair>();
java.util.Map<String, String> headerParams = new java.util.HashMap<String, String>(); Map<String, String> headerParams = new HashMap<String, String>();
java.util.Map<String, Object> formParams = new java.util.HashMap<String, Object>(); Map<String, Object> formParams = new HashMap<String, Object>();
queryParams.addAll(apiClient.parameterToPairs("multi", "status", status)); queryParams.addAll(apiClient.parameterToPairs("multi", "status", status));
@ -166,7 +168,7 @@ public class PetApi {
TypeRef returnType = new TypeRef<java.util.List<Pet>>() {}; TypeRef returnType = new TypeRef<List<Pet>>() {};
return apiClient.invokeAPI(path, "GET", queryParams, postBody, postBinaryBody, headerParams, formParams, accept, contentType, authNames, returnType); return apiClient.invokeAPI(path, "GET", queryParams, postBody, postBinaryBody, headerParams, formParams, accept, contentType, authNames, returnType);
@ -178,9 +180,9 @@ public class PetApi {
* Finds Pets by tags * Finds Pets by tags
* Muliple tags can be provided with comma seperated strings. Use tag1, tag2, tag3 for testing. * Muliple tags can be provided with comma seperated strings. Use tag1, tag2, tag3 for testing.
* @param tags Tags to filter by * @param tags Tags to filter by
* @return java.util.List<Pet> * @return List<Pet>
*/ */
public java.util.List<Pet> findPetsByTags (java.util.List<String> tags) throws ApiException { public List<Pet> findPetsByTags (List<String> tags) throws ApiException {
Object postBody = null; Object postBody = null;
byte[] postBinaryBody = null; byte[] postBinaryBody = null;
@ -188,9 +190,9 @@ public class PetApi {
String path = "/pet/findByTags".replaceAll("\\{format\\}","json"); String path = "/pet/findByTags".replaceAll("\\{format\\}","json");
// query params // query params
java.util.List<Pair> queryParams = new java.util.ArrayList<Pair>(); List<Pair> queryParams = new ArrayList<Pair>();
java.util.Map<String, String> headerParams = new java.util.HashMap<String, String>(); Map<String, String> headerParams = new HashMap<String, String>();
java.util.Map<String, Object> formParams = new java.util.HashMap<String, Object>(); Map<String, Object> formParams = new HashMap<String, Object>();
queryParams.addAll(apiClient.parameterToPairs("multi", "tags", tags)); queryParams.addAll(apiClient.parameterToPairs("multi", "tags", tags));
@ -216,7 +218,7 @@ public class PetApi {
TypeRef returnType = new TypeRef<java.util.List<Pet>>() {}; TypeRef returnType = new TypeRef<List<Pet>>() {};
return apiClient.invokeAPI(path, "GET", queryParams, postBody, postBinaryBody, headerParams, formParams, accept, contentType, authNames, returnType); return apiClient.invokeAPI(path, "GET", queryParams, postBody, postBinaryBody, headerParams, formParams, accept, contentType, authNames, returnType);
@ -244,9 +246,9 @@ public class PetApi {
.replaceAll("\\{" + "petId" + "\\}", apiClient.escapeString(petId.toString())); .replaceAll("\\{" + "petId" + "\\}", apiClient.escapeString(petId.toString()));
// query params // query params
java.util.List<Pair> queryParams = new java.util.ArrayList<Pair>(); List<Pair> queryParams = new ArrayList<Pair>();
java.util.Map<String, String> headerParams = new java.util.HashMap<String, String>(); Map<String, String> headerParams = new HashMap<String, String>();
java.util.Map<String, Object> formParams = new java.util.HashMap<String, Object>(); Map<String, Object> formParams = new HashMap<String, Object>();
@ -300,9 +302,9 @@ public class PetApi {
.replaceAll("\\{" + "petId" + "\\}", apiClient.escapeString(petId.toString())); .replaceAll("\\{" + "petId" + "\\}", apiClient.escapeString(petId.toString()));
// query params // query params
java.util.List<Pair> queryParams = new java.util.ArrayList<Pair>(); List<Pair> queryParams = new ArrayList<Pair>();
java.util.Map<String, String> headerParams = new java.util.HashMap<String, String>(); Map<String, String> headerParams = new HashMap<String, String>();
java.util.Map<String, Object> formParams = new java.util.HashMap<String, Object>(); Map<String, Object> formParams = new HashMap<String, Object>();
@ -358,9 +360,9 @@ public class PetApi {
.replaceAll("\\{" + "petId" + "\\}", apiClient.escapeString(petId.toString())); .replaceAll("\\{" + "petId" + "\\}", apiClient.escapeString(petId.toString()));
// query params // query params
java.util.List<Pair> queryParams = new java.util.ArrayList<Pair>(); List<Pair> queryParams = new ArrayList<Pair>();
java.util.Map<String, String> headerParams = new java.util.HashMap<String, String>(); Map<String, String> headerParams = new HashMap<String, String>();
java.util.Map<String, Object> formParams = new java.util.HashMap<String, Object>(); Map<String, Object> formParams = new HashMap<String, Object>();
@ -415,9 +417,9 @@ public class PetApi {
.replaceAll("\\{" + "petId" + "\\}", apiClient.escapeString(petId.toString())); .replaceAll("\\{" + "petId" + "\\}", apiClient.escapeString(petId.toString()));
// query params // query params
java.util.List<Pair> queryParams = new java.util.ArrayList<Pair>(); List<Pair> queryParams = new ArrayList<Pair>();
java.util.Map<String, String> headerParams = new java.util.HashMap<String, String>(); Map<String, String> headerParams = new HashMap<String, String>();
java.util.Map<String, Object> formParams = new java.util.HashMap<String, Object>(); Map<String, Object> formParams = new HashMap<String, Object>();

View File

@ -6,9 +6,12 @@ import io.swagger.client.Configuration;
import io.swagger.client.Pair; import io.swagger.client.Pair;
import io.swagger.client.TypeRef; import io.swagger.client.TypeRef;
import java.util.Map;
import io.swagger.client.model.Order; import io.swagger.client.model.Order;
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2015-10-08T20:57:43.997+08:00") import java.util.*;
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2015-10-09T21:30:27.235+08:00")
public class StoreApi { public class StoreApi {
private ApiClient apiClient; private ApiClient apiClient;
@ -32,9 +35,9 @@ public class StoreApi {
/** /**
* Returns pet inventories by status * Returns pet inventories by status
* Returns a map of status codes to quantities * Returns a map of status codes to quantities
* @return java.util.Map<String, Integer> * @return Map<String, Integer>
*/ */
public java.util.Map<String, Integer> getInventory () throws ApiException { public Map<String, Integer> getInventory () throws ApiException {
Object postBody = null; Object postBody = null;
byte[] postBinaryBody = null; byte[] postBinaryBody = null;
@ -42,9 +45,9 @@ public class StoreApi {
String path = "/store/inventory".replaceAll("\\{format\\}","json"); String path = "/store/inventory".replaceAll("\\{format\\}","json");
// query params // query params
java.util.List<Pair> queryParams = new java.util.ArrayList<Pair>(); List<Pair> queryParams = new ArrayList<Pair>();
java.util.Map<String, String> headerParams = new java.util.HashMap<String, String>(); Map<String, String> headerParams = new HashMap<String, String>();
java.util.Map<String, Object> formParams = new java.util.HashMap<String, Object>(); Map<String, Object> formParams = new HashMap<String, Object>();
@ -68,7 +71,7 @@ public class StoreApi {
TypeRef returnType = new TypeRef<java.util.Map<String, Integer>>() {}; TypeRef returnType = new TypeRef<Map<String, Integer>>() {};
return apiClient.invokeAPI(path, "GET", queryParams, postBody, postBinaryBody, headerParams, formParams, accept, contentType, authNames, returnType); return apiClient.invokeAPI(path, "GET", queryParams, postBody, postBinaryBody, headerParams, formParams, accept, contentType, authNames, returnType);
@ -90,9 +93,9 @@ public class StoreApi {
String path = "/store/order".replaceAll("\\{format\\}","json"); String path = "/store/order".replaceAll("\\{format\\}","json");
// query params // query params
java.util.List<Pair> queryParams = new java.util.ArrayList<Pair>(); List<Pair> queryParams = new ArrayList<Pair>();
java.util.Map<String, String> headerParams = new java.util.HashMap<String, String>(); Map<String, String> headerParams = new HashMap<String, String>();
java.util.Map<String, Object> formParams = new java.util.HashMap<String, Object>(); Map<String, Object> formParams = new HashMap<String, Object>();
@ -144,9 +147,9 @@ public class StoreApi {
.replaceAll("\\{" + "orderId" + "\\}", apiClient.escapeString(orderId.toString())); .replaceAll("\\{" + "orderId" + "\\}", apiClient.escapeString(orderId.toString()));
// query params // query params
java.util.List<Pair> queryParams = new java.util.ArrayList<Pair>(); List<Pair> queryParams = new ArrayList<Pair>();
java.util.Map<String, String> headerParams = new java.util.HashMap<String, String>(); Map<String, String> headerParams = new HashMap<String, String>();
java.util.Map<String, Object> formParams = new java.util.HashMap<String, Object>(); Map<String, Object> formParams = new HashMap<String, Object>();
@ -198,9 +201,9 @@ public class StoreApi {
.replaceAll("\\{" + "orderId" + "\\}", apiClient.escapeString(orderId.toString())); .replaceAll("\\{" + "orderId" + "\\}", apiClient.escapeString(orderId.toString()));
// query params // query params
java.util.List<Pair> queryParams = new java.util.ArrayList<Pair>(); List<Pair> queryParams = new ArrayList<Pair>();
java.util.Map<String, String> headerParams = new java.util.HashMap<String, String>(); Map<String, String> headerParams = new HashMap<String, String>();
java.util.Map<String, Object> formParams = new java.util.HashMap<String, Object>(); Map<String, Object> formParams = new HashMap<String, Object>();

View File

@ -7,8 +7,11 @@ import io.swagger.client.Pair;
import io.swagger.client.TypeRef; import io.swagger.client.TypeRef;
import io.swagger.client.model.User; import io.swagger.client.model.User;
import java.util.*;
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2015-10-08T20:57:43.997+08:00") import java.util.*;
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2015-10-09T21:30:27.235+08:00")
public class UserApi { public class UserApi {
private ApiClient apiClient; private ApiClient apiClient;
@ -43,9 +46,9 @@ public class UserApi {
String path = "/user".replaceAll("\\{format\\}","json"); String path = "/user".replaceAll("\\{format\\}","json");
// query params // query params
java.util.List<Pair> queryParams = new java.util.ArrayList<Pair>(); List<Pair> queryParams = new ArrayList<Pair>();
java.util.Map<String, String> headerParams = new java.util.HashMap<String, String>(); Map<String, String> headerParams = new HashMap<String, String>();
java.util.Map<String, Object> formParams = new java.util.HashMap<String, Object>(); Map<String, Object> formParams = new HashMap<String, Object>();
@ -82,7 +85,7 @@ public class UserApi {
* @param body List of user object * @param body List of user object
* @return void * @return void
*/ */
public void createUsersWithArrayInput (java.util.List<User> body) throws ApiException { public void createUsersWithArrayInput (List<User> body) throws ApiException {
Object postBody = body; Object postBody = body;
byte[] postBinaryBody = null; byte[] postBinaryBody = null;
@ -90,9 +93,9 @@ public class UserApi {
String path = "/user/createWithArray".replaceAll("\\{format\\}","json"); String path = "/user/createWithArray".replaceAll("\\{format\\}","json");
// query params // query params
java.util.List<Pair> queryParams = new java.util.ArrayList<Pair>(); List<Pair> queryParams = new ArrayList<Pair>();
java.util.Map<String, String> headerParams = new java.util.HashMap<String, String>(); Map<String, String> headerParams = new HashMap<String, String>();
java.util.Map<String, Object> formParams = new java.util.HashMap<String, Object>(); Map<String, Object> formParams = new HashMap<String, Object>();
@ -129,7 +132,7 @@ public class UserApi {
* @param body List of user object * @param body List of user object
* @return void * @return void
*/ */
public void createUsersWithListInput (java.util.List<User> body) throws ApiException { public void createUsersWithListInput (List<User> body) throws ApiException {
Object postBody = body; Object postBody = body;
byte[] postBinaryBody = null; byte[] postBinaryBody = null;
@ -137,9 +140,9 @@ public class UserApi {
String path = "/user/createWithList".replaceAll("\\{format\\}","json"); String path = "/user/createWithList".replaceAll("\\{format\\}","json");
// query params // query params
java.util.List<Pair> queryParams = new java.util.ArrayList<Pair>(); List<Pair> queryParams = new ArrayList<Pair>();
java.util.Map<String, String> headerParams = new java.util.HashMap<String, String>(); Map<String, String> headerParams = new HashMap<String, String>();
java.util.Map<String, Object> formParams = new java.util.HashMap<String, Object>(); Map<String, Object> formParams = new HashMap<String, Object>();
@ -185,9 +188,9 @@ public class UserApi {
String path = "/user/login".replaceAll("\\{format\\}","json"); String path = "/user/login".replaceAll("\\{format\\}","json");
// query params // query params
java.util.List<Pair> queryParams = new java.util.ArrayList<Pair>(); List<Pair> queryParams = new ArrayList<Pair>();
java.util.Map<String, String> headerParams = new java.util.HashMap<String, String>(); Map<String, String> headerParams = new HashMap<String, String>();
java.util.Map<String, Object> formParams = new java.util.HashMap<String, Object>(); Map<String, Object> formParams = new HashMap<String, Object>();
queryParams.addAll(apiClient.parameterToPairs("", "username", username)); queryParams.addAll(apiClient.parameterToPairs("", "username", username));
@ -236,9 +239,9 @@ public class UserApi {
String path = "/user/logout".replaceAll("\\{format\\}","json"); String path = "/user/logout".replaceAll("\\{format\\}","json");
// query params // query params
java.util.List<Pair> queryParams = new java.util.ArrayList<Pair>(); List<Pair> queryParams = new ArrayList<Pair>();
java.util.Map<String, String> headerParams = new java.util.HashMap<String, String>(); Map<String, String> headerParams = new HashMap<String, String>();
java.util.Map<String, Object> formParams = new java.util.HashMap<String, Object>(); Map<String, Object> formParams = new HashMap<String, Object>();
@ -289,9 +292,9 @@ public class UserApi {
.replaceAll("\\{" + "username" + "\\}", apiClient.escapeString(username.toString())); .replaceAll("\\{" + "username" + "\\}", apiClient.escapeString(username.toString()));
// query params // query params
java.util.List<Pair> queryParams = new java.util.ArrayList<Pair>(); List<Pair> queryParams = new ArrayList<Pair>();
java.util.Map<String, String> headerParams = new java.util.HashMap<String, String>(); Map<String, String> headerParams = new HashMap<String, String>();
java.util.Map<String, Object> formParams = new java.util.HashMap<String, Object>(); Map<String, Object> formParams = new HashMap<String, Object>();
@ -344,9 +347,9 @@ public class UserApi {
.replaceAll("\\{" + "username" + "\\}", apiClient.escapeString(username.toString())); .replaceAll("\\{" + "username" + "\\}", apiClient.escapeString(username.toString()));
// query params // query params
java.util.List<Pair> queryParams = new java.util.ArrayList<Pair>(); List<Pair> queryParams = new ArrayList<Pair>();
java.util.Map<String, String> headerParams = new java.util.HashMap<String, String>(); Map<String, String> headerParams = new HashMap<String, String>();
java.util.Map<String, Object> formParams = new java.util.HashMap<String, Object>(); Map<String, Object> formParams = new HashMap<String, Object>();
@ -397,9 +400,9 @@ public class UserApi {
.replaceAll("\\{" + "username" + "\\}", apiClient.escapeString(username.toString())); .replaceAll("\\{" + "username" + "\\}", apiClient.escapeString(username.toString()));
// query params // query params
java.util.List<Pair> queryParams = new java.util.ArrayList<Pair>(); List<Pair> queryParams = new ArrayList<Pair>();
java.util.Map<String, String> headerParams = new java.util.HashMap<String, String>(); Map<String, String> headerParams = new HashMap<String, String>();
java.util.Map<String, Object> formParams = new java.util.HashMap<String, Object>(); Map<String, Object> formParams = new HashMap<String, Object>();

View File

@ -1,6 +1,7 @@
package io.swagger.client.model; package io.swagger.client.model;
import io.swagger.client.StringUtil; import io.swagger.client.StringUtil;
import java.util.Date;
@ -9,13 +10,13 @@ import com.fasterxml.jackson.annotation.JsonProperty;
@ApiModel(description = "") @ApiModel(description = "")
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2015-10-08T20:57:43.997+08:00") @javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2015-10-09T21:30:27.235+08:00")
public class Order { public class Order {
private Long id = null; private Long id = null;
private Long petId = null; private Long petId = null;
private Integer quantity = null; private Integer quantity = null;
private java.util.Date shipDate = null; private Date shipDate = null;
public enum StatusEnum { public enum StatusEnum {
PLACED("placed"), PLACED("placed"),
@ -78,10 +79,10 @@ public enum StatusEnum {
**/ **/
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("shipDate") @JsonProperty("shipDate")
public java.util.Date getShipDate() { public Date getShipDate() {
return shipDate; return shipDate;
} }
public void setShipDate(java.util.Date shipDate) { public void setShipDate(Date shipDate) {
this.shipDate = shipDate; this.shipDate = shipDate;
} }

View File

@ -2,6 +2,7 @@ package io.swagger.client.model;
import io.swagger.client.StringUtil; import io.swagger.client.StringUtil;
import io.swagger.client.model.Category; import io.swagger.client.model.Category;
import java.util.*;
import io.swagger.client.model.Tag; import io.swagger.client.model.Tag;
@ -11,14 +12,14 @@ import com.fasterxml.jackson.annotation.JsonProperty;
@ApiModel(description = "") @ApiModel(description = "")
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2015-10-08T20:57:43.997+08:00") @javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2015-10-09T21:30:27.235+08:00")
public class Pet { public class Pet {
private Long id = null; private Long id = null;
private Category category = null; private Category category = null;
private String name = null; private String name = null;
private java.util.List<String> photoUrls = new java.util.ArrayList<String>(); private List<String> photoUrls = new ArrayList<String>();
private java.util.List<Tag> tags = new java.util.ArrayList<Tag>(); private List<Tag> tags = new ArrayList<Tag>();
public enum StatusEnum { public enum StatusEnum {
AVAILABLE("available"), AVAILABLE("available"),
@ -80,10 +81,10 @@ public enum StatusEnum {
**/ **/
@ApiModelProperty(required = true, value = "") @ApiModelProperty(required = true, value = "")
@JsonProperty("photoUrls") @JsonProperty("photoUrls")
public java.util.List<String> getPhotoUrls() { public List<String> getPhotoUrls() {
return photoUrls; return photoUrls;
} }
public void setPhotoUrls(java.util.List<String> photoUrls) { public void setPhotoUrls(List<String> photoUrls) {
this.photoUrls = photoUrls; this.photoUrls = photoUrls;
} }
@ -92,10 +93,10 @@ public enum StatusEnum {
**/ **/
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("tags") @JsonProperty("tags")
public java.util.List<Tag> getTags() { public List<Tag> getTags() {
return tags; return tags;
} }
public void setTags(java.util.List<Tag> tags) { public void setTags(List<Tag> tags) {
this.tags = tags; this.tags = tags;
} }

View File

@ -6,12 +6,12 @@ import io.swagger.client.Configuration;
import io.swagger.client.Pair; import io.swagger.client.Pair;
import io.swagger.client.TypeRef; import io.swagger.client.TypeRef;
import io.swagger.client.model.*;
import io.swagger.client.model.Pet; import io.swagger.client.model.Pet;
import java.io.File; import java.io.File;
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2015-10-08T20:57:48.684+08:00") import java.util.*;
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2015-10-09T21:30:19.416+08:00")
public class PetApi { public class PetApi {
private ApiClient apiClient; private ApiClient apiClient;
@ -45,9 +45,9 @@ public class PetApi {
String path = "/pet".replaceAll("\\{format\\}","json"); String path = "/pet".replaceAll("\\{format\\}","json");
// query params // query params
java.util.List<Pair> queryParams = new java.util.ArrayList<Pair>(); List<Pair> queryParams = new ArrayList<Pair>();
java.util.Map<String, String> headerParams = new java.util.HashMap<String, String>(); Map<String, String> headerParams = new HashMap<String, String>();
java.util.Map<String, Object> formParams = new java.util.HashMap<String, Object>(); Map<String, Object> formParams = new HashMap<String, Object>();
@ -85,9 +85,9 @@ public class PetApi {
String path = "/pet".replaceAll("\\{format\\}","json"); String path = "/pet".replaceAll("\\{format\\}","json");
// query params // query params
java.util.List<Pair> queryParams = new java.util.ArrayList<Pair>(); List<Pair> queryParams = new ArrayList<Pair>();
java.util.Map<String, String> headerParams = new java.util.HashMap<String, String>(); Map<String, String> headerParams = new HashMap<String, String>();
java.util.Map<String, Object> formParams = new java.util.HashMap<String, Object>(); Map<String, Object> formParams = new HashMap<String, Object>();
@ -116,18 +116,18 @@ public class PetApi {
* Finds Pets by status * Finds Pets by status
* Multiple status values can be provided with comma seperated strings * Multiple status values can be provided with comma seperated strings
* @param status Status values that need to be considered for filter * @param status Status values that need to be considered for filter
* @return java.util.List<Pet> * @return List<Pet>
*/ */
public java.util.List<Pet> findPetsByStatus (java.util.List<String> status) throws ApiException { public List<Pet> findPetsByStatus (List<String> status) throws ApiException {
Object postBody = null; Object postBody = null;
// create path and map variables // create path and map variables
String path = "/pet/findByStatus".replaceAll("\\{format\\}","json"); String path = "/pet/findByStatus".replaceAll("\\{format\\}","json");
// query params // query params
java.util.List<Pair> queryParams = new java.util.ArrayList<Pair>(); List<Pair> queryParams = new ArrayList<Pair>();
java.util.Map<String, String> headerParams = new java.util.HashMap<String, String>(); Map<String, String> headerParams = new HashMap<String, String>();
java.util.Map<String, Object> formParams = new java.util.HashMap<String, Object>(); Map<String, Object> formParams = new HashMap<String, Object>();
queryParams.addAll(apiClient.parameterToPairs("multi", "status", status)); queryParams.addAll(apiClient.parameterToPairs("multi", "status", status));
@ -150,7 +150,7 @@ public class PetApi {
String[] authNames = new String[] { "petstore_auth" }; String[] authNames = new String[] { "petstore_auth" };
TypeRef returnType = new TypeRef<java.util.List<Pet>>() {}; TypeRef returnType = new TypeRef<List<Pet>>() {};
return apiClient.invokeAPI(path, "GET", queryParams, postBody, headerParams, formParams, accept, contentType, authNames, returnType); return apiClient.invokeAPI(path, "GET", queryParams, postBody, headerParams, formParams, accept, contentType, authNames, returnType);
} }
@ -159,18 +159,18 @@ public class PetApi {
* Finds Pets by tags * Finds Pets by tags
* Muliple tags can be provided with comma seperated strings. Use tag1, tag2, tag3 for testing. * Muliple tags can be provided with comma seperated strings. Use tag1, tag2, tag3 for testing.
* @param tags Tags to filter by * @param tags Tags to filter by
* @return java.util.List<Pet> * @return List<Pet>
*/ */
public java.util.List<Pet> findPetsByTags (java.util.List<String> tags) throws ApiException { public List<Pet> findPetsByTags (List<String> tags) throws ApiException {
Object postBody = null; Object postBody = null;
// create path and map variables // create path and map variables
String path = "/pet/findByTags".replaceAll("\\{format\\}","json"); String path = "/pet/findByTags".replaceAll("\\{format\\}","json");
// query params // query params
java.util.List<Pair> queryParams = new java.util.ArrayList<Pair>(); List<Pair> queryParams = new ArrayList<Pair>();
java.util.Map<String, String> headerParams = new java.util.HashMap<String, String>(); Map<String, String> headerParams = new HashMap<String, String>();
java.util.Map<String, Object> formParams = new java.util.HashMap<String, Object>(); Map<String, Object> formParams = new HashMap<String, Object>();
queryParams.addAll(apiClient.parameterToPairs("multi", "tags", tags)); queryParams.addAll(apiClient.parameterToPairs("multi", "tags", tags));
@ -193,7 +193,7 @@ public class PetApi {
String[] authNames = new String[] { "petstore_auth" }; String[] authNames = new String[] { "petstore_auth" };
TypeRef returnType = new TypeRef<java.util.List<Pet>>() {}; TypeRef returnType = new TypeRef<List<Pet>>() {};
return apiClient.invokeAPI(path, "GET", queryParams, postBody, headerParams, formParams, accept, contentType, authNames, returnType); return apiClient.invokeAPI(path, "GET", queryParams, postBody, headerParams, formParams, accept, contentType, authNames, returnType);
} }
@ -217,9 +217,9 @@ public class PetApi {
.replaceAll("\\{" + "petId" + "\\}", apiClient.escapeString(petId.toString())); .replaceAll("\\{" + "petId" + "\\}", apiClient.escapeString(petId.toString()));
// query params // query params
java.util.List<Pair> queryParams = new java.util.ArrayList<Pair>(); List<Pair> queryParams = new ArrayList<Pair>();
java.util.Map<String, String> headerParams = new java.util.HashMap<String, String>(); Map<String, String> headerParams = new HashMap<String, String>();
java.util.Map<String, Object> formParams = new java.util.HashMap<String, Object>(); Map<String, Object> formParams = new HashMap<String, Object>();
@ -266,9 +266,9 @@ public class PetApi {
.replaceAll("\\{" + "petId" + "\\}", apiClient.escapeString(petId.toString())); .replaceAll("\\{" + "petId" + "\\}", apiClient.escapeString(petId.toString()));
// query params // query params
java.util.List<Pair> queryParams = new java.util.ArrayList<Pair>(); List<Pair> queryParams = new ArrayList<Pair>();
java.util.Map<String, String> headerParams = new java.util.HashMap<String, String>(); Map<String, String> headerParams = new HashMap<String, String>();
java.util.Map<String, Object> formParams = new java.util.HashMap<String, Object>(); Map<String, Object> formParams = new HashMap<String, Object>();
@ -317,9 +317,9 @@ public class PetApi {
.replaceAll("\\{" + "petId" + "\\}", apiClient.escapeString(petId.toString())); .replaceAll("\\{" + "petId" + "\\}", apiClient.escapeString(petId.toString()));
// query params // query params
java.util.List<Pair> queryParams = new java.util.ArrayList<Pair>(); List<Pair> queryParams = new ArrayList<Pair>();
java.util.Map<String, String> headerParams = new java.util.HashMap<String, String>(); Map<String, String> headerParams = new HashMap<String, String>();
java.util.Map<String, Object> formParams = new java.util.HashMap<String, Object>(); Map<String, Object> formParams = new HashMap<String, Object>();
@ -367,9 +367,9 @@ public class PetApi {
.replaceAll("\\{" + "petId" + "\\}", apiClient.escapeString(petId.toString())); .replaceAll("\\{" + "petId" + "\\}", apiClient.escapeString(petId.toString()));
// query params // query params
java.util.List<Pair> queryParams = new java.util.ArrayList<Pair>(); List<Pair> queryParams = new ArrayList<Pair>();
java.util.Map<String, String> headerParams = new java.util.HashMap<String, String>(); Map<String, String> headerParams = new HashMap<String, String>();
java.util.Map<String, Object> formParams = new java.util.HashMap<String, Object>(); Map<String, Object> formParams = new HashMap<String, Object>();

View File

@ -6,11 +6,12 @@ import io.swagger.client.Configuration;
import io.swagger.client.Pair; import io.swagger.client.Pair;
import io.swagger.client.TypeRef; import io.swagger.client.TypeRef;
import io.swagger.client.model.*; import java.util.Map;
import io.swagger.client.model.Order; import io.swagger.client.model.Order;
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2015-10-08T20:57:48.684+08:00") import java.util.*;
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2015-10-09T21:30:19.416+08:00")
public class StoreApi { public class StoreApi {
private ApiClient apiClient; private ApiClient apiClient;
@ -34,18 +35,18 @@ public class StoreApi {
/** /**
* Returns pet inventories by status * Returns pet inventories by status
* Returns a map of status codes to quantities * Returns a map of status codes to quantities
* @return java.util.Map<String, Integer> * @return Map<String, Integer>
*/ */
public java.util.Map<String, Integer> getInventory () throws ApiException { public Map<String, Integer> getInventory () throws ApiException {
Object postBody = null; Object postBody = null;
// create path and map variables // create path and map variables
String path = "/store/inventory".replaceAll("\\{format\\}","json"); String path = "/store/inventory".replaceAll("\\{format\\}","json");
// query params // query params
java.util.List<Pair> queryParams = new java.util.ArrayList<Pair>(); List<Pair> queryParams = new ArrayList<Pair>();
java.util.Map<String, String> headerParams = new java.util.HashMap<String, String>(); Map<String, String> headerParams = new HashMap<String, String>();
java.util.Map<String, Object> formParams = new java.util.HashMap<String, Object>(); Map<String, Object> formParams = new HashMap<String, Object>();
@ -66,7 +67,7 @@ public class StoreApi {
String[] authNames = new String[] { "api_key" }; String[] authNames = new String[] { "api_key" };
TypeRef returnType = new TypeRef<java.util.Map<String, Integer>>() {}; TypeRef returnType = new TypeRef<Map<String, Integer>>() {};
return apiClient.invokeAPI(path, "GET", queryParams, postBody, headerParams, formParams, accept, contentType, authNames, returnType); return apiClient.invokeAPI(path, "GET", queryParams, postBody, headerParams, formParams, accept, contentType, authNames, returnType);
} }
@ -84,9 +85,9 @@ public class StoreApi {
String path = "/store/order".replaceAll("\\{format\\}","json"); String path = "/store/order".replaceAll("\\{format\\}","json");
// query params // query params
java.util.List<Pair> queryParams = new java.util.ArrayList<Pair>(); List<Pair> queryParams = new ArrayList<Pair>();
java.util.Map<String, String> headerParams = new java.util.HashMap<String, String>(); Map<String, String> headerParams = new HashMap<String, String>();
java.util.Map<String, Object> formParams = new java.util.HashMap<String, Object>(); Map<String, Object> formParams = new HashMap<String, Object>();
@ -131,9 +132,9 @@ public class StoreApi {
.replaceAll("\\{" + "orderId" + "\\}", apiClient.escapeString(orderId.toString())); .replaceAll("\\{" + "orderId" + "\\}", apiClient.escapeString(orderId.toString()));
// query params // query params
java.util.List<Pair> queryParams = new java.util.ArrayList<Pair>(); List<Pair> queryParams = new ArrayList<Pair>();
java.util.Map<String, String> headerParams = new java.util.HashMap<String, String>(); Map<String, String> headerParams = new HashMap<String, String>();
java.util.Map<String, Object> formParams = new java.util.HashMap<String, Object>(); Map<String, Object> formParams = new HashMap<String, Object>();
@ -178,9 +179,9 @@ public class StoreApi {
.replaceAll("\\{" + "orderId" + "\\}", apiClient.escapeString(orderId.toString())); .replaceAll("\\{" + "orderId" + "\\}", apiClient.escapeString(orderId.toString()));
// query params // query params
java.util.List<Pair> queryParams = new java.util.ArrayList<Pair>(); List<Pair> queryParams = new ArrayList<Pair>();
java.util.Map<String, String> headerParams = new java.util.HashMap<String, String>(); Map<String, String> headerParams = new HashMap<String, String>();
java.util.Map<String, Object> formParams = new java.util.HashMap<String, Object>(); Map<String, Object> formParams = new HashMap<String, Object>();

View File

@ -6,11 +6,12 @@ import io.swagger.client.Configuration;
import io.swagger.client.Pair; import io.swagger.client.Pair;
import io.swagger.client.TypeRef; import io.swagger.client.TypeRef;
import io.swagger.client.model.*;
import io.swagger.client.model.User; import io.swagger.client.model.User;
import java.util.*;
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2015-10-08T20:57:48.684+08:00") import java.util.*;
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2015-10-09T21:30:19.416+08:00")
public class UserApi { public class UserApi {
private ApiClient apiClient; private ApiClient apiClient;
@ -44,9 +45,9 @@ public class UserApi {
String path = "/user".replaceAll("\\{format\\}","json"); String path = "/user".replaceAll("\\{format\\}","json");
// query params // query params
java.util.List<Pair> queryParams = new java.util.ArrayList<Pair>(); List<Pair> queryParams = new ArrayList<Pair>();
java.util.Map<String, String> headerParams = new java.util.HashMap<String, String>(); Map<String, String> headerParams = new HashMap<String, String>();
java.util.Map<String, Object> formParams = new java.util.HashMap<String, Object>(); Map<String, Object> formParams = new HashMap<String, Object>();
@ -77,16 +78,16 @@ public class UserApi {
* @param body List of user object * @param body List of user object
* @return void * @return void
*/ */
public void createUsersWithArrayInput (java.util.List<User> body) throws ApiException { public void createUsersWithArrayInput (List<User> body) throws ApiException {
Object postBody = body; Object postBody = body;
// create path and map variables // create path and map variables
String path = "/user/createWithArray".replaceAll("\\{format\\}","json"); String path = "/user/createWithArray".replaceAll("\\{format\\}","json");
// query params // query params
java.util.List<Pair> queryParams = new java.util.ArrayList<Pair>(); List<Pair> queryParams = new ArrayList<Pair>();
java.util.Map<String, String> headerParams = new java.util.HashMap<String, String>(); Map<String, String> headerParams = new HashMap<String, String>();
java.util.Map<String, Object> formParams = new java.util.HashMap<String, Object>(); Map<String, Object> formParams = new HashMap<String, Object>();
@ -117,16 +118,16 @@ public class UserApi {
* @param body List of user object * @param body List of user object
* @return void * @return void
*/ */
public void createUsersWithListInput (java.util.List<User> body) throws ApiException { public void createUsersWithListInput (List<User> body) throws ApiException {
Object postBody = body; Object postBody = body;
// create path and map variables // create path and map variables
String path = "/user/createWithList".replaceAll("\\{format\\}","json"); String path = "/user/createWithList".replaceAll("\\{format\\}","json");
// query params // query params
java.util.List<Pair> queryParams = new java.util.ArrayList<Pair>(); List<Pair> queryParams = new ArrayList<Pair>();
java.util.Map<String, String> headerParams = new java.util.HashMap<String, String>(); Map<String, String> headerParams = new HashMap<String, String>();
java.util.Map<String, Object> formParams = new java.util.HashMap<String, Object>(); Map<String, Object> formParams = new HashMap<String, Object>();
@ -165,9 +166,9 @@ public class UserApi {
String path = "/user/login".replaceAll("\\{format\\}","json"); String path = "/user/login".replaceAll("\\{format\\}","json");
// query params // query params
java.util.List<Pair> queryParams = new java.util.ArrayList<Pair>(); List<Pair> queryParams = new ArrayList<Pair>();
java.util.Map<String, String> headerParams = new java.util.HashMap<String, String>(); Map<String, String> headerParams = new HashMap<String, String>();
java.util.Map<String, Object> formParams = new java.util.HashMap<String, Object>(); Map<String, Object> formParams = new HashMap<String, Object>();
queryParams.addAll(apiClient.parameterToPairs("", "username", username)); queryParams.addAll(apiClient.parameterToPairs("", "username", username));
@ -209,9 +210,9 @@ public class UserApi {
String path = "/user/logout".replaceAll("\\{format\\}","json"); String path = "/user/logout".replaceAll("\\{format\\}","json");
// query params // query params
java.util.List<Pair> queryParams = new java.util.ArrayList<Pair>(); List<Pair> queryParams = new ArrayList<Pair>();
java.util.Map<String, String> headerParams = new java.util.HashMap<String, String>(); Map<String, String> headerParams = new HashMap<String, String>();
java.util.Map<String, Object> formParams = new java.util.HashMap<String, Object>(); Map<String, Object> formParams = new HashMap<String, Object>();
@ -255,9 +256,9 @@ public class UserApi {
.replaceAll("\\{" + "username" + "\\}", apiClient.escapeString(username.toString())); .replaceAll("\\{" + "username" + "\\}", apiClient.escapeString(username.toString()));
// query params // query params
java.util.List<Pair> queryParams = new java.util.ArrayList<Pair>(); List<Pair> queryParams = new ArrayList<Pair>();
java.util.Map<String, String> headerParams = new java.util.HashMap<String, String>(); Map<String, String> headerParams = new HashMap<String, String>();
java.util.Map<String, Object> formParams = new java.util.HashMap<String, Object>(); Map<String, Object> formParams = new HashMap<String, Object>();
@ -303,9 +304,9 @@ public class UserApi {
.replaceAll("\\{" + "username" + "\\}", apiClient.escapeString(username.toString())); .replaceAll("\\{" + "username" + "\\}", apiClient.escapeString(username.toString()));
// query params // query params
java.util.List<Pair> queryParams = new java.util.ArrayList<Pair>(); List<Pair> queryParams = new ArrayList<Pair>();
java.util.Map<String, String> headerParams = new java.util.HashMap<String, String>(); Map<String, String> headerParams = new HashMap<String, String>();
java.util.Map<String, Object> formParams = new java.util.HashMap<String, Object>(); Map<String, Object> formParams = new HashMap<String, Object>();
@ -349,9 +350,9 @@ public class UserApi {
.replaceAll("\\{" + "username" + "\\}", apiClient.escapeString(username.toString())); .replaceAll("\\{" + "username" + "\\}", apiClient.escapeString(username.toString()));
// query params // query params
java.util.List<Pair> queryParams = new java.util.ArrayList<Pair>(); List<Pair> queryParams = new ArrayList<Pair>();
java.util.Map<String, String> headerParams = new java.util.HashMap<String, String>(); Map<String, String> headerParams = new HashMap<String, String>();
java.util.Map<String, Object> formParams = new java.util.HashMap<String, Object>(); Map<String, Object> formParams = new HashMap<String, Object>();

View File

@ -1,6 +1,7 @@
package io.swagger.client.model; package io.swagger.client.model;
import io.swagger.client.StringUtil; import io.swagger.client.StringUtil;
import java.util.Date;
@ -9,13 +10,13 @@ import com.fasterxml.jackson.annotation.JsonProperty;
@ApiModel(description = "") @ApiModel(description = "")
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2015-10-08T20:57:48.684+08:00") @javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2015-10-09T21:30:19.416+08:00")
public class Order { public class Order {
private Long id = null; private Long id = null;
private Long petId = null; private Long petId = null;
private Integer quantity = null; private Integer quantity = null;
private java.util.Date shipDate = null; private Date shipDate = null;
public enum StatusEnum { public enum StatusEnum {
PLACED("placed"), PLACED("placed"),
@ -78,10 +79,10 @@ public enum StatusEnum {
**/ **/
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("shipDate") @JsonProperty("shipDate")
public java.util.Date getShipDate() { public Date getShipDate() {
return shipDate; return shipDate;
} }
public void setShipDate(java.util.Date shipDate) { public void setShipDate(Date shipDate) {
this.shipDate = shipDate; this.shipDate = shipDate;
} }

View File

@ -2,6 +2,7 @@ package io.swagger.client.model;
import io.swagger.client.StringUtil; import io.swagger.client.StringUtil;
import io.swagger.client.model.Category; import io.swagger.client.model.Category;
import java.util.*;
import io.swagger.client.model.Tag; import io.swagger.client.model.Tag;
@ -11,14 +12,14 @@ import com.fasterxml.jackson.annotation.JsonProperty;
@ApiModel(description = "") @ApiModel(description = "")
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2015-10-08T20:57:48.684+08:00") @javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2015-10-09T21:30:19.416+08:00")
public class Pet { public class Pet {
private Long id = null; private Long id = null;
private Category category = null; private Category category = null;
private String name = null; private String name = null;
private java.util.List<String> photoUrls = new java.util.ArrayList<String>(); private List<String> photoUrls = new ArrayList<String>();
private java.util.List<Tag> tags = new java.util.ArrayList<Tag>(); private List<Tag> tags = new ArrayList<Tag>();
public enum StatusEnum { public enum StatusEnum {
AVAILABLE("available"), AVAILABLE("available"),
@ -80,10 +81,10 @@ public enum StatusEnum {
**/ **/
@ApiModelProperty(required = true, value = "") @ApiModelProperty(required = true, value = "")
@JsonProperty("photoUrls") @JsonProperty("photoUrls")
public java.util.List<String> getPhotoUrls() { public List<String> getPhotoUrls() {
return photoUrls; return photoUrls;
} }
public void setPhotoUrls(java.util.List<String> photoUrls) { public void setPhotoUrls(List<String> photoUrls) {
this.photoUrls = photoUrls; this.photoUrls = photoUrls;
} }
@ -92,10 +93,10 @@ public enum StatusEnum {
**/ **/
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("tags") @JsonProperty("tags")
public java.util.List<Tag> getTags() { public List<Tag> getTags() {
return tags; return tags;
} }
public void setTags(java.util.List<Tag> tags) { public void setTags(List<Tag> tags) {
this.tags = tags; this.tags = tags;
} }

View File

@ -6,17 +6,16 @@ import io.swagger.client.ApiException;
import io.swagger.client.Configuration; import io.swagger.client.Configuration;
import io.swagger.client.Pair; import io.swagger.client.Pair;
import io.swagger.client.model.*;
import com.google.gson.reflect.TypeToken; import com.google.gson.reflect.TypeToken;
import com.squareup.okhttp.Call; import com.squareup.okhttp.Call;
import java.lang.reflect.Type;
import io.swagger.client.model.Pet; import io.swagger.client.model.Pet;
import java.io.File; import java.io.File;
import java.lang.reflect.Type;
import java.util.*;
public class PetApi { public class PetApi {
private ApiClient apiClient; private ApiClient apiClient;
@ -45,11 +44,11 @@ public class PetApi {
// create path and map variables // create path and map variables
String path = "/pet".replaceAll("\\{format\\}","json"); String path = "/pet".replaceAll("\\{format\\}","json");
java.util.List<Pair> queryParams = new java.util.ArrayList<Pair>(); List<Pair> queryParams = new ArrayList<Pair>();
java.util.Map<String, String> headerParams = new java.util.HashMap<String, String>(); Map<String, String> headerParams = new HashMap<String, String>();
java.util.Map<String, Object> formParams = new java.util.HashMap<String, Object>(); Map<String, Object> formParams = new HashMap<String, Object>();
final String[] accepts = { final String[] accepts = {
"application/json", "application/xml" "application/json", "application/xml"
@ -98,11 +97,11 @@ public class PetApi {
// create path and map variables // create path and map variables
String path = "/pet".replaceAll("\\{format\\}","json"); String path = "/pet".replaceAll("\\{format\\}","json");
java.util.List<Pair> queryParams = new java.util.ArrayList<Pair>(); List<Pair> queryParams = new ArrayList<Pair>();
java.util.Map<String, String> headerParams = new java.util.HashMap<String, String>(); Map<String, String> headerParams = new HashMap<String, String>();
java.util.Map<String, Object> formParams = new java.util.HashMap<String, Object>(); Map<String, Object> formParams = new HashMap<String, Object>();
final String[] accepts = { final String[] accepts = {
"application/json", "application/xml" "application/json", "application/xml"
@ -144,20 +143,20 @@ public class PetApi {
} }
/* Build call for findPetsByStatus */ /* Build call for findPetsByStatus */
private Call findPetsByStatusCall(java.util.List<String> status) throws ApiException { private Call findPetsByStatusCall(List<String> status) throws ApiException {
Object postBody = null; Object postBody = null;
// create path and map variables // create path and map variables
String path = "/pet/findByStatus".replaceAll("\\{format\\}","json"); String path = "/pet/findByStatus".replaceAll("\\{format\\}","json");
java.util.List<Pair> queryParams = new java.util.ArrayList<Pair>(); List<Pair> queryParams = new ArrayList<Pair>();
if (status != null) if (status != null)
queryParams.addAll(apiClient.parameterToPairs("multi", "status", status)); queryParams.addAll(apiClient.parameterToPairs("multi", "status", status));
java.util.Map<String, String> headerParams = new java.util.HashMap<String, String>(); Map<String, String> headerParams = new HashMap<String, String>();
java.util.Map<String, Object> formParams = new java.util.HashMap<String, Object>(); Map<String, Object> formParams = new HashMap<String, Object>();
final String[] accepts = { final String[] accepts = {
"application/json", "application/xml" "application/json", "application/xml"
@ -179,11 +178,11 @@ public class PetApi {
* Finds Pets by status * Finds Pets by status
* Multiple status values can be provided with comma seperated strings * Multiple status values can be provided with comma seperated strings
* @param status Status values that need to be considered for filter * @param status Status values that need to be considered for filter
* @return java.util.List<Pet> * @return List<Pet>
*/ */
public java.util.List<Pet> findPetsByStatus(java.util.List<String> status) throws ApiException { public List<Pet> findPetsByStatus(List<String> status) throws ApiException {
Call call = findPetsByStatusCall(status); Call call = findPetsByStatusCall(status);
Type returnType = new TypeToken<java.util.List<Pet>>(){}.getType(); Type returnType = new TypeToken<List<Pet>>(){}.getType();
return apiClient.execute(call, returnType); return apiClient.execute(call, returnType);
} }
@ -194,28 +193,28 @@ public class PetApi {
* @param callback The callback to be executed when the API call finishes * @param callback The callback to be executed when the API call finishes
* @return The request call * @return The request call
*/ */
public Call findPetsByStatusAsync(java.util.List<String> status, ApiCallback<java.util.List<Pet>> callback) throws ApiException { public Call findPetsByStatusAsync(List<String> status, ApiCallback<List<Pet>> callback) throws ApiException {
Call call = findPetsByStatusCall(status); Call call = findPetsByStatusCall(status);
Type returnType = new TypeToken<java.util.List<Pet>>(){}.getType(); Type returnType = new TypeToken<List<Pet>>(){}.getType();
apiClient.executeAsync(call, returnType, callback); apiClient.executeAsync(call, returnType, callback);
return call; return call;
} }
/* Build call for findPetsByTags */ /* Build call for findPetsByTags */
private Call findPetsByTagsCall(java.util.List<String> tags) throws ApiException { private Call findPetsByTagsCall(List<String> tags) throws ApiException {
Object postBody = null; Object postBody = null;
// create path and map variables // create path and map variables
String path = "/pet/findByTags".replaceAll("\\{format\\}","json"); String path = "/pet/findByTags".replaceAll("\\{format\\}","json");
java.util.List<Pair> queryParams = new java.util.ArrayList<Pair>(); List<Pair> queryParams = new ArrayList<Pair>();
if (tags != null) if (tags != null)
queryParams.addAll(apiClient.parameterToPairs("multi", "tags", tags)); queryParams.addAll(apiClient.parameterToPairs("multi", "tags", tags));
java.util.Map<String, String> headerParams = new java.util.HashMap<String, String>(); Map<String, String> headerParams = new HashMap<String, String>();
java.util.Map<String, Object> formParams = new java.util.HashMap<String, Object>(); Map<String, Object> formParams = new HashMap<String, Object>();
final String[] accepts = { final String[] accepts = {
"application/json", "application/xml" "application/json", "application/xml"
@ -237,11 +236,11 @@ public class PetApi {
* Finds Pets by tags * Finds Pets by tags
* Muliple tags can be provided with comma seperated strings. Use tag1, tag2, tag3 for testing. * Muliple tags can be provided with comma seperated strings. Use tag1, tag2, tag3 for testing.
* @param tags Tags to filter by * @param tags Tags to filter by
* @return java.util.List<Pet> * @return List<Pet>
*/ */
public java.util.List<Pet> findPetsByTags(java.util.List<String> tags) throws ApiException { public List<Pet> findPetsByTags(List<String> tags) throws ApiException {
Call call = findPetsByTagsCall(tags); Call call = findPetsByTagsCall(tags);
Type returnType = new TypeToken<java.util.List<Pet>>(){}.getType(); Type returnType = new TypeToken<List<Pet>>(){}.getType();
return apiClient.execute(call, returnType); return apiClient.execute(call, returnType);
} }
@ -252,9 +251,9 @@ public class PetApi {
* @param callback The callback to be executed when the API call finishes * @param callback The callback to be executed when the API call finishes
* @return The request call * @return The request call
*/ */
public Call findPetsByTagsAsync(java.util.List<String> tags, ApiCallback<java.util.List<Pet>> callback) throws ApiException { public Call findPetsByTagsAsync(List<String> tags, ApiCallback<List<Pet>> callback) throws ApiException {
Call call = findPetsByTagsCall(tags); Call call = findPetsByTagsCall(tags);
Type returnType = new TypeToken<java.util.List<Pet>>(){}.getType(); Type returnType = new TypeToken<List<Pet>>(){}.getType();
apiClient.executeAsync(call, returnType, callback); apiClient.executeAsync(call, returnType, callback);
return call; return call;
} }
@ -273,11 +272,11 @@ public class PetApi {
String path = "/pet/{petId}".replaceAll("\\{format\\}","json") String path = "/pet/{petId}".replaceAll("\\{format\\}","json")
.replaceAll("\\{" + "petId" + "\\}", apiClient.escapeString(petId.toString())); .replaceAll("\\{" + "petId" + "\\}", apiClient.escapeString(petId.toString()));
java.util.List<Pair> queryParams = new java.util.ArrayList<Pair>(); List<Pair> queryParams = new ArrayList<Pair>();
java.util.Map<String, String> headerParams = new java.util.HashMap<String, String>(); Map<String, String> headerParams = new HashMap<String, String>();
java.util.Map<String, Object> formParams = new java.util.HashMap<String, Object>(); Map<String, Object> formParams = new HashMap<String, Object>();
final String[] accepts = { final String[] accepts = {
"application/json", "application/xml" "application/json", "application/xml"
@ -335,11 +334,11 @@ public class PetApi {
String path = "/pet/{petId}".replaceAll("\\{format\\}","json") String path = "/pet/{petId}".replaceAll("\\{format\\}","json")
.replaceAll("\\{" + "petId" + "\\}", apiClient.escapeString(petId.toString())); .replaceAll("\\{" + "petId" + "\\}", apiClient.escapeString(petId.toString()));
java.util.List<Pair> queryParams = new java.util.ArrayList<Pair>(); List<Pair> queryParams = new ArrayList<Pair>();
java.util.Map<String, String> headerParams = new java.util.HashMap<String, String>(); Map<String, String> headerParams = new HashMap<String, String>();
java.util.Map<String, Object> formParams = new java.util.HashMap<String, Object>(); Map<String, Object> formParams = new HashMap<String, Object>();
if (name != null) if (name != null)
formParams.put("name", name); formParams.put("name", name);
if (status != null) if (status != null)
@ -402,13 +401,13 @@ public class PetApi {
String path = "/pet/{petId}".replaceAll("\\{format\\}","json") String path = "/pet/{petId}".replaceAll("\\{format\\}","json")
.replaceAll("\\{" + "petId" + "\\}", apiClient.escapeString(petId.toString())); .replaceAll("\\{" + "petId" + "\\}", apiClient.escapeString(petId.toString()));
java.util.List<Pair> queryParams = new java.util.ArrayList<Pair>(); List<Pair> queryParams = new ArrayList<Pair>();
java.util.Map<String, String> headerParams = new java.util.HashMap<String, String>(); Map<String, String> headerParams = new HashMap<String, String>();
if (apiKey != null) if (apiKey != null)
headerParams.put("api_key", apiClient.parameterToString(apiKey)); headerParams.put("api_key", apiClient.parameterToString(apiKey));
java.util.Map<String, Object> formParams = new java.util.HashMap<String, Object>(); Map<String, Object> formParams = new HashMap<String, Object>();
final String[] accepts = { final String[] accepts = {
"application/json", "application/xml" "application/json", "application/xml"
@ -465,11 +464,11 @@ public class PetApi {
String path = "/pet/{petId}/uploadImage".replaceAll("\\{format\\}","json") String path = "/pet/{petId}/uploadImage".replaceAll("\\{format\\}","json")
.replaceAll("\\{" + "petId" + "\\}", apiClient.escapeString(petId.toString())); .replaceAll("\\{" + "petId" + "\\}", apiClient.escapeString(petId.toString()));
java.util.List<Pair> queryParams = new java.util.ArrayList<Pair>(); List<Pair> queryParams = new ArrayList<Pair>();
java.util.Map<String, String> headerParams = new java.util.HashMap<String, String>(); Map<String, String> headerParams = new HashMap<String, String>();
java.util.Map<String, Object> formParams = new java.util.HashMap<String, Object>(); Map<String, Object> formParams = new HashMap<String, Object>();
if (additionalMetadata != null) if (additionalMetadata != null)
formParams.put("additionalMetadata", additionalMetadata); formParams.put("additionalMetadata", additionalMetadata);
if (file != null) if (file != null)

View File

@ -6,16 +6,16 @@ import io.swagger.client.ApiException;
import io.swagger.client.Configuration; import io.swagger.client.Configuration;
import io.swagger.client.Pair; import io.swagger.client.Pair;
import io.swagger.client.model.*;
import com.google.gson.reflect.TypeToken; import com.google.gson.reflect.TypeToken;
import com.squareup.okhttp.Call; import com.squareup.okhttp.Call;
import java.lang.reflect.Type; import java.util.Map;
import io.swagger.client.model.Order; import io.swagger.client.model.Order;
import java.lang.reflect.Type;
import java.util.*;
public class StoreApi { public class StoreApi {
private ApiClient apiClient; private ApiClient apiClient;
@ -44,11 +44,11 @@ public class StoreApi {
// create path and map variables // create path and map variables
String path = "/store/inventory".replaceAll("\\{format\\}","json"); String path = "/store/inventory".replaceAll("\\{format\\}","json");
java.util.List<Pair> queryParams = new java.util.ArrayList<Pair>(); List<Pair> queryParams = new ArrayList<Pair>();
java.util.Map<String, String> headerParams = new java.util.HashMap<String, String>(); Map<String, String> headerParams = new HashMap<String, String>();
java.util.Map<String, Object> formParams = new java.util.HashMap<String, Object>(); Map<String, Object> formParams = new HashMap<String, Object>();
final String[] accepts = { final String[] accepts = {
"application/json", "application/xml" "application/json", "application/xml"
@ -69,11 +69,11 @@ public class StoreApi {
/** /**
* Returns pet inventories by status * Returns pet inventories by status
* Returns a map of status codes to quantities * Returns a map of status codes to quantities
* @return java.util.Map<String, Integer> * @return Map<String, Integer>
*/ */
public java.util.Map<String, Integer> getInventory() throws ApiException { public Map<String, Integer> getInventory() throws ApiException {
Call call = getInventoryCall(); Call call = getInventoryCall();
Type returnType = new TypeToken<java.util.Map<String, Integer>>(){}.getType(); Type returnType = new TypeToken<Map<String, Integer>>(){}.getType();
return apiClient.execute(call, returnType); return apiClient.execute(call, returnType);
} }
@ -83,9 +83,9 @@ public class StoreApi {
* @param callback The callback to be executed when the API call finishes * @param callback The callback to be executed when the API call finishes
* @return The request call * @return The request call
*/ */
public Call getInventoryAsync(ApiCallback<java.util.Map<String, Integer>> callback) throws ApiException { public Call getInventoryAsync(ApiCallback<Map<String, Integer>> callback) throws ApiException {
Call call = getInventoryCall(); Call call = getInventoryCall();
Type returnType = new TypeToken<java.util.Map<String, Integer>>(){}.getType(); Type returnType = new TypeToken<Map<String, Integer>>(){}.getType();
apiClient.executeAsync(call, returnType, callback); apiClient.executeAsync(call, returnType, callback);
return call; return call;
} }
@ -98,11 +98,11 @@ public class StoreApi {
// create path and map variables // create path and map variables
String path = "/store/order".replaceAll("\\{format\\}","json"); String path = "/store/order".replaceAll("\\{format\\}","json");
java.util.List<Pair> queryParams = new java.util.ArrayList<Pair>(); List<Pair> queryParams = new ArrayList<Pair>();
java.util.Map<String, String> headerParams = new java.util.HashMap<String, String>(); Map<String, String> headerParams = new HashMap<String, String>();
java.util.Map<String, Object> formParams = new java.util.HashMap<String, Object>(); Map<String, Object> formParams = new HashMap<String, Object>();
final String[] accepts = { final String[] accepts = {
"application/json", "application/xml" "application/json", "application/xml"
@ -160,11 +160,11 @@ public class StoreApi {
String path = "/store/order/{orderId}".replaceAll("\\{format\\}","json") String path = "/store/order/{orderId}".replaceAll("\\{format\\}","json")
.replaceAll("\\{" + "orderId" + "\\}", apiClient.escapeString(orderId.toString())); .replaceAll("\\{" + "orderId" + "\\}", apiClient.escapeString(orderId.toString()));
java.util.List<Pair> queryParams = new java.util.ArrayList<Pair>(); List<Pair> queryParams = new ArrayList<Pair>();
java.util.Map<String, String> headerParams = new java.util.HashMap<String, String>(); Map<String, String> headerParams = new HashMap<String, String>();
java.util.Map<String, Object> formParams = new java.util.HashMap<String, Object>(); Map<String, Object> formParams = new HashMap<String, Object>();
final String[] accepts = { final String[] accepts = {
"application/json", "application/xml" "application/json", "application/xml"
@ -222,11 +222,11 @@ public class StoreApi {
String path = "/store/order/{orderId}".replaceAll("\\{format\\}","json") String path = "/store/order/{orderId}".replaceAll("\\{format\\}","json")
.replaceAll("\\{" + "orderId" + "\\}", apiClient.escapeString(orderId.toString())); .replaceAll("\\{" + "orderId" + "\\}", apiClient.escapeString(orderId.toString()));
java.util.List<Pair> queryParams = new java.util.ArrayList<Pair>(); List<Pair> queryParams = new ArrayList<Pair>();
java.util.Map<String, String> headerParams = new java.util.HashMap<String, String>(); Map<String, String> headerParams = new HashMap<String, String>();
java.util.Map<String, Object> formParams = new java.util.HashMap<String, Object>(); Map<String, Object> formParams = new HashMap<String, Object>();
final String[] accepts = { final String[] accepts = {
"application/json", "application/xml" "application/json", "application/xml"

View File

@ -6,15 +6,15 @@ import io.swagger.client.ApiException;
import io.swagger.client.Configuration; import io.swagger.client.Configuration;
import io.swagger.client.Pair; import io.swagger.client.Pair;
import io.swagger.client.model.*;
import com.google.gson.reflect.TypeToken; import com.google.gson.reflect.TypeToken;
import com.squareup.okhttp.Call; import com.squareup.okhttp.Call;
import java.lang.reflect.Type;
import io.swagger.client.model.User; import io.swagger.client.model.User;
import java.util.*;
import java.lang.reflect.Type;
import java.util.*;
public class UserApi { public class UserApi {
private ApiClient apiClient; private ApiClient apiClient;
@ -44,11 +44,11 @@ public class UserApi {
// create path and map variables // create path and map variables
String path = "/user".replaceAll("\\{format\\}","json"); String path = "/user".replaceAll("\\{format\\}","json");
java.util.List<Pair> queryParams = new java.util.ArrayList<Pair>(); List<Pair> queryParams = new ArrayList<Pair>();
java.util.Map<String, String> headerParams = new java.util.HashMap<String, String>(); Map<String, String> headerParams = new HashMap<String, String>();
java.util.Map<String, Object> formParams = new java.util.HashMap<String, Object>(); Map<String, Object> formParams = new HashMap<String, Object>();
final String[] accepts = { final String[] accepts = {
"application/json", "application/xml" "application/json", "application/xml"
@ -90,18 +90,18 @@ public class UserApi {
} }
/* Build call for createUsersWithArrayInput */ /* Build call for createUsersWithArrayInput */
private Call createUsersWithArrayInputCall(java.util.List<User> body) throws ApiException { private Call createUsersWithArrayInputCall(List<User> body) throws ApiException {
Object postBody = body; Object postBody = body;
// create path and map variables // create path and map variables
String path = "/user/createWithArray".replaceAll("\\{format\\}","json"); String path = "/user/createWithArray".replaceAll("\\{format\\}","json");
java.util.List<Pair> queryParams = new java.util.ArrayList<Pair>(); List<Pair> queryParams = new ArrayList<Pair>();
java.util.Map<String, String> headerParams = new java.util.HashMap<String, String>(); Map<String, String> headerParams = new HashMap<String, String>();
java.util.Map<String, Object> formParams = new java.util.HashMap<String, Object>(); Map<String, Object> formParams = new HashMap<String, Object>();
final String[] accepts = { final String[] accepts = {
"application/json", "application/xml" "application/json", "application/xml"
@ -124,7 +124,7 @@ public class UserApi {
* *
* @param body List of user object * @param body List of user object
*/ */
public void createUsersWithArrayInput(java.util.List<User> body) throws ApiException { public void createUsersWithArrayInput(List<User> body) throws ApiException {
Call call = createUsersWithArrayInputCall(body); Call call = createUsersWithArrayInputCall(body);
apiClient.execute(call); apiClient.execute(call);
} }
@ -136,25 +136,25 @@ public class UserApi {
* @param callback The callback to be executed when the API call finishes * @param callback The callback to be executed when the API call finishes
* @return The request call * @return The request call
*/ */
public Call createUsersWithArrayInputAsync(java.util.List<User> body, ApiCallback<Void> callback) throws ApiException { public Call createUsersWithArrayInputAsync(List<User> body, ApiCallback<Void> callback) throws ApiException {
Call call = createUsersWithArrayInputCall(body); Call call = createUsersWithArrayInputCall(body);
apiClient.executeAsync(call, callback); apiClient.executeAsync(call, callback);
return call; return call;
} }
/* Build call for createUsersWithListInput */ /* Build call for createUsersWithListInput */
private Call createUsersWithListInputCall(java.util.List<User> body) throws ApiException { private Call createUsersWithListInputCall(List<User> body) throws ApiException {
Object postBody = body; Object postBody = body;
// create path and map variables // create path and map variables
String path = "/user/createWithList".replaceAll("\\{format\\}","json"); String path = "/user/createWithList".replaceAll("\\{format\\}","json");
java.util.List<Pair> queryParams = new java.util.ArrayList<Pair>(); List<Pair> queryParams = new ArrayList<Pair>();
java.util.Map<String, String> headerParams = new java.util.HashMap<String, String>(); Map<String, String> headerParams = new HashMap<String, String>();
java.util.Map<String, Object> formParams = new java.util.HashMap<String, Object>(); Map<String, Object> formParams = new HashMap<String, Object>();
final String[] accepts = { final String[] accepts = {
"application/json", "application/xml" "application/json", "application/xml"
@ -177,7 +177,7 @@ public class UserApi {
* *
* @param body List of user object * @param body List of user object
*/ */
public void createUsersWithListInput(java.util.List<User> body) throws ApiException { public void createUsersWithListInput(List<User> body) throws ApiException {
Call call = createUsersWithListInputCall(body); Call call = createUsersWithListInputCall(body);
apiClient.execute(call); apiClient.execute(call);
} }
@ -189,7 +189,7 @@ public class UserApi {
* @param callback The callback to be executed when the API call finishes * @param callback The callback to be executed when the API call finishes
* @return The request call * @return The request call
*/ */
public Call createUsersWithListInputAsync(java.util.List<User> body, ApiCallback<Void> callback) throws ApiException { public Call createUsersWithListInputAsync(List<User> body, ApiCallback<Void> callback) throws ApiException {
Call call = createUsersWithListInputCall(body); Call call = createUsersWithListInputCall(body);
apiClient.executeAsync(call, callback); apiClient.executeAsync(call, callback);
return call; return call;
@ -203,15 +203,15 @@ public class UserApi {
// create path and map variables // create path and map variables
String path = "/user/login".replaceAll("\\{format\\}","json"); String path = "/user/login".replaceAll("\\{format\\}","json");
java.util.List<Pair> queryParams = new java.util.ArrayList<Pair>(); List<Pair> queryParams = new ArrayList<Pair>();
if (username != null) if (username != null)
queryParams.addAll(apiClient.parameterToPairs("", "username", username)); queryParams.addAll(apiClient.parameterToPairs("", "username", username));
if (password != null) if (password != null)
queryParams.addAll(apiClient.parameterToPairs("", "password", password)); queryParams.addAll(apiClient.parameterToPairs("", "password", password));
java.util.Map<String, String> headerParams = new java.util.HashMap<String, String>(); Map<String, String> headerParams = new HashMap<String, String>();
java.util.Map<String, Object> formParams = new java.util.HashMap<String, Object>(); Map<String, Object> formParams = new HashMap<String, Object>();
final String[] accepts = { final String[] accepts = {
"application/json", "application/xml" "application/json", "application/xml"
@ -265,11 +265,11 @@ public class UserApi {
// create path and map variables // create path and map variables
String path = "/user/logout".replaceAll("\\{format\\}","json"); String path = "/user/logout".replaceAll("\\{format\\}","json");
java.util.List<Pair> queryParams = new java.util.ArrayList<Pair>(); List<Pair> queryParams = new ArrayList<Pair>();
java.util.Map<String, String> headerParams = new java.util.HashMap<String, String>(); Map<String, String> headerParams = new HashMap<String, String>();
java.util.Map<String, Object> formParams = new java.util.HashMap<String, Object>(); Map<String, Object> formParams = new HashMap<String, Object>();
final String[] accepts = { final String[] accepts = {
"application/json", "application/xml" "application/json", "application/xml"
@ -322,11 +322,11 @@ public class UserApi {
String path = "/user/{username}".replaceAll("\\{format\\}","json") String path = "/user/{username}".replaceAll("\\{format\\}","json")
.replaceAll("\\{" + "username" + "\\}", apiClient.escapeString(username.toString())); .replaceAll("\\{" + "username" + "\\}", apiClient.escapeString(username.toString()));
java.util.List<Pair> queryParams = new java.util.ArrayList<Pair>(); List<Pair> queryParams = new ArrayList<Pair>();
java.util.Map<String, String> headerParams = new java.util.HashMap<String, String>(); Map<String, String> headerParams = new HashMap<String, String>();
java.util.Map<String, Object> formParams = new java.util.HashMap<String, Object>(); Map<String, Object> formParams = new HashMap<String, Object>();
final String[] accepts = { final String[] accepts = {
"application/json", "application/xml" "application/json", "application/xml"
@ -384,11 +384,11 @@ public class UserApi {
String path = "/user/{username}".replaceAll("\\{format\\}","json") String path = "/user/{username}".replaceAll("\\{format\\}","json")
.replaceAll("\\{" + "username" + "\\}", apiClient.escapeString(username.toString())); .replaceAll("\\{" + "username" + "\\}", apiClient.escapeString(username.toString()));
java.util.List<Pair> queryParams = new java.util.ArrayList<Pair>(); List<Pair> queryParams = new ArrayList<Pair>();
java.util.Map<String, String> headerParams = new java.util.HashMap<String, String>(); Map<String, String> headerParams = new HashMap<String, String>();
java.util.Map<String, Object> formParams = new java.util.HashMap<String, Object>(); Map<String, Object> formParams = new HashMap<String, Object>();
final String[] accepts = { final String[] accepts = {
"application/json", "application/xml" "application/json", "application/xml"
@ -445,11 +445,11 @@ public class UserApi {
String path = "/user/{username}".replaceAll("\\{format\\}","json") String path = "/user/{username}".replaceAll("\\{format\\}","json")
.replaceAll("\\{" + "username" + "\\}", apiClient.escapeString(username.toString())); .replaceAll("\\{" + "username" + "\\}", apiClient.escapeString(username.toString()));
java.util.List<Pair> queryParams = new java.util.ArrayList<Pair>(); List<Pair> queryParams = new ArrayList<Pair>();
java.util.Map<String, String> headerParams = new java.util.HashMap<String, String>(); Map<String, String> headerParams = new HashMap<String, String>();
java.util.Map<String, Object> formParams = new java.util.HashMap<String, Object>(); Map<String, Object> formParams = new HashMap<String, Object>();
final String[] accepts = { final String[] accepts = {
"application/json", "application/xml" "application/json", "application/xml"

View File

@ -1,6 +1,7 @@
package io.swagger.client.model; package io.swagger.client.model;
import io.swagger.client.StringUtil; import io.swagger.client.StringUtil;
import java.util.Date;
import com.google.gson.annotations.SerializedName; import com.google.gson.annotations.SerializedName;
@ -23,7 +24,7 @@ public class Order {
private Integer quantity = null; private Integer quantity = null;
@SerializedName("shipDate") @SerializedName("shipDate")
private java.util.Date shipDate = null; private Date shipDate = null;
public enum StatusEnum { public enum StatusEnum {
@ -92,10 +93,10 @@ public enum StatusEnum {
/** /**
**/ **/
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
public java.util.Date getShipDate() { public Date getShipDate() {
return shipDate; return shipDate;
} }
public void setShipDate(java.util.Date shipDate) { public void setShipDate(Date shipDate) {
this.shipDate = shipDate; this.shipDate = shipDate;
} }

View File

@ -2,6 +2,7 @@ package io.swagger.client.model;
import io.swagger.client.StringUtil; import io.swagger.client.StringUtil;
import io.swagger.client.model.Category; import io.swagger.client.model.Category;
import java.util.*;
import io.swagger.client.model.Tag; import io.swagger.client.model.Tag;
import com.google.gson.annotations.SerializedName; import com.google.gson.annotations.SerializedName;
@ -25,10 +26,10 @@ public class Pet {
private String name = null; private String name = null;
@SerializedName("photoUrls") @SerializedName("photoUrls")
private java.util.List<String> photoUrls = new java.util.ArrayList<String>(); private List<String> photoUrls = new ArrayList<String>();
@SerializedName("tags") @SerializedName("tags")
private java.util.List<Tag> tags = new java.util.ArrayList<Tag>(); private List<Tag> tags = new ArrayList<Tag>();
public enum StatusEnum { public enum StatusEnum {
@ -94,10 +95,10 @@ public enum StatusEnum {
/** /**
**/ **/
@ApiModelProperty(required = true, value = "") @ApiModelProperty(required = true, value = "")
public java.util.List<String> getPhotoUrls() { public List<String> getPhotoUrls() {
return photoUrls; return photoUrls;
} }
public void setPhotoUrls(java.util.List<String> photoUrls) { public void setPhotoUrls(List<String> photoUrls) {
this.photoUrls = photoUrls; this.photoUrls = photoUrls;
} }
@ -105,10 +106,10 @@ public enum StatusEnum {
/** /**
**/ **/
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
public java.util.List<Tag> getTags() { public List<Tag> getTags() {
return tags; return tags;
} }
public void setTags(java.util.List<Tag> tags) { public void setTags(List<Tag> tags) {
this.tags = tags; this.tags = tags;
} }

View File

@ -1,7 +1,5 @@
package io.swagger.client.api; package io.swagger.client.api;
import io.swagger.client.model.*;
import retrofit.Callback; import retrofit.Callback;
import retrofit.http.*; import retrofit.http.*;
import retrofit.mime.*; import retrofit.mime.*;
@ -9,6 +7,8 @@ import retrofit.mime.*;
import io.swagger.client.model.Pet; import io.swagger.client.model.Pet;
import java.io.File; import java.io.File;
import java.util.*;
public interface PetApi { public interface PetApi {
/** /**
@ -68,12 +68,12 @@ public interface PetApi {
* Sync method * Sync method
* Multiple status values can be provided with comma seperated strings * Multiple status values can be provided with comma seperated strings
* @param status Status values that need to be considered for filter * @param status Status values that need to be considered for filter
* @return java.util.List<Pet> * @return List<Pet>
*/ */
@GET("/pet/findByStatus") @GET("/pet/findByStatus")
java.util.List<Pet> findPetsByStatus( List<Pet> findPetsByStatus(
@Query("status") java.util.List<String> status @Query("status") List<String> status
); );
/** /**
@ -86,7 +86,7 @@ public interface PetApi {
@GET("/pet/findByStatus") @GET("/pet/findByStatus")
void findPetsByStatus( void findPetsByStatus(
@Query("status") java.util.List<String> status, Callback<java.util.List<Pet>> cb @Query("status") List<String> status, Callback<List<Pet>> cb
); );
/** /**
@ -94,12 +94,12 @@ public interface PetApi {
* Sync method * Sync method
* Muliple tags can be provided with comma seperated strings. Use tag1, tag2, tag3 for testing. * Muliple tags can be provided with comma seperated strings. Use tag1, tag2, tag3 for testing.
* @param tags Tags to filter by * @param tags Tags to filter by
* @return java.util.List<Pet> * @return List<Pet>
*/ */
@GET("/pet/findByTags") @GET("/pet/findByTags")
java.util.List<Pet> findPetsByTags( List<Pet> findPetsByTags(
@Query("tags") java.util.List<String> tags @Query("tags") List<String> tags
); );
/** /**
@ -112,7 +112,7 @@ public interface PetApi {
@GET("/pet/findByTags") @GET("/pet/findByTags")
void findPetsByTags( void findPetsByTags(
@Query("tags") java.util.List<String> tags, Callback<java.util.List<Pet>> cb @Query("tags") List<String> tags, Callback<List<Pet>> cb
); );
/** /**

View File

@ -1,24 +1,25 @@
package io.swagger.client.api; package io.swagger.client.api;
import io.swagger.client.model.*;
import retrofit.Callback; import retrofit.Callback;
import retrofit.http.*; import retrofit.http.*;
import retrofit.mime.*; import retrofit.mime.*;
import java.util.Map;
import io.swagger.client.model.Order; import io.swagger.client.model.Order;
import java.util.*;
public interface StoreApi { public interface StoreApi {
/** /**
* Returns pet inventories by status * Returns pet inventories by status
* Sync method * Sync method
* Returns a map of status codes to quantities * Returns a map of status codes to quantities
* @return java.util.Map<String, Integer> * @return Map<String, Integer>
*/ */
@GET("/store/inventory") @GET("/store/inventory")
java.util.Map<String, Integer> getInventory(); Map<String, Integer> getInventory();
/** /**
@ -30,7 +31,7 @@ public interface StoreApi {
@GET("/store/inventory") @GET("/store/inventory")
void getInventory( void getInventory(
Callback<java.util.Map<String, Integer>> cb Callback<Map<String, Integer>> cb
); );
/** /**

View File

@ -1,12 +1,13 @@
package io.swagger.client.api; package io.swagger.client.api;
import io.swagger.client.model.*;
import retrofit.Callback; import retrofit.Callback;
import retrofit.http.*; import retrofit.http.*;
import retrofit.mime.*; import retrofit.mime.*;
import io.swagger.client.model.User; import io.swagger.client.model.User;
import java.util.*;
import java.util.*;
public interface UserApi { public interface UserApi {
@ -46,7 +47,7 @@ public interface UserApi {
@POST("/user/createWithArray") @POST("/user/createWithArray")
Void createUsersWithArrayInput( Void createUsersWithArrayInput(
@Body java.util.List<User> body @Body List<User> body
); );
/** /**
@ -59,7 +60,7 @@ public interface UserApi {
@POST("/user/createWithArray") @POST("/user/createWithArray")
void createUsersWithArrayInput( void createUsersWithArrayInput(
@Body java.util.List<User> body, Callback<Void> cb @Body List<User> body, Callback<Void> cb
); );
/** /**
@ -72,7 +73,7 @@ public interface UserApi {
@POST("/user/createWithList") @POST("/user/createWithList")
Void createUsersWithListInput( Void createUsersWithListInput(
@Body java.util.List<User> body @Body List<User> body
); );
/** /**
@ -85,7 +86,7 @@ public interface UserApi {
@POST("/user/createWithList") @POST("/user/createWithList")
void createUsersWithListInput( void createUsersWithListInput(
@Body java.util.List<User> body, Callback<Void> cb @Body List<User> body, Callback<Void> cb
); );
/** /**

View File

@ -1,6 +1,7 @@
package io.swagger.client.model; package io.swagger.client.model;
import io.swagger.client.StringUtil; import io.swagger.client.StringUtil;
import java.util.Date;
import com.google.gson.annotations.SerializedName; import com.google.gson.annotations.SerializedName;
@ -23,7 +24,7 @@ public class Order {
private Integer quantity = null; private Integer quantity = null;
@SerializedName("shipDate") @SerializedName("shipDate")
private java.util.Date shipDate = null; private Date shipDate = null;
public enum StatusEnum { public enum StatusEnum {
@ -92,10 +93,10 @@ public enum StatusEnum {
/** /**
**/ **/
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
public java.util.Date getShipDate() { public Date getShipDate() {
return shipDate; return shipDate;
} }
public void setShipDate(java.util.Date shipDate) { public void setShipDate(Date shipDate) {
this.shipDate = shipDate; this.shipDate = shipDate;
} }

View File

@ -2,6 +2,7 @@ package io.swagger.client.model;
import io.swagger.client.StringUtil; import io.swagger.client.StringUtil;
import io.swagger.client.model.Category; import io.swagger.client.model.Category;
import java.util.*;
import io.swagger.client.model.Tag; import io.swagger.client.model.Tag;
import com.google.gson.annotations.SerializedName; import com.google.gson.annotations.SerializedName;
@ -25,10 +26,10 @@ public class Pet {
private String name = null; private String name = null;
@SerializedName("photoUrls") @SerializedName("photoUrls")
private java.util.List<String> photoUrls = new java.util.ArrayList<String>(); private List<String> photoUrls = new ArrayList<String>();
@SerializedName("tags") @SerializedName("tags")
private java.util.List<Tag> tags = new java.util.ArrayList<Tag>(); private List<Tag> tags = new ArrayList<Tag>();
public enum StatusEnum { public enum StatusEnum {
@ -94,10 +95,10 @@ public enum StatusEnum {
/** /**
**/ **/
@ApiModelProperty(required = true, value = "") @ApiModelProperty(required = true, value = "")
public java.util.List<String> getPhotoUrls() { public List<String> getPhotoUrls() {
return photoUrls; return photoUrls;
} }
public void setPhotoUrls(java.util.List<String> photoUrls) { public void setPhotoUrls(List<String> photoUrls) {
this.photoUrls = photoUrls; this.photoUrls = photoUrls;
} }
@ -105,10 +106,10 @@ public enum StatusEnum {
/** /**
**/ **/
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
public java.util.List<Tag> getTags() { public List<Tag> getTags() {
return tags; return tags;
} }
public void setTags(java.util.List<Tag> tags) { public void setTags(List<Tag> tags) {
this.tags = tags; this.tags = tags;
} }