mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-07-04 06:30:52 +00:00
update samples
This commit is contained in:
parent
8331aac869
commit
d9cee4c269
@ -7,9 +7,7 @@ buildscript {
|
|||||||
}
|
}
|
||||||
dependencies {
|
dependencies {
|
||||||
classpath 'com.android.tools.build:gradle:1.5.+'
|
classpath 'com.android.tools.build:gradle:1.5.+'
|
||||||
|
|
||||||
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.3'
|
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.3'
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -189,50 +189,14 @@ public class ApiInvoker {
|
|||||||
|
|
||||||
// Setup authentications (key: authentication name, value: authentication).
|
// Setup authentications (key: authentication name, value: authentication).
|
||||||
INSTANCE.authentications = new HashMap<String, Authentication>();
|
INSTANCE.authentications = new HashMap<String, Authentication>();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// TODO: comment out below as OAuth does not exist
|
// TODO: comment out below as OAuth does not exist
|
||||||
//INSTANCE.authentications.put("petstore_auth", new OAuth());
|
//INSTANCE.authentications.put("petstore_auth", new OAuth());
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
INSTANCE.authentications.put("test_api_client_id", new ApiKeyAuth("header", "x-test_api_client_id"));
|
INSTANCE.authentications.put("test_api_client_id", new ApiKeyAuth("header", "x-test_api_client_id"));
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
INSTANCE.authentications.put("test_api_client_secret", new ApiKeyAuth("header", "x-test_api_client_secret"));
|
INSTANCE.authentications.put("test_api_client_secret", new ApiKeyAuth("header", "x-test_api_client_secret"));
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
INSTANCE.authentications.put("api_key", new ApiKeyAuth("header", "api_key"));
|
INSTANCE.authentications.put("api_key", new ApiKeyAuth("header", "api_key"));
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
INSTANCE.authentications.put("test_http_basic", new HttpBasicAuth());
|
INSTANCE.authentications.put("test_http_basic", new HttpBasicAuth());
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
INSTANCE.authentications.put("test_api_key_query", new ApiKeyAuth("query", "test_api_key_query"));
|
INSTANCE.authentications.put("test_api_key_query", new ApiKeyAuth("query", "test_api_key_query"));
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
INSTANCE.authentications.put("test_api_key_header", new ApiKeyAuth("header", "test_api_key_header"));
|
INSTANCE.authentications.put("test_api_key_header", new ApiKeyAuth("header", "test_api_key_header"));
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// Prevent the authentications from being modified.
|
// Prevent the authentications from being modified.
|
||||||
INSTANCE.authentications = Collections.unmodifiableMap(INSTANCE.authentications);
|
INSTANCE.authentications = Collections.unmodifiableMap(INSTANCE.authentications);
|
||||||
}
|
}
|
||||||
|
@ -51,6 +51,10 @@ public class JsonUtil {
|
|||||||
return new TypeToken<List<Dog>>(){}.getType();
|
return new TypeToken<List<Dog>>(){}.getType();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ("FormatTest".equalsIgnoreCase(className)) {
|
||||||
|
return new TypeToken<List<FormatTest>>(){}.getType();
|
||||||
|
}
|
||||||
|
|
||||||
if ("InlineResponse200".equalsIgnoreCase(className)) {
|
if ("InlineResponse200".equalsIgnoreCase(className)) {
|
||||||
return new TypeToken<List<InlineResponse200>>(){}.getType();
|
return new TypeToken<List<InlineResponse200>>(){}.getType();
|
||||||
}
|
}
|
||||||
@ -109,6 +113,10 @@ public class JsonUtil {
|
|||||||
return new TypeToken<Dog>(){}.getType();
|
return new TypeToken<Dog>(){}.getType();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ("FormatTest".equalsIgnoreCase(className)) {
|
||||||
|
return new TypeToken<FormatTest>(){}.getType();
|
||||||
|
}
|
||||||
|
|
||||||
if ("InlineResponse200".equalsIgnoreCase(className)) {
|
if ("InlineResponse200".equalsIgnoreCase(className)) {
|
||||||
return new TypeToken<InlineResponse200>(){}.getType();
|
return new TypeToken<InlineResponse200>(){}.getType();
|
||||||
}
|
}
|
||||||
|
@ -45,7 +45,6 @@ public class PetApi {
|
|||||||
return basePath;
|
return basePath;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Add a new pet to the store
|
* Add a new pet to the store
|
||||||
*
|
*
|
||||||
@ -68,8 +67,6 @@ public class PetApi {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
String[] contentTypes = {
|
String[] contentTypes = {
|
||||||
"application/json","application/xml"
|
"application/json","application/xml"
|
||||||
};
|
};
|
||||||
@ -84,7 +81,6 @@ public class PetApi {
|
|||||||
postBody = httpEntity;
|
postBody = httpEntity;
|
||||||
} else {
|
} else {
|
||||||
// normal form params
|
// normal form params
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
String[] authNames = new String[] { "petstore_auth" };
|
String[] authNames = new String[] { "petstore_auth" };
|
||||||
@ -135,8 +131,6 @@ public class PetApi {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
String[] contentTypes = {
|
String[] contentTypes = {
|
||||||
"application/json","application/xml"
|
"application/json","application/xml"
|
||||||
};
|
};
|
||||||
@ -151,7 +145,6 @@ public class PetApi {
|
|||||||
postBody = httpEntity;
|
postBody = httpEntity;
|
||||||
} else {
|
} else {
|
||||||
// normal form params
|
// normal form params
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
String[] authNames = new String[] { "petstore_auth" };
|
String[] authNames = new String[] { "petstore_auth" };
|
||||||
@ -161,11 +154,7 @@ public class PetApi {
|
|||||||
new Response.Listener<String>() {
|
new Response.Listener<String>() {
|
||||||
@Override
|
@Override
|
||||||
public void onResponse(String localVarResponse) {
|
public void onResponse(String localVarResponse) {
|
||||||
|
|
||||||
|
|
||||||
responseListener.onResponse(localVarResponse);
|
responseListener.onResponse(localVarResponse);
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}, new Response.ErrorListener() {
|
}, new Response.ErrorListener() {
|
||||||
@Override
|
@Override
|
||||||
@ -177,7 +166,6 @@ public class PetApi {
|
|||||||
errorListener.onErrorResponse(new VolleyError(ex));
|
errorListener.onErrorResponse(new VolleyError(ex));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Fake endpoint to test byte array in body parameter for adding a new pet to the store
|
* Fake endpoint to test byte array in body parameter for adding a new pet to the store
|
||||||
*
|
*
|
||||||
@ -189,7 +177,7 @@ public class PetApi {
|
|||||||
|
|
||||||
|
|
||||||
// create path and map variables
|
// create path and map variables
|
||||||
String path = "/pet?testing_byte_array=true".replaceAll("\\{format\\}","json");
|
String path = "/pet?testing_byte_array=true".replaceAll("\\{format\\}","json");
|
||||||
|
|
||||||
// query params
|
// query params
|
||||||
List<Pair> queryParams = new ArrayList<Pair>();
|
List<Pair> queryParams = new ArrayList<Pair>();
|
||||||
@ -200,8 +188,6 @@ public class PetApi {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
String[] contentTypes = {
|
String[] contentTypes = {
|
||||||
"application/json","application/xml"
|
"application/json","application/xml"
|
||||||
};
|
};
|
||||||
@ -216,7 +202,6 @@ public class PetApi {
|
|||||||
postBody = httpEntity;
|
postBody = httpEntity;
|
||||||
} else {
|
} else {
|
||||||
// normal form params
|
// normal form params
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
String[] authNames = new String[] { "petstore_auth" };
|
String[] authNames = new String[] { "petstore_auth" };
|
||||||
@ -256,7 +241,7 @@ public class PetApi {
|
|||||||
|
|
||||||
|
|
||||||
// create path and map variables
|
// create path and map variables
|
||||||
String path = "/pet?testing_byte_array=true".replaceAll("\\{format\\}","json");
|
String path = "/pet?testing_byte_array=true".replaceAll("\\{format\\}","json");
|
||||||
|
|
||||||
// query params
|
// query params
|
||||||
List<Pair> queryParams = new ArrayList<Pair>();
|
List<Pair> queryParams = new ArrayList<Pair>();
|
||||||
@ -267,8 +252,6 @@ public class PetApi {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
String[] contentTypes = {
|
String[] contentTypes = {
|
||||||
"application/json","application/xml"
|
"application/json","application/xml"
|
||||||
};
|
};
|
||||||
@ -283,7 +266,6 @@ public class PetApi {
|
|||||||
postBody = httpEntity;
|
postBody = httpEntity;
|
||||||
} else {
|
} else {
|
||||||
// normal form params
|
// normal form params
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
String[] authNames = new String[] { "petstore_auth" };
|
String[] authNames = new String[] { "petstore_auth" };
|
||||||
@ -293,11 +275,7 @@ public class PetApi {
|
|||||||
new Response.Listener<String>() {
|
new Response.Listener<String>() {
|
||||||
@Override
|
@Override
|
||||||
public void onResponse(String localVarResponse) {
|
public void onResponse(String localVarResponse) {
|
||||||
|
|
||||||
|
|
||||||
responseListener.onResponse(localVarResponse);
|
responseListener.onResponse(localVarResponse);
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}, new Response.ErrorListener() {
|
}, new Response.ErrorListener() {
|
||||||
@Override
|
@Override
|
||||||
@ -309,7 +287,6 @@ public class PetApi {
|
|||||||
errorListener.onErrorResponse(new VolleyError(ex));
|
errorListener.onErrorResponse(new VolleyError(ex));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Deletes a pet
|
* Deletes a pet
|
||||||
*
|
*
|
||||||
@ -338,11 +315,8 @@ public class PetApi {
|
|||||||
Map<String, String> formParams = new HashMap<String, String>();
|
Map<String, String> formParams = new HashMap<String, String>();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
headerParams.put("api_key", ApiInvoker.parameterToString(apiKey));
|
headerParams.put("api_key", ApiInvoker.parameterToString(apiKey));
|
||||||
|
|
||||||
|
|
||||||
String[] contentTypes = {
|
String[] contentTypes = {
|
||||||
|
|
||||||
};
|
};
|
||||||
@ -357,7 +331,6 @@ public class PetApi {
|
|||||||
postBody = httpEntity;
|
postBody = httpEntity;
|
||||||
} else {
|
} else {
|
||||||
// normal form params
|
// normal form params
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
String[] authNames = new String[] { "petstore_auth" };
|
String[] authNames = new String[] { "petstore_auth" };
|
||||||
@ -413,11 +386,8 @@ public class PetApi {
|
|||||||
Map<String, String> formParams = new HashMap<String, String>();
|
Map<String, String> formParams = new HashMap<String, String>();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
headerParams.put("api_key", ApiInvoker.parameterToString(apiKey));
|
headerParams.put("api_key", ApiInvoker.parameterToString(apiKey));
|
||||||
|
|
||||||
|
|
||||||
String[] contentTypes = {
|
String[] contentTypes = {
|
||||||
|
|
||||||
};
|
};
|
||||||
@ -432,7 +402,6 @@ public class PetApi {
|
|||||||
postBody = httpEntity;
|
postBody = httpEntity;
|
||||||
} else {
|
} else {
|
||||||
// normal form params
|
// normal form params
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
String[] authNames = new String[] { "petstore_auth" };
|
String[] authNames = new String[] { "petstore_auth" };
|
||||||
@ -442,11 +411,7 @@ public class PetApi {
|
|||||||
new Response.Listener<String>() {
|
new Response.Listener<String>() {
|
||||||
@Override
|
@Override
|
||||||
public void onResponse(String localVarResponse) {
|
public void onResponse(String localVarResponse) {
|
||||||
|
|
||||||
|
|
||||||
responseListener.onResponse(localVarResponse);
|
responseListener.onResponse(localVarResponse);
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}, new Response.ErrorListener() {
|
}, new Response.ErrorListener() {
|
||||||
@Override
|
@Override
|
||||||
@ -458,7 +423,6 @@ public class PetApi {
|
|||||||
errorListener.onErrorResponse(new VolleyError(ex));
|
errorListener.onErrorResponse(new VolleyError(ex));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Finds Pets by status
|
* Finds Pets by status
|
||||||
* Multiple status values can be provided with comma separated strings
|
* Multiple status values can be provided with comma separated strings
|
||||||
@ -479,12 +443,9 @@ public class PetApi {
|
|||||||
// form params
|
// form params
|
||||||
Map<String, String> formParams = new HashMap<String, String>();
|
Map<String, String> formParams = new HashMap<String, String>();
|
||||||
|
|
||||||
|
|
||||||
queryParams.addAll(ApiInvoker.parameterToPairs("multi", "status", status));
|
queryParams.addAll(ApiInvoker.parameterToPairs("multi", "status", status));
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
String[] contentTypes = {
|
String[] contentTypes = {
|
||||||
|
|
||||||
};
|
};
|
||||||
@ -499,7 +460,6 @@ public class PetApi {
|
|||||||
postBody = httpEntity;
|
postBody = httpEntity;
|
||||||
} else {
|
} else {
|
||||||
// normal form params
|
// normal form params
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
String[] authNames = new String[] { "petstore_auth" };
|
String[] authNames = new String[] { "petstore_auth" };
|
||||||
@ -548,12 +508,9 @@ public class PetApi {
|
|||||||
// form params
|
// form params
|
||||||
Map<String, String> formParams = new HashMap<String, String>();
|
Map<String, String> formParams = new HashMap<String, String>();
|
||||||
|
|
||||||
|
|
||||||
queryParams.addAll(ApiInvoker.parameterToPairs("multi", "status", status));
|
queryParams.addAll(ApiInvoker.parameterToPairs("multi", "status", status));
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
String[] contentTypes = {
|
String[] contentTypes = {
|
||||||
|
|
||||||
};
|
};
|
||||||
@ -568,7 +525,6 @@ public class PetApi {
|
|||||||
postBody = httpEntity;
|
postBody = httpEntity;
|
||||||
} else {
|
} else {
|
||||||
// normal form params
|
// normal form params
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
String[] authNames = new String[] { "petstore_auth" };
|
String[] authNames = new String[] { "petstore_auth" };
|
||||||
@ -578,16 +534,11 @@ public class PetApi {
|
|||||||
new Response.Listener<String>() {
|
new Response.Listener<String>() {
|
||||||
@Override
|
@Override
|
||||||
public void onResponse(String localVarResponse) {
|
public void onResponse(String localVarResponse) {
|
||||||
|
|
||||||
try {
|
try {
|
||||||
responseListener.onResponse((List<Pet>) ApiInvoker.deserialize(localVarResponse, "array", Pet.class));
|
responseListener.onResponse((List<Pet>) ApiInvoker.deserialize(localVarResponse, "array", Pet.class));
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
} catch (ApiException exception) {
|
} catch (ApiException exception) {
|
||||||
errorListener.onErrorResponse(new VolleyError(exception));
|
errorListener.onErrorResponse(new VolleyError(exception));
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}, new Response.ErrorListener() {
|
}, new Response.ErrorListener() {
|
||||||
@Override
|
@Override
|
||||||
@ -599,7 +550,6 @@ public class PetApi {
|
|||||||
errorListener.onErrorResponse(new VolleyError(ex));
|
errorListener.onErrorResponse(new VolleyError(ex));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 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.
|
||||||
@ -620,12 +570,9 @@ public class PetApi {
|
|||||||
// form params
|
// form params
|
||||||
Map<String, String> formParams = new HashMap<String, String>();
|
Map<String, String> formParams = new HashMap<String, String>();
|
||||||
|
|
||||||
|
|
||||||
queryParams.addAll(ApiInvoker.parameterToPairs("multi", "tags", tags));
|
queryParams.addAll(ApiInvoker.parameterToPairs("multi", "tags", tags));
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
String[] contentTypes = {
|
String[] contentTypes = {
|
||||||
|
|
||||||
};
|
};
|
||||||
@ -640,7 +587,6 @@ public class PetApi {
|
|||||||
postBody = httpEntity;
|
postBody = httpEntity;
|
||||||
} else {
|
} else {
|
||||||
// normal form params
|
// normal form params
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
String[] authNames = new String[] { "petstore_auth" };
|
String[] authNames = new String[] { "petstore_auth" };
|
||||||
@ -689,12 +635,9 @@ public class PetApi {
|
|||||||
// form params
|
// form params
|
||||||
Map<String, String> formParams = new HashMap<String, String>();
|
Map<String, String> formParams = new HashMap<String, String>();
|
||||||
|
|
||||||
|
|
||||||
queryParams.addAll(ApiInvoker.parameterToPairs("multi", "tags", tags));
|
queryParams.addAll(ApiInvoker.parameterToPairs("multi", "tags", tags));
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
String[] contentTypes = {
|
String[] contentTypes = {
|
||||||
|
|
||||||
};
|
};
|
||||||
@ -709,7 +652,6 @@ public class PetApi {
|
|||||||
postBody = httpEntity;
|
postBody = httpEntity;
|
||||||
} else {
|
} else {
|
||||||
// normal form params
|
// normal form params
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
String[] authNames = new String[] { "petstore_auth" };
|
String[] authNames = new String[] { "petstore_auth" };
|
||||||
@ -719,16 +661,11 @@ public class PetApi {
|
|||||||
new Response.Listener<String>() {
|
new Response.Listener<String>() {
|
||||||
@Override
|
@Override
|
||||||
public void onResponse(String localVarResponse) {
|
public void onResponse(String localVarResponse) {
|
||||||
|
|
||||||
try {
|
try {
|
||||||
responseListener.onResponse((List<Pet>) ApiInvoker.deserialize(localVarResponse, "array", Pet.class));
|
responseListener.onResponse((List<Pet>) ApiInvoker.deserialize(localVarResponse, "array", Pet.class));
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
} catch (ApiException exception) {
|
} catch (ApiException exception) {
|
||||||
errorListener.onErrorResponse(new VolleyError(exception));
|
errorListener.onErrorResponse(new VolleyError(exception));
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}, new Response.ErrorListener() {
|
}, new Response.ErrorListener() {
|
||||||
@Override
|
@Override
|
||||||
@ -740,7 +677,6 @@ public class PetApi {
|
|||||||
errorListener.onErrorResponse(new VolleyError(ex));
|
errorListener.onErrorResponse(new VolleyError(ex));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Find pet by ID
|
* Find pet by ID
|
||||||
* Returns a pet when ID < 10. ID > 10 or nonintegers will simulate API error conditions
|
* Returns a pet when ID < 10. ID > 10 or nonintegers will simulate API error conditions
|
||||||
@ -769,8 +705,6 @@ public class PetApi {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
String[] contentTypes = {
|
String[] contentTypes = {
|
||||||
|
|
||||||
};
|
};
|
||||||
@ -785,7 +719,6 @@ public class PetApi {
|
|||||||
postBody = httpEntity;
|
postBody = httpEntity;
|
||||||
} else {
|
} else {
|
||||||
// normal form params
|
// normal form params
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
String[] authNames = new String[] { "petstore_auth", "api_key" };
|
String[] authNames = new String[] { "petstore_auth", "api_key" };
|
||||||
@ -842,8 +775,6 @@ public class PetApi {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
String[] contentTypes = {
|
String[] contentTypes = {
|
||||||
|
|
||||||
};
|
};
|
||||||
@ -858,7 +789,6 @@ public class PetApi {
|
|||||||
postBody = httpEntity;
|
postBody = httpEntity;
|
||||||
} else {
|
} else {
|
||||||
// normal form params
|
// normal form params
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
String[] authNames = new String[] { "petstore_auth", "api_key" };
|
String[] authNames = new String[] { "petstore_auth", "api_key" };
|
||||||
@ -868,16 +798,11 @@ public class PetApi {
|
|||||||
new Response.Listener<String>() {
|
new Response.Listener<String>() {
|
||||||
@Override
|
@Override
|
||||||
public void onResponse(String localVarResponse) {
|
public void onResponse(String localVarResponse) {
|
||||||
|
|
||||||
try {
|
try {
|
||||||
responseListener.onResponse((Pet) ApiInvoker.deserialize(localVarResponse, "", Pet.class));
|
responseListener.onResponse((Pet) ApiInvoker.deserialize(localVarResponse, "", Pet.class));
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
} catch (ApiException exception) {
|
} catch (ApiException exception) {
|
||||||
errorListener.onErrorResponse(new VolleyError(exception));
|
errorListener.onErrorResponse(new VolleyError(exception));
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}, new Response.ErrorListener() {
|
}, new Response.ErrorListener() {
|
||||||
@Override
|
@Override
|
||||||
@ -889,7 +814,6 @@ public class PetApi {
|
|||||||
errorListener.onErrorResponse(new VolleyError(ex));
|
errorListener.onErrorResponse(new VolleyError(ex));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Fake endpoint to test inline arbitrary object return by 'Find pet by ID'
|
* Fake endpoint to test inline arbitrary object return by 'Find pet by ID'
|
||||||
* Returns a pet when ID < 10. ID > 10 or nonintegers will simulate API error conditions
|
* Returns a pet when ID < 10. ID > 10 or nonintegers will simulate API error conditions
|
||||||
@ -907,7 +831,7 @@ public class PetApi {
|
|||||||
|
|
||||||
|
|
||||||
// create path and map variables
|
// create path and map variables
|
||||||
String path = "/pet/{petId}?response=inline_arbitrary_object".replaceAll("\\{format\\}","json").replaceAll("\\{" + "petId" + "\\}", apiInvoker.escapeString(petId.toString()));
|
String path = "/pet/{petId}?response=inline_arbitrary_object".replaceAll("\\{format\\}","json").replaceAll("\\{" + "petId" + "\\}", apiInvoker.escapeString(petId.toString()));
|
||||||
|
|
||||||
// query params
|
// query params
|
||||||
List<Pair> queryParams = new ArrayList<Pair>();
|
List<Pair> queryParams = new ArrayList<Pair>();
|
||||||
@ -918,8 +842,6 @@ public class PetApi {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
String[] contentTypes = {
|
String[] contentTypes = {
|
||||||
|
|
||||||
};
|
};
|
||||||
@ -934,7 +856,6 @@ public class PetApi {
|
|||||||
postBody = httpEntity;
|
postBody = httpEntity;
|
||||||
} else {
|
} else {
|
||||||
// normal form params
|
// normal form params
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
String[] authNames = new String[] { "petstore_auth", "api_key" };
|
String[] authNames = new String[] { "petstore_auth", "api_key" };
|
||||||
@ -980,7 +901,7 @@ public class PetApi {
|
|||||||
|
|
||||||
|
|
||||||
// create path and map variables
|
// create path and map variables
|
||||||
String path = "/pet/{petId}?response=inline_arbitrary_object".replaceAll("\\{format\\}","json").replaceAll("\\{" + "petId" + "\\}", apiInvoker.escapeString(petId.toString()));
|
String path = "/pet/{petId}?response=inline_arbitrary_object".replaceAll("\\{format\\}","json").replaceAll("\\{" + "petId" + "\\}", apiInvoker.escapeString(petId.toString()));
|
||||||
|
|
||||||
// query params
|
// query params
|
||||||
List<Pair> queryParams = new ArrayList<Pair>();
|
List<Pair> queryParams = new ArrayList<Pair>();
|
||||||
@ -991,8 +912,6 @@ public class PetApi {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
String[] contentTypes = {
|
String[] contentTypes = {
|
||||||
|
|
||||||
};
|
};
|
||||||
@ -1007,7 +926,6 @@ public class PetApi {
|
|||||||
postBody = httpEntity;
|
postBody = httpEntity;
|
||||||
} else {
|
} else {
|
||||||
// normal form params
|
// normal form params
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
String[] authNames = new String[] { "petstore_auth", "api_key" };
|
String[] authNames = new String[] { "petstore_auth", "api_key" };
|
||||||
@ -1017,16 +935,11 @@ public class PetApi {
|
|||||||
new Response.Listener<String>() {
|
new Response.Listener<String>() {
|
||||||
@Override
|
@Override
|
||||||
public void onResponse(String localVarResponse) {
|
public void onResponse(String localVarResponse) {
|
||||||
|
|
||||||
try {
|
try {
|
||||||
responseListener.onResponse((InlineResponse200) ApiInvoker.deserialize(localVarResponse, "", InlineResponse200.class));
|
responseListener.onResponse((InlineResponse200) ApiInvoker.deserialize(localVarResponse, "", InlineResponse200.class));
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
} catch (ApiException exception) {
|
} catch (ApiException exception) {
|
||||||
errorListener.onErrorResponse(new VolleyError(exception));
|
errorListener.onErrorResponse(new VolleyError(exception));
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}, new Response.ErrorListener() {
|
}, new Response.ErrorListener() {
|
||||||
@Override
|
@Override
|
||||||
@ -1038,7 +951,6 @@ public class PetApi {
|
|||||||
errorListener.onErrorResponse(new VolleyError(ex));
|
errorListener.onErrorResponse(new VolleyError(ex));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Fake endpoint to test byte array return by 'Find pet by ID'
|
* Fake endpoint to test byte array return by 'Find pet by ID'
|
||||||
* Returns a pet when ID < 10. ID > 10 or nonintegers will simulate API error conditions
|
* Returns a pet when ID < 10. ID > 10 or nonintegers will simulate API error conditions
|
||||||
@ -1056,7 +968,7 @@ public class PetApi {
|
|||||||
|
|
||||||
|
|
||||||
// create path and map variables
|
// create path and map variables
|
||||||
String path = "/pet/{petId}?testing_byte_array=true".replaceAll("\\{format\\}","json").replaceAll("\\{" + "petId" + "\\}", apiInvoker.escapeString(petId.toString()));
|
String path = "/pet/{petId}?testing_byte_array=true".replaceAll("\\{format\\}","json").replaceAll("\\{" + "petId" + "\\}", apiInvoker.escapeString(petId.toString()));
|
||||||
|
|
||||||
// query params
|
// query params
|
||||||
List<Pair> queryParams = new ArrayList<Pair>();
|
List<Pair> queryParams = new ArrayList<Pair>();
|
||||||
@ -1067,8 +979,6 @@ public class PetApi {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
String[] contentTypes = {
|
String[] contentTypes = {
|
||||||
|
|
||||||
};
|
};
|
||||||
@ -1083,7 +993,6 @@ public class PetApi {
|
|||||||
postBody = httpEntity;
|
postBody = httpEntity;
|
||||||
} else {
|
} else {
|
||||||
// normal form params
|
// normal form params
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
String[] authNames = new String[] { "petstore_auth", "api_key" };
|
String[] authNames = new String[] { "petstore_auth", "api_key" };
|
||||||
@ -1129,7 +1038,7 @@ public class PetApi {
|
|||||||
|
|
||||||
|
|
||||||
// create path and map variables
|
// create path and map variables
|
||||||
String path = "/pet/{petId}?testing_byte_array=true".replaceAll("\\{format\\}","json").replaceAll("\\{" + "petId" + "\\}", apiInvoker.escapeString(petId.toString()));
|
String path = "/pet/{petId}?testing_byte_array=true".replaceAll("\\{format\\}","json").replaceAll("\\{" + "petId" + "\\}", apiInvoker.escapeString(petId.toString()));
|
||||||
|
|
||||||
// query params
|
// query params
|
||||||
List<Pair> queryParams = new ArrayList<Pair>();
|
List<Pair> queryParams = new ArrayList<Pair>();
|
||||||
@ -1140,8 +1049,6 @@ public class PetApi {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
String[] contentTypes = {
|
String[] contentTypes = {
|
||||||
|
|
||||||
};
|
};
|
||||||
@ -1156,7 +1063,6 @@ public class PetApi {
|
|||||||
postBody = httpEntity;
|
postBody = httpEntity;
|
||||||
} else {
|
} else {
|
||||||
// normal form params
|
// normal form params
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
String[] authNames = new String[] { "petstore_auth", "api_key" };
|
String[] authNames = new String[] { "petstore_auth", "api_key" };
|
||||||
@ -1166,16 +1072,11 @@ public class PetApi {
|
|||||||
new Response.Listener<String>() {
|
new Response.Listener<String>() {
|
||||||
@Override
|
@Override
|
||||||
public void onResponse(String localVarResponse) {
|
public void onResponse(String localVarResponse) {
|
||||||
|
|
||||||
try {
|
try {
|
||||||
responseListener.onResponse((byte[]) ApiInvoker.deserialize(localVarResponse, "", byte[].class));
|
responseListener.onResponse((byte[]) ApiInvoker.deserialize(localVarResponse, "", byte[].class));
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
} catch (ApiException exception) {
|
} catch (ApiException exception) {
|
||||||
errorListener.onErrorResponse(new VolleyError(exception));
|
errorListener.onErrorResponse(new VolleyError(exception));
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}, new Response.ErrorListener() {
|
}, new Response.ErrorListener() {
|
||||||
@Override
|
@Override
|
||||||
@ -1187,7 +1088,6 @@ public class PetApi {
|
|||||||
errorListener.onErrorResponse(new VolleyError(ex));
|
errorListener.onErrorResponse(new VolleyError(ex));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Update an existing pet
|
* Update an existing pet
|
||||||
*
|
*
|
||||||
@ -1210,8 +1110,6 @@ public class PetApi {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
String[] contentTypes = {
|
String[] contentTypes = {
|
||||||
"application/json","application/xml"
|
"application/json","application/xml"
|
||||||
};
|
};
|
||||||
@ -1226,7 +1124,6 @@ public class PetApi {
|
|||||||
postBody = httpEntity;
|
postBody = httpEntity;
|
||||||
} else {
|
} else {
|
||||||
// normal form params
|
// normal form params
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
String[] authNames = new String[] { "petstore_auth" };
|
String[] authNames = new String[] { "petstore_auth" };
|
||||||
@ -1277,8 +1174,6 @@ public class PetApi {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
String[] contentTypes = {
|
String[] contentTypes = {
|
||||||
"application/json","application/xml"
|
"application/json","application/xml"
|
||||||
};
|
};
|
||||||
@ -1293,7 +1188,6 @@ public class PetApi {
|
|||||||
postBody = httpEntity;
|
postBody = httpEntity;
|
||||||
} else {
|
} else {
|
||||||
// normal form params
|
// normal form params
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
String[] authNames = new String[] { "petstore_auth" };
|
String[] authNames = new String[] { "petstore_auth" };
|
||||||
@ -1303,11 +1197,7 @@ public class PetApi {
|
|||||||
new Response.Listener<String>() {
|
new Response.Listener<String>() {
|
||||||
@Override
|
@Override
|
||||||
public void onResponse(String localVarResponse) {
|
public void onResponse(String localVarResponse) {
|
||||||
|
|
||||||
|
|
||||||
responseListener.onResponse(localVarResponse);
|
responseListener.onResponse(localVarResponse);
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}, new Response.ErrorListener() {
|
}, new Response.ErrorListener() {
|
||||||
@Override
|
@Override
|
||||||
@ -1319,7 +1209,6 @@ public class PetApi {
|
|||||||
errorListener.onErrorResponse(new VolleyError(ex));
|
errorListener.onErrorResponse(new VolleyError(ex));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Updates a pet in the store with form data
|
* Updates a pet in the store with form data
|
||||||
*
|
*
|
||||||
@ -1350,8 +1239,6 @@ public class PetApi {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
String[] contentTypes = {
|
String[] contentTypes = {
|
||||||
"application/x-www-form-urlencoded"
|
"application/x-www-form-urlencoded"
|
||||||
};
|
};
|
||||||
@ -1375,8 +1262,7 @@ public class PetApi {
|
|||||||
} else {
|
} else {
|
||||||
// normal form params
|
// normal form params
|
||||||
formParams.put("name", ApiInvoker.parameterToString(name));
|
formParams.put("name", ApiInvoker.parameterToString(name));
|
||||||
formParams.put("status", ApiInvoker.parameterToString(status));
|
formParams.put("status", ApiInvoker.parameterToString(status));
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
String[] authNames = new String[] { "petstore_auth" };
|
String[] authNames = new String[] { "petstore_auth" };
|
||||||
@ -1433,8 +1319,6 @@ public class PetApi {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
String[] contentTypes = {
|
String[] contentTypes = {
|
||||||
"application/x-www-form-urlencoded"
|
"application/x-www-form-urlencoded"
|
||||||
};
|
};
|
||||||
@ -1458,8 +1342,7 @@ public class PetApi {
|
|||||||
} else {
|
} else {
|
||||||
// normal form params
|
// normal form params
|
||||||
formParams.put("name", ApiInvoker.parameterToString(name));
|
formParams.put("name", ApiInvoker.parameterToString(name));
|
||||||
formParams.put("status", ApiInvoker.parameterToString(status));
|
formParams.put("status", ApiInvoker.parameterToString(status));
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
String[] authNames = new String[] { "petstore_auth" };
|
String[] authNames = new String[] { "petstore_auth" };
|
||||||
@ -1469,11 +1352,7 @@ public class PetApi {
|
|||||||
new Response.Listener<String>() {
|
new Response.Listener<String>() {
|
||||||
@Override
|
@Override
|
||||||
public void onResponse(String localVarResponse) {
|
public void onResponse(String localVarResponse) {
|
||||||
|
|
||||||
|
|
||||||
responseListener.onResponse(localVarResponse);
|
responseListener.onResponse(localVarResponse);
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}, new Response.ErrorListener() {
|
}, new Response.ErrorListener() {
|
||||||
@Override
|
@Override
|
||||||
@ -1485,7 +1364,6 @@ public class PetApi {
|
|||||||
errorListener.onErrorResponse(new VolleyError(ex));
|
errorListener.onErrorResponse(new VolleyError(ex));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* uploads an image
|
* uploads an image
|
||||||
*
|
*
|
||||||
@ -1516,8 +1394,6 @@ public class PetApi {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
String[] contentTypes = {
|
String[] contentTypes = {
|
||||||
"multipart/form-data"
|
"multipart/form-data"
|
||||||
};
|
};
|
||||||
@ -1542,7 +1418,6 @@ public class PetApi {
|
|||||||
// normal form params
|
// normal form params
|
||||||
formParams.put("additionalMetadata", ApiInvoker.parameterToString(additionalMetadata));
|
formParams.put("additionalMetadata", ApiInvoker.parameterToString(additionalMetadata));
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
String[] authNames = new String[] { "petstore_auth" };
|
String[] authNames = new String[] { "petstore_auth" };
|
||||||
@ -1599,8 +1474,6 @@ public class PetApi {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
String[] contentTypes = {
|
String[] contentTypes = {
|
||||||
"multipart/form-data"
|
"multipart/form-data"
|
||||||
};
|
};
|
||||||
@ -1625,7 +1498,6 @@ public class PetApi {
|
|||||||
// normal form params
|
// normal form params
|
||||||
formParams.put("additionalMetadata", ApiInvoker.parameterToString(additionalMetadata));
|
formParams.put("additionalMetadata", ApiInvoker.parameterToString(additionalMetadata));
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
String[] authNames = new String[] { "petstore_auth" };
|
String[] authNames = new String[] { "petstore_auth" };
|
||||||
@ -1635,11 +1507,7 @@ public class PetApi {
|
|||||||
new Response.Listener<String>() {
|
new Response.Listener<String>() {
|
||||||
@Override
|
@Override
|
||||||
public void onResponse(String localVarResponse) {
|
public void onResponse(String localVarResponse) {
|
||||||
|
|
||||||
|
|
||||||
responseListener.onResponse(localVarResponse);
|
responseListener.onResponse(localVarResponse);
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}, new Response.ErrorListener() {
|
}, new Response.ErrorListener() {
|
||||||
@Override
|
@Override
|
||||||
@ -1651,5 +1519,4 @@ public class PetApi {
|
|||||||
errorListener.onErrorResponse(new VolleyError(ex));
|
errorListener.onErrorResponse(new VolleyError(ex));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -44,7 +44,6 @@ public class StoreApi {
|
|||||||
return basePath;
|
return basePath;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Delete purchase order by ID
|
* Delete purchase order by ID
|
||||||
* For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors
|
* For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors
|
||||||
@ -73,8 +72,6 @@ public class StoreApi {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
String[] contentTypes = {
|
String[] contentTypes = {
|
||||||
|
|
||||||
};
|
};
|
||||||
@ -89,7 +86,6 @@ public class StoreApi {
|
|||||||
postBody = httpEntity;
|
postBody = httpEntity;
|
||||||
} else {
|
} else {
|
||||||
// normal form params
|
// normal form params
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
String[] authNames = new String[] { };
|
String[] authNames = new String[] { };
|
||||||
@ -146,8 +142,6 @@ public class StoreApi {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
String[] contentTypes = {
|
String[] contentTypes = {
|
||||||
|
|
||||||
};
|
};
|
||||||
@ -162,7 +156,6 @@ public class StoreApi {
|
|||||||
postBody = httpEntity;
|
postBody = httpEntity;
|
||||||
} else {
|
} else {
|
||||||
// normal form params
|
// normal form params
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
String[] authNames = new String[] { };
|
String[] authNames = new String[] { };
|
||||||
@ -172,11 +165,7 @@ public class StoreApi {
|
|||||||
new Response.Listener<String>() {
|
new Response.Listener<String>() {
|
||||||
@Override
|
@Override
|
||||||
public void onResponse(String localVarResponse) {
|
public void onResponse(String localVarResponse) {
|
||||||
|
|
||||||
|
|
||||||
responseListener.onResponse(localVarResponse);
|
responseListener.onResponse(localVarResponse);
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}, new Response.ErrorListener() {
|
}, new Response.ErrorListener() {
|
||||||
@Override
|
@Override
|
||||||
@ -188,7 +177,6 @@ public class StoreApi {
|
|||||||
errorListener.onErrorResponse(new VolleyError(ex));
|
errorListener.onErrorResponse(new VolleyError(ex));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Finds orders by status
|
* Finds orders by status
|
||||||
* A single status value can be provided as a string
|
* A single status value can be provided as a string
|
||||||
@ -209,12 +197,9 @@ public class StoreApi {
|
|||||||
// form params
|
// form params
|
||||||
Map<String, String> formParams = new HashMap<String, String>();
|
Map<String, String> formParams = new HashMap<String, String>();
|
||||||
|
|
||||||
|
|
||||||
queryParams.addAll(ApiInvoker.parameterToPairs("", "status", status));
|
queryParams.addAll(ApiInvoker.parameterToPairs("", "status", status));
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
String[] contentTypes = {
|
String[] contentTypes = {
|
||||||
|
|
||||||
};
|
};
|
||||||
@ -229,7 +214,6 @@ public class StoreApi {
|
|||||||
postBody = httpEntity;
|
postBody = httpEntity;
|
||||||
} else {
|
} else {
|
||||||
// normal form params
|
// normal form params
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
String[] authNames = new String[] { "test_api_client_id", "test_api_client_secret" };
|
String[] authNames = new String[] { "test_api_client_id", "test_api_client_secret" };
|
||||||
@ -278,12 +262,9 @@ public class StoreApi {
|
|||||||
// form params
|
// form params
|
||||||
Map<String, String> formParams = new HashMap<String, String>();
|
Map<String, String> formParams = new HashMap<String, String>();
|
||||||
|
|
||||||
|
|
||||||
queryParams.addAll(ApiInvoker.parameterToPairs("", "status", status));
|
queryParams.addAll(ApiInvoker.parameterToPairs("", "status", status));
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
String[] contentTypes = {
|
String[] contentTypes = {
|
||||||
|
|
||||||
};
|
};
|
||||||
@ -298,7 +279,6 @@ public class StoreApi {
|
|||||||
postBody = httpEntity;
|
postBody = httpEntity;
|
||||||
} else {
|
} else {
|
||||||
// normal form params
|
// normal form params
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
String[] authNames = new String[] { "test_api_client_id", "test_api_client_secret" };
|
String[] authNames = new String[] { "test_api_client_id", "test_api_client_secret" };
|
||||||
@ -308,16 +288,11 @@ public class StoreApi {
|
|||||||
new Response.Listener<String>() {
|
new Response.Listener<String>() {
|
||||||
@Override
|
@Override
|
||||||
public void onResponse(String localVarResponse) {
|
public void onResponse(String localVarResponse) {
|
||||||
|
|
||||||
try {
|
try {
|
||||||
responseListener.onResponse((List<Order>) ApiInvoker.deserialize(localVarResponse, "array", Order.class));
|
responseListener.onResponse((List<Order>) ApiInvoker.deserialize(localVarResponse, "array", Order.class));
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
} catch (ApiException exception) {
|
} catch (ApiException exception) {
|
||||||
errorListener.onErrorResponse(new VolleyError(exception));
|
errorListener.onErrorResponse(new VolleyError(exception));
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}, new Response.ErrorListener() {
|
}, new Response.ErrorListener() {
|
||||||
@Override
|
@Override
|
||||||
@ -329,7 +304,6 @@ public class StoreApi {
|
|||||||
errorListener.onErrorResponse(new VolleyError(ex));
|
errorListener.onErrorResponse(new VolleyError(ex));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 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
|
||||||
@ -351,8 +325,6 @@ public class StoreApi {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
String[] contentTypes = {
|
String[] contentTypes = {
|
||||||
|
|
||||||
};
|
};
|
||||||
@ -367,7 +339,6 @@ public class StoreApi {
|
|||||||
postBody = httpEntity;
|
postBody = httpEntity;
|
||||||
} else {
|
} else {
|
||||||
// normal form params
|
// normal form params
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
String[] authNames = new String[] { "api_key" };
|
String[] authNames = new String[] { "api_key" };
|
||||||
@ -418,8 +389,6 @@ public class StoreApi {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
String[] contentTypes = {
|
String[] contentTypes = {
|
||||||
|
|
||||||
};
|
};
|
||||||
@ -434,7 +403,6 @@ public class StoreApi {
|
|||||||
postBody = httpEntity;
|
postBody = httpEntity;
|
||||||
} else {
|
} else {
|
||||||
// normal form params
|
// normal form params
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
String[] authNames = new String[] { "api_key" };
|
String[] authNames = new String[] { "api_key" };
|
||||||
@ -444,16 +412,11 @@ public class StoreApi {
|
|||||||
new Response.Listener<String>() {
|
new Response.Listener<String>() {
|
||||||
@Override
|
@Override
|
||||||
public void onResponse(String localVarResponse) {
|
public void onResponse(String localVarResponse) {
|
||||||
|
|
||||||
try {
|
try {
|
||||||
responseListener.onResponse((Map<String, Integer>) ApiInvoker.deserialize(localVarResponse, "map", Map.class));
|
responseListener.onResponse((Map<String, Integer>) ApiInvoker.deserialize(localVarResponse, "map", Map.class));
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
} catch (ApiException exception) {
|
} catch (ApiException exception) {
|
||||||
errorListener.onErrorResponse(new VolleyError(exception));
|
errorListener.onErrorResponse(new VolleyError(exception));
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}, new Response.ErrorListener() {
|
}, new Response.ErrorListener() {
|
||||||
@Override
|
@Override
|
||||||
@ -465,7 +428,6 @@ public class StoreApi {
|
|||||||
errorListener.onErrorResponse(new VolleyError(ex));
|
errorListener.onErrorResponse(new VolleyError(ex));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Fake endpoint to test arbitrary object return by 'Get inventory'
|
* Fake endpoint to test arbitrary object return by 'Get inventory'
|
||||||
* Returns an arbitrary object which is actually a map of status codes to quantities
|
* Returns an arbitrary object which is actually a map of status codes to quantities
|
||||||
@ -476,7 +438,7 @@ public class StoreApi {
|
|||||||
|
|
||||||
|
|
||||||
// create path and map variables
|
// create path and map variables
|
||||||
String path = "/store/inventory?response=arbitrary_object".replaceAll("\\{format\\}","json");
|
String path = "/store/inventory?response=arbitrary_object".replaceAll("\\{format\\}","json");
|
||||||
|
|
||||||
// query params
|
// query params
|
||||||
List<Pair> queryParams = new ArrayList<Pair>();
|
List<Pair> queryParams = new ArrayList<Pair>();
|
||||||
@ -487,8 +449,6 @@ public class StoreApi {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
String[] contentTypes = {
|
String[] contentTypes = {
|
||||||
|
|
||||||
};
|
};
|
||||||
@ -503,7 +463,6 @@ public class StoreApi {
|
|||||||
postBody = httpEntity;
|
postBody = httpEntity;
|
||||||
} else {
|
} else {
|
||||||
// normal form params
|
// normal form params
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
String[] authNames = new String[] { "api_key" };
|
String[] authNames = new String[] { "api_key" };
|
||||||
@ -543,7 +502,7 @@ public class StoreApi {
|
|||||||
|
|
||||||
|
|
||||||
// create path and map variables
|
// create path and map variables
|
||||||
String path = "/store/inventory?response=arbitrary_object".replaceAll("\\{format\\}","json");
|
String path = "/store/inventory?response=arbitrary_object".replaceAll("\\{format\\}","json");
|
||||||
|
|
||||||
// query params
|
// query params
|
||||||
List<Pair> queryParams = new ArrayList<Pair>();
|
List<Pair> queryParams = new ArrayList<Pair>();
|
||||||
@ -554,8 +513,6 @@ public class StoreApi {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
String[] contentTypes = {
|
String[] contentTypes = {
|
||||||
|
|
||||||
};
|
};
|
||||||
@ -570,7 +527,6 @@ public class StoreApi {
|
|||||||
postBody = httpEntity;
|
postBody = httpEntity;
|
||||||
} else {
|
} else {
|
||||||
// normal form params
|
// normal form params
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
String[] authNames = new String[] { "api_key" };
|
String[] authNames = new String[] { "api_key" };
|
||||||
@ -580,16 +536,11 @@ public class StoreApi {
|
|||||||
new Response.Listener<String>() {
|
new Response.Listener<String>() {
|
||||||
@Override
|
@Override
|
||||||
public void onResponse(String localVarResponse) {
|
public void onResponse(String localVarResponse) {
|
||||||
|
|
||||||
try {
|
try {
|
||||||
responseListener.onResponse((Object) ApiInvoker.deserialize(localVarResponse, "", Object.class));
|
responseListener.onResponse((Object) ApiInvoker.deserialize(localVarResponse, "", Object.class));
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
} catch (ApiException exception) {
|
} catch (ApiException exception) {
|
||||||
errorListener.onErrorResponse(new VolleyError(exception));
|
errorListener.onErrorResponse(new VolleyError(exception));
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}, new Response.ErrorListener() {
|
}, new Response.ErrorListener() {
|
||||||
@Override
|
@Override
|
||||||
@ -601,10 +552,9 @@ public class StoreApi {
|
|||||||
errorListener.onErrorResponse(new VolleyError(ex));
|
errorListener.onErrorResponse(new VolleyError(ex));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Find purchase order by ID
|
* Find purchase order by ID
|
||||||
* For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions
|
* For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions
|
||||||
* @param orderId ID of pet that needs to be fetched
|
* @param orderId ID of pet that needs to be fetched
|
||||||
* @return Order
|
* @return Order
|
||||||
*/
|
*/
|
||||||
@ -630,8 +580,6 @@ public class StoreApi {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
String[] contentTypes = {
|
String[] contentTypes = {
|
||||||
|
|
||||||
};
|
};
|
||||||
@ -646,7 +594,6 @@ public class StoreApi {
|
|||||||
postBody = httpEntity;
|
postBody = httpEntity;
|
||||||
} else {
|
} else {
|
||||||
// normal form params
|
// normal form params
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
String[] authNames = new String[] { "test_api_key_query", "test_api_key_header" };
|
String[] authNames = new String[] { "test_api_key_query", "test_api_key_header" };
|
||||||
@ -677,7 +624,7 @@ public class StoreApi {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Find purchase order by ID
|
* Find purchase order by ID
|
||||||
* For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions
|
* For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions
|
||||||
* @param orderId ID of pet that needs to be fetched
|
* @param orderId ID of pet that needs to be fetched
|
||||||
*/
|
*/
|
||||||
public void getOrderById (String orderId, final Response.Listener<Order> responseListener, final Response.ErrorListener errorListener) {
|
public void getOrderById (String orderId, final Response.Listener<Order> responseListener, final Response.ErrorListener errorListener) {
|
||||||
@ -703,8 +650,6 @@ public class StoreApi {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
String[] contentTypes = {
|
String[] contentTypes = {
|
||||||
|
|
||||||
};
|
};
|
||||||
@ -719,7 +664,6 @@ public class StoreApi {
|
|||||||
postBody = httpEntity;
|
postBody = httpEntity;
|
||||||
} else {
|
} else {
|
||||||
// normal form params
|
// normal form params
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
String[] authNames = new String[] { "test_api_key_query", "test_api_key_header" };
|
String[] authNames = new String[] { "test_api_key_query", "test_api_key_header" };
|
||||||
@ -729,16 +673,11 @@ public class StoreApi {
|
|||||||
new Response.Listener<String>() {
|
new Response.Listener<String>() {
|
||||||
@Override
|
@Override
|
||||||
public void onResponse(String localVarResponse) {
|
public void onResponse(String localVarResponse) {
|
||||||
|
|
||||||
try {
|
try {
|
||||||
responseListener.onResponse((Order) ApiInvoker.deserialize(localVarResponse, "", Order.class));
|
responseListener.onResponse((Order) ApiInvoker.deserialize(localVarResponse, "", Order.class));
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
} catch (ApiException exception) {
|
} catch (ApiException exception) {
|
||||||
errorListener.onErrorResponse(new VolleyError(exception));
|
errorListener.onErrorResponse(new VolleyError(exception));
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}, new Response.ErrorListener() {
|
}, new Response.ErrorListener() {
|
||||||
@Override
|
@Override
|
||||||
@ -750,7 +689,6 @@ public class StoreApi {
|
|||||||
errorListener.onErrorResponse(new VolleyError(ex));
|
errorListener.onErrorResponse(new VolleyError(ex));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Place an order for a pet
|
* Place an order for a pet
|
||||||
*
|
*
|
||||||
@ -773,8 +711,6 @@ public class StoreApi {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
String[] contentTypes = {
|
String[] contentTypes = {
|
||||||
|
|
||||||
};
|
};
|
||||||
@ -789,7 +725,6 @@ public class StoreApi {
|
|||||||
postBody = httpEntity;
|
postBody = httpEntity;
|
||||||
} else {
|
} else {
|
||||||
// normal form params
|
// normal form params
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
String[] authNames = new String[] { "test_api_client_id", "test_api_client_secret" };
|
String[] authNames = new String[] { "test_api_client_id", "test_api_client_secret" };
|
||||||
@ -840,8 +775,6 @@ public class StoreApi {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
String[] contentTypes = {
|
String[] contentTypes = {
|
||||||
|
|
||||||
};
|
};
|
||||||
@ -856,7 +789,6 @@ public class StoreApi {
|
|||||||
postBody = httpEntity;
|
postBody = httpEntity;
|
||||||
} else {
|
} else {
|
||||||
// normal form params
|
// normal form params
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
String[] authNames = new String[] { "test_api_client_id", "test_api_client_secret" };
|
String[] authNames = new String[] { "test_api_client_id", "test_api_client_secret" };
|
||||||
@ -866,16 +798,11 @@ public class StoreApi {
|
|||||||
new Response.Listener<String>() {
|
new Response.Listener<String>() {
|
||||||
@Override
|
@Override
|
||||||
public void onResponse(String localVarResponse) {
|
public void onResponse(String localVarResponse) {
|
||||||
|
|
||||||
try {
|
try {
|
||||||
responseListener.onResponse((Order) ApiInvoker.deserialize(localVarResponse, "", Order.class));
|
responseListener.onResponse((Order) ApiInvoker.deserialize(localVarResponse, "", Order.class));
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
} catch (ApiException exception) {
|
} catch (ApiException exception) {
|
||||||
errorListener.onErrorResponse(new VolleyError(exception));
|
errorListener.onErrorResponse(new VolleyError(exception));
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}, new Response.ErrorListener() {
|
}, new Response.ErrorListener() {
|
||||||
@Override
|
@Override
|
||||||
@ -887,5 +814,4 @@ public class StoreApi {
|
|||||||
errorListener.onErrorResponse(new VolleyError(ex));
|
errorListener.onErrorResponse(new VolleyError(ex));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -44,7 +44,6 @@ public class UserApi {
|
|||||||
return basePath;
|
return basePath;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create user
|
* Create user
|
||||||
* This can only be done by the logged in user.
|
* This can only be done by the logged in user.
|
||||||
@ -67,8 +66,6 @@ public class UserApi {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
String[] contentTypes = {
|
String[] contentTypes = {
|
||||||
|
|
||||||
};
|
};
|
||||||
@ -83,7 +80,6 @@ public class UserApi {
|
|||||||
postBody = httpEntity;
|
postBody = httpEntity;
|
||||||
} else {
|
} else {
|
||||||
// normal form params
|
// normal form params
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
String[] authNames = new String[] { };
|
String[] authNames = new String[] { };
|
||||||
@ -134,8 +130,6 @@ public class UserApi {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
String[] contentTypes = {
|
String[] contentTypes = {
|
||||||
|
|
||||||
};
|
};
|
||||||
@ -150,7 +144,6 @@ public class UserApi {
|
|||||||
postBody = httpEntity;
|
postBody = httpEntity;
|
||||||
} else {
|
} else {
|
||||||
// normal form params
|
// normal form params
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
String[] authNames = new String[] { };
|
String[] authNames = new String[] { };
|
||||||
@ -160,11 +153,7 @@ public class UserApi {
|
|||||||
new Response.Listener<String>() {
|
new Response.Listener<String>() {
|
||||||
@Override
|
@Override
|
||||||
public void onResponse(String localVarResponse) {
|
public void onResponse(String localVarResponse) {
|
||||||
|
|
||||||
|
|
||||||
responseListener.onResponse(localVarResponse);
|
responseListener.onResponse(localVarResponse);
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}, new Response.ErrorListener() {
|
}, new Response.ErrorListener() {
|
||||||
@Override
|
@Override
|
||||||
@ -176,7 +165,6 @@ public class UserApi {
|
|||||||
errorListener.onErrorResponse(new VolleyError(ex));
|
errorListener.onErrorResponse(new VolleyError(ex));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates list of users with given input array
|
* Creates list of users with given input array
|
||||||
*
|
*
|
||||||
@ -199,8 +187,6 @@ public class UserApi {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
String[] contentTypes = {
|
String[] contentTypes = {
|
||||||
|
|
||||||
};
|
};
|
||||||
@ -215,7 +201,6 @@ public class UserApi {
|
|||||||
postBody = httpEntity;
|
postBody = httpEntity;
|
||||||
} else {
|
} else {
|
||||||
// normal form params
|
// normal form params
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
String[] authNames = new String[] { };
|
String[] authNames = new String[] { };
|
||||||
@ -266,8 +251,6 @@ public class UserApi {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
String[] contentTypes = {
|
String[] contentTypes = {
|
||||||
|
|
||||||
};
|
};
|
||||||
@ -282,7 +265,6 @@ public class UserApi {
|
|||||||
postBody = httpEntity;
|
postBody = httpEntity;
|
||||||
} else {
|
} else {
|
||||||
// normal form params
|
// normal form params
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
String[] authNames = new String[] { };
|
String[] authNames = new String[] { };
|
||||||
@ -292,11 +274,7 @@ public class UserApi {
|
|||||||
new Response.Listener<String>() {
|
new Response.Listener<String>() {
|
||||||
@Override
|
@Override
|
||||||
public void onResponse(String localVarResponse) {
|
public void onResponse(String localVarResponse) {
|
||||||
|
|
||||||
|
|
||||||
responseListener.onResponse(localVarResponse);
|
responseListener.onResponse(localVarResponse);
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}, new Response.ErrorListener() {
|
}, new Response.ErrorListener() {
|
||||||
@Override
|
@Override
|
||||||
@ -308,7 +286,6 @@ public class UserApi {
|
|||||||
errorListener.onErrorResponse(new VolleyError(ex));
|
errorListener.onErrorResponse(new VolleyError(ex));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates list of users with given input array
|
* Creates list of users with given input array
|
||||||
*
|
*
|
||||||
@ -331,8 +308,6 @@ public class UserApi {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
String[] contentTypes = {
|
String[] contentTypes = {
|
||||||
|
|
||||||
};
|
};
|
||||||
@ -347,7 +322,6 @@ public class UserApi {
|
|||||||
postBody = httpEntity;
|
postBody = httpEntity;
|
||||||
} else {
|
} else {
|
||||||
// normal form params
|
// normal form params
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
String[] authNames = new String[] { };
|
String[] authNames = new String[] { };
|
||||||
@ -398,8 +372,6 @@ public class UserApi {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
String[] contentTypes = {
|
String[] contentTypes = {
|
||||||
|
|
||||||
};
|
};
|
||||||
@ -414,7 +386,6 @@ public class UserApi {
|
|||||||
postBody = httpEntity;
|
postBody = httpEntity;
|
||||||
} else {
|
} else {
|
||||||
// normal form params
|
// normal form params
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
String[] authNames = new String[] { };
|
String[] authNames = new String[] { };
|
||||||
@ -424,11 +395,7 @@ public class UserApi {
|
|||||||
new Response.Listener<String>() {
|
new Response.Listener<String>() {
|
||||||
@Override
|
@Override
|
||||||
public void onResponse(String localVarResponse) {
|
public void onResponse(String localVarResponse) {
|
||||||
|
|
||||||
|
|
||||||
responseListener.onResponse(localVarResponse);
|
responseListener.onResponse(localVarResponse);
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}, new Response.ErrorListener() {
|
}, new Response.ErrorListener() {
|
||||||
@Override
|
@Override
|
||||||
@ -440,7 +407,6 @@ public class UserApi {
|
|||||||
errorListener.onErrorResponse(new VolleyError(ex));
|
errorListener.onErrorResponse(new VolleyError(ex));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Delete user
|
* Delete user
|
||||||
* This can only be done by the logged in user.
|
* This can only be done by the logged in user.
|
||||||
@ -469,8 +435,6 @@ public class UserApi {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
String[] contentTypes = {
|
String[] contentTypes = {
|
||||||
|
|
||||||
};
|
};
|
||||||
@ -485,7 +449,6 @@ public class UserApi {
|
|||||||
postBody = httpEntity;
|
postBody = httpEntity;
|
||||||
} else {
|
} else {
|
||||||
// normal form params
|
// normal form params
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
String[] authNames = new String[] { "test_http_basic" };
|
String[] authNames = new String[] { "test_http_basic" };
|
||||||
@ -542,8 +505,6 @@ public class UserApi {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
String[] contentTypes = {
|
String[] contentTypes = {
|
||||||
|
|
||||||
};
|
};
|
||||||
@ -558,7 +519,6 @@ public class UserApi {
|
|||||||
postBody = httpEntity;
|
postBody = httpEntity;
|
||||||
} else {
|
} else {
|
||||||
// normal form params
|
// normal form params
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
String[] authNames = new String[] { "test_http_basic" };
|
String[] authNames = new String[] { "test_http_basic" };
|
||||||
@ -568,11 +528,7 @@ public class UserApi {
|
|||||||
new Response.Listener<String>() {
|
new Response.Listener<String>() {
|
||||||
@Override
|
@Override
|
||||||
public void onResponse(String localVarResponse) {
|
public void onResponse(String localVarResponse) {
|
||||||
|
|
||||||
|
|
||||||
responseListener.onResponse(localVarResponse);
|
responseListener.onResponse(localVarResponse);
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}, new Response.ErrorListener() {
|
}, new Response.ErrorListener() {
|
||||||
@Override
|
@Override
|
||||||
@ -584,7 +540,6 @@ public class UserApi {
|
|||||||
errorListener.onErrorResponse(new VolleyError(ex));
|
errorListener.onErrorResponse(new VolleyError(ex));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get user by user name
|
* Get user by user name
|
||||||
*
|
*
|
||||||
@ -613,8 +568,6 @@ public class UserApi {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
String[] contentTypes = {
|
String[] contentTypes = {
|
||||||
|
|
||||||
};
|
};
|
||||||
@ -629,7 +582,6 @@ public class UserApi {
|
|||||||
postBody = httpEntity;
|
postBody = httpEntity;
|
||||||
} else {
|
} else {
|
||||||
// normal form params
|
// normal form params
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
String[] authNames = new String[] { };
|
String[] authNames = new String[] { };
|
||||||
@ -686,8 +638,6 @@ public class UserApi {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
String[] contentTypes = {
|
String[] contentTypes = {
|
||||||
|
|
||||||
};
|
};
|
||||||
@ -702,7 +652,6 @@ public class UserApi {
|
|||||||
postBody = httpEntity;
|
postBody = httpEntity;
|
||||||
} else {
|
} else {
|
||||||
// normal form params
|
// normal form params
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
String[] authNames = new String[] { };
|
String[] authNames = new String[] { };
|
||||||
@ -712,16 +661,11 @@ public class UserApi {
|
|||||||
new Response.Listener<String>() {
|
new Response.Listener<String>() {
|
||||||
@Override
|
@Override
|
||||||
public void onResponse(String localVarResponse) {
|
public void onResponse(String localVarResponse) {
|
||||||
|
|
||||||
try {
|
try {
|
||||||
responseListener.onResponse((User) ApiInvoker.deserialize(localVarResponse, "", User.class));
|
responseListener.onResponse((User) ApiInvoker.deserialize(localVarResponse, "", User.class));
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
} catch (ApiException exception) {
|
} catch (ApiException exception) {
|
||||||
errorListener.onErrorResponse(new VolleyError(exception));
|
errorListener.onErrorResponse(new VolleyError(exception));
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}, new Response.ErrorListener() {
|
}, new Response.ErrorListener() {
|
||||||
@Override
|
@Override
|
||||||
@ -733,7 +677,6 @@ public class UserApi {
|
|||||||
errorListener.onErrorResponse(new VolleyError(ex));
|
errorListener.onErrorResponse(new VolleyError(ex));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Logs user into the system
|
* Logs user into the system
|
||||||
*
|
*
|
||||||
@ -755,14 +698,10 @@ public class UserApi {
|
|||||||
// form params
|
// form params
|
||||||
Map<String, String> formParams = new HashMap<String, String>();
|
Map<String, String> formParams = new HashMap<String, String>();
|
||||||
|
|
||||||
|
|
||||||
queryParams.addAll(ApiInvoker.parameterToPairs("", "username", username));
|
queryParams.addAll(ApiInvoker.parameterToPairs("", "username", username));
|
||||||
|
|
||||||
queryParams.addAll(ApiInvoker.parameterToPairs("", "password", password));
|
queryParams.addAll(ApiInvoker.parameterToPairs("", "password", password));
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
String[] contentTypes = {
|
String[] contentTypes = {
|
||||||
|
|
||||||
};
|
};
|
||||||
@ -777,7 +716,6 @@ public class UserApi {
|
|||||||
postBody = httpEntity;
|
postBody = httpEntity;
|
||||||
} else {
|
} else {
|
||||||
// normal form params
|
// normal form params
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
String[] authNames = new String[] { };
|
String[] authNames = new String[] { };
|
||||||
@ -826,14 +764,10 @@ public class UserApi {
|
|||||||
// form params
|
// form params
|
||||||
Map<String, String> formParams = new HashMap<String, String>();
|
Map<String, String> formParams = new HashMap<String, String>();
|
||||||
|
|
||||||
|
|
||||||
queryParams.addAll(ApiInvoker.parameterToPairs("", "username", username));
|
queryParams.addAll(ApiInvoker.parameterToPairs("", "username", username));
|
||||||
|
|
||||||
queryParams.addAll(ApiInvoker.parameterToPairs("", "password", password));
|
queryParams.addAll(ApiInvoker.parameterToPairs("", "password", password));
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
String[] contentTypes = {
|
String[] contentTypes = {
|
||||||
|
|
||||||
};
|
};
|
||||||
@ -848,7 +782,6 @@ public class UserApi {
|
|||||||
postBody = httpEntity;
|
postBody = httpEntity;
|
||||||
} else {
|
} else {
|
||||||
// normal form params
|
// normal form params
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
String[] authNames = new String[] { };
|
String[] authNames = new String[] { };
|
||||||
@ -858,16 +791,11 @@ public class UserApi {
|
|||||||
new Response.Listener<String>() {
|
new Response.Listener<String>() {
|
||||||
@Override
|
@Override
|
||||||
public void onResponse(String localVarResponse) {
|
public void onResponse(String localVarResponse) {
|
||||||
|
|
||||||
try {
|
try {
|
||||||
responseListener.onResponse((String) ApiInvoker.deserialize(localVarResponse, "", String.class));
|
responseListener.onResponse((String) ApiInvoker.deserialize(localVarResponse, "", String.class));
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
} catch (ApiException exception) {
|
} catch (ApiException exception) {
|
||||||
errorListener.onErrorResponse(new VolleyError(exception));
|
errorListener.onErrorResponse(new VolleyError(exception));
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}, new Response.ErrorListener() {
|
}, new Response.ErrorListener() {
|
||||||
@Override
|
@Override
|
||||||
@ -879,7 +807,6 @@ public class UserApi {
|
|||||||
errorListener.onErrorResponse(new VolleyError(ex));
|
errorListener.onErrorResponse(new VolleyError(ex));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Logs out current logged in user session
|
* Logs out current logged in user session
|
||||||
*
|
*
|
||||||
@ -901,8 +828,6 @@ public class UserApi {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
String[] contentTypes = {
|
String[] contentTypes = {
|
||||||
|
|
||||||
};
|
};
|
||||||
@ -917,7 +842,6 @@ public class UserApi {
|
|||||||
postBody = httpEntity;
|
postBody = httpEntity;
|
||||||
} else {
|
} else {
|
||||||
// normal form params
|
// normal form params
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
String[] authNames = new String[] { };
|
String[] authNames = new String[] { };
|
||||||
@ -968,8 +892,6 @@ public class UserApi {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
String[] contentTypes = {
|
String[] contentTypes = {
|
||||||
|
|
||||||
};
|
};
|
||||||
@ -984,7 +906,6 @@ public class UserApi {
|
|||||||
postBody = httpEntity;
|
postBody = httpEntity;
|
||||||
} else {
|
} else {
|
||||||
// normal form params
|
// normal form params
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
String[] authNames = new String[] { };
|
String[] authNames = new String[] { };
|
||||||
@ -994,11 +915,7 @@ public class UserApi {
|
|||||||
new Response.Listener<String>() {
|
new Response.Listener<String>() {
|
||||||
@Override
|
@Override
|
||||||
public void onResponse(String localVarResponse) {
|
public void onResponse(String localVarResponse) {
|
||||||
|
|
||||||
|
|
||||||
responseListener.onResponse(localVarResponse);
|
responseListener.onResponse(localVarResponse);
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}, new Response.ErrorListener() {
|
}, new Response.ErrorListener() {
|
||||||
@Override
|
@Override
|
||||||
@ -1010,7 +927,6 @@ public class UserApi {
|
|||||||
errorListener.onErrorResponse(new VolleyError(ex));
|
errorListener.onErrorResponse(new VolleyError(ex));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Updated user
|
* Updated user
|
||||||
* This can only be done by the logged in user.
|
* This can only be done by the logged in user.
|
||||||
@ -1040,8 +956,6 @@ public class UserApi {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
String[] contentTypes = {
|
String[] contentTypes = {
|
||||||
|
|
||||||
};
|
};
|
||||||
@ -1056,7 +970,6 @@ public class UserApi {
|
|||||||
postBody = httpEntity;
|
postBody = httpEntity;
|
||||||
} else {
|
} else {
|
||||||
// normal form params
|
// normal form params
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
String[] authNames = new String[] { };
|
String[] authNames = new String[] { };
|
||||||
@ -1113,8 +1026,6 @@ public class UserApi {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
String[] contentTypes = {
|
String[] contentTypes = {
|
||||||
|
|
||||||
};
|
};
|
||||||
@ -1129,7 +1040,6 @@ public class UserApi {
|
|||||||
postBody = httpEntity;
|
postBody = httpEntity;
|
||||||
} else {
|
} else {
|
||||||
// normal form params
|
// normal form params
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
String[] authNames = new String[] { };
|
String[] authNames = new String[] { };
|
||||||
@ -1139,11 +1049,7 @@ public class UserApi {
|
|||||||
new Response.Listener<String>() {
|
new Response.Listener<String>() {
|
||||||
@Override
|
@Override
|
||||||
public void onResponse(String localVarResponse) {
|
public void onResponse(String localVarResponse) {
|
||||||
|
|
||||||
|
|
||||||
responseListener.onResponse(localVarResponse);
|
responseListener.onResponse(localVarResponse);
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}, new Response.ErrorListener() {
|
}, new Response.ErrorListener() {
|
||||||
@Override
|
@Override
|
||||||
@ -1155,5 +1061,4 @@ public class UserApi {
|
|||||||
errorListener.onErrorResponse(new VolleyError(ex));
|
errorListener.onErrorResponse(new VolleyError(ex));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -11,7 +11,6 @@ public class Animal {
|
|||||||
@SerializedName("className")
|
@SerializedName("className")
|
||||||
private String className = null;
|
private String className = null;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
**/
|
**/
|
||||||
@ApiModelProperty(required = true, value = "")
|
@ApiModelProperty(required = true, value = "")
|
||||||
@ -23,7 +22,6 @@ public class Animal {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
|
@ -14,7 +14,6 @@ public class Cat extends Animal {
|
|||||||
@SerializedName("declawed")
|
@SerializedName("declawed")
|
||||||
private Boolean declawed = null;
|
private Boolean declawed = null;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
**/
|
**/
|
||||||
@ApiModelProperty(required = true, value = "")
|
@ApiModelProperty(required = true, value = "")
|
||||||
@ -25,7 +24,6 @@ public class Cat extends Animal {
|
|||||||
this.className = className;
|
this.className = className;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
**/
|
**/
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
@ -37,7 +35,6 @@ public class Cat extends Animal {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
|
@ -13,7 +13,6 @@ public class Category {
|
|||||||
@SerializedName("name")
|
@SerializedName("name")
|
||||||
private String name = null;
|
private String name = null;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
**/
|
**/
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
@ -24,7 +23,6 @@ public class Category {
|
|||||||
this.id = id;
|
this.id = id;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
**/
|
**/
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
@ -36,7 +34,6 @@ public class Category {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
|
@ -14,7 +14,6 @@ public class Dog extends Animal {
|
|||||||
@SerializedName("breed")
|
@SerializedName("breed")
|
||||||
private String breed = null;
|
private String breed = null;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
**/
|
**/
|
||||||
@ApiModelProperty(required = true, value = "")
|
@ApiModelProperty(required = true, value = "")
|
||||||
@ -25,7 +24,6 @@ public class Dog extends Animal {
|
|||||||
this.className = className;
|
this.className = className;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
**/
|
**/
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
@ -37,7 +35,6 @@ public class Dog extends Animal {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
|
@ -0,0 +1,179 @@
|
|||||||
|
package io.swagger.client.model;
|
||||||
|
|
||||||
|
import java.math.BigDecimal;
|
||||||
|
import java.util.Date;
|
||||||
|
|
||||||
|
import io.swagger.annotations.*;
|
||||||
|
import com.google.gson.annotations.SerializedName;
|
||||||
|
|
||||||
|
|
||||||
|
@ApiModel(description = "")
|
||||||
|
public class FormatTest {
|
||||||
|
|
||||||
|
@SerializedName("integer")
|
||||||
|
private Integer integer = null;
|
||||||
|
@SerializedName("int32")
|
||||||
|
private Integer int32 = null;
|
||||||
|
@SerializedName("int64")
|
||||||
|
private Long int64 = null;
|
||||||
|
@SerializedName("number")
|
||||||
|
private BigDecimal number = null;
|
||||||
|
@SerializedName("float")
|
||||||
|
private Float _float = null;
|
||||||
|
@SerializedName("double")
|
||||||
|
private Double _double = null;
|
||||||
|
@SerializedName("string")
|
||||||
|
private String string = null;
|
||||||
|
@SerializedName("byte")
|
||||||
|
private byte[] _byte = null;
|
||||||
|
@SerializedName("binary")
|
||||||
|
private byte[] binary = null;
|
||||||
|
@SerializedName("date")
|
||||||
|
private Date date = null;
|
||||||
|
@SerializedName("dateTime")
|
||||||
|
private Date dateTime = null;
|
||||||
|
@SerializedName("password")
|
||||||
|
private String password = null;
|
||||||
|
|
||||||
|
/**
|
||||||
|
**/
|
||||||
|
@ApiModelProperty(value = "")
|
||||||
|
public Integer getInteger() {
|
||||||
|
return integer;
|
||||||
|
}
|
||||||
|
public void setInteger(Integer integer) {
|
||||||
|
this.integer = integer;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
**/
|
||||||
|
@ApiModelProperty(value = "")
|
||||||
|
public Integer getInt32() {
|
||||||
|
return int32;
|
||||||
|
}
|
||||||
|
public void setInt32(Integer int32) {
|
||||||
|
this.int32 = int32;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
**/
|
||||||
|
@ApiModelProperty(value = "")
|
||||||
|
public Long getInt64() {
|
||||||
|
return int64;
|
||||||
|
}
|
||||||
|
public void setInt64(Long int64) {
|
||||||
|
this.int64 = int64;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
**/
|
||||||
|
@ApiModelProperty(required = true, value = "")
|
||||||
|
public BigDecimal getNumber() {
|
||||||
|
return number;
|
||||||
|
}
|
||||||
|
public void setNumber(BigDecimal number) {
|
||||||
|
this.number = number;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
**/
|
||||||
|
@ApiModelProperty(value = "")
|
||||||
|
public Float getFloat() {
|
||||||
|
return _float;
|
||||||
|
}
|
||||||
|
public void setFloat(Float _float) {
|
||||||
|
this._float = _float;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
**/
|
||||||
|
@ApiModelProperty(value = "")
|
||||||
|
public Double getDouble() {
|
||||||
|
return _double;
|
||||||
|
}
|
||||||
|
public void setDouble(Double _double) {
|
||||||
|
this._double = _double;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
**/
|
||||||
|
@ApiModelProperty(value = "")
|
||||||
|
public String getString() {
|
||||||
|
return string;
|
||||||
|
}
|
||||||
|
public void setString(String string) {
|
||||||
|
this.string = string;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
**/
|
||||||
|
@ApiModelProperty(value = "")
|
||||||
|
public byte[] getByte() {
|
||||||
|
return _byte;
|
||||||
|
}
|
||||||
|
public void setByte(byte[] _byte) {
|
||||||
|
this._byte = _byte;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
**/
|
||||||
|
@ApiModelProperty(value = "")
|
||||||
|
public byte[] getBinary() {
|
||||||
|
return binary;
|
||||||
|
}
|
||||||
|
public void setBinary(byte[] binary) {
|
||||||
|
this.binary = binary;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
**/
|
||||||
|
@ApiModelProperty(value = "")
|
||||||
|
public Date getDate() {
|
||||||
|
return date;
|
||||||
|
}
|
||||||
|
public void setDate(Date date) {
|
||||||
|
this.date = date;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
**/
|
||||||
|
@ApiModelProperty(value = "")
|
||||||
|
public Date getDateTime() {
|
||||||
|
return dateTime;
|
||||||
|
}
|
||||||
|
public void setDateTime(Date dateTime) {
|
||||||
|
this.dateTime = dateTime;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
**/
|
||||||
|
@ApiModelProperty(value = "")
|
||||||
|
public String getPassword() {
|
||||||
|
return password;
|
||||||
|
}
|
||||||
|
public void setPassword(String password) {
|
||||||
|
this.password = password;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
StringBuilder sb = new StringBuilder();
|
||||||
|
sb.append("class FormatTest {\n");
|
||||||
|
|
||||||
|
sb.append(" integer: ").append(integer).append("\n");
|
||||||
|
sb.append(" int32: ").append(int32).append("\n");
|
||||||
|
sb.append(" int64: ").append(int64).append("\n");
|
||||||
|
sb.append(" number: ").append(number).append("\n");
|
||||||
|
sb.append(" _float: ").append(_float).append("\n");
|
||||||
|
sb.append(" _double: ").append(_double).append("\n");
|
||||||
|
sb.append(" string: ").append(string).append("\n");
|
||||||
|
sb.append(" _byte: ").append(_byte).append("\n");
|
||||||
|
sb.append(" binary: ").append(binary).append("\n");
|
||||||
|
sb.append(" date: ").append(date).append("\n");
|
||||||
|
sb.append(" dateTime: ").append(dateTime).append("\n");
|
||||||
|
sb.append(" password: ").append(password).append("\n");
|
||||||
|
sb.append("}\n");
|
||||||
|
return sb.toString();
|
||||||
|
}
|
||||||
|
}
|
@ -26,7 +26,6 @@ public class InlineResponse200 {
|
|||||||
@SerializedName("status")
|
@SerializedName("status")
|
||||||
private StatusEnum status = null;
|
private StatusEnum status = null;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
**/
|
**/
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
@ -37,7 +36,6 @@ public class InlineResponse200 {
|
|||||||
this.photoUrls = photoUrls;
|
this.photoUrls = photoUrls;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
**/
|
**/
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
@ -48,7 +46,6 @@ public class InlineResponse200 {
|
|||||||
this.name = name;
|
this.name = name;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
**/
|
**/
|
||||||
@ApiModelProperty(required = true, value = "")
|
@ApiModelProperty(required = true, value = "")
|
||||||
@ -59,7 +56,6 @@ public class InlineResponse200 {
|
|||||||
this.id = id;
|
this.id = id;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
**/
|
**/
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
@ -70,7 +66,6 @@ public class InlineResponse200 {
|
|||||||
this.category = category;
|
this.category = category;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
**/
|
**/
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
@ -81,7 +76,6 @@ public class InlineResponse200 {
|
|||||||
this.tags = tags;
|
this.tags = tags;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* pet status in the store
|
* pet status in the store
|
||||||
**/
|
**/
|
||||||
@ -94,7 +88,6 @@ public class InlineResponse200 {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
|
@ -14,7 +14,6 @@ public class Model200Response {
|
|||||||
@SerializedName("name")
|
@SerializedName("name")
|
||||||
private Integer name = null;
|
private Integer name = null;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
**/
|
**/
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
@ -26,7 +25,6 @@ public class Model200Response {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
|
@ -14,7 +14,6 @@ public class ModelReturn {
|
|||||||
@SerializedName("return")
|
@SerializedName("return")
|
||||||
private Integer _return = null;
|
private Integer _return = null;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
**/
|
**/
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
@ -26,7 +25,6 @@ public class ModelReturn {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
|
@ -16,10 +16,9 @@ public class Name {
|
|||||||
@SerializedName("snake_case")
|
@SerializedName("snake_case")
|
||||||
private Integer snakeCase = null;
|
private Integer snakeCase = null;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
**/
|
**/
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(required = true, value = "")
|
||||||
public Integer getName() {
|
public Integer getName() {
|
||||||
return name;
|
return name;
|
||||||
}
|
}
|
||||||
@ -27,7 +26,6 @@ public class Name {
|
|||||||
this.name = name;
|
this.name = name;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
**/
|
**/
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
@ -39,7 +37,6 @@ public class Name {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
|
@ -25,7 +25,6 @@ public class Order {
|
|||||||
@SerializedName("complete")
|
@SerializedName("complete")
|
||||||
private Boolean complete = null;
|
private Boolean complete = null;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
**/
|
**/
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
@ -36,7 +35,6 @@ public class Order {
|
|||||||
this.id = id;
|
this.id = id;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
**/
|
**/
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
@ -47,7 +45,6 @@ public class Order {
|
|||||||
this.petId = petId;
|
this.petId = petId;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
**/
|
**/
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
@ -58,7 +55,6 @@ public class Order {
|
|||||||
this.quantity = quantity;
|
this.quantity = quantity;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
**/
|
**/
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
@ -69,7 +65,6 @@ public class Order {
|
|||||||
this.shipDate = shipDate;
|
this.shipDate = shipDate;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Order Status
|
* Order Status
|
||||||
**/
|
**/
|
||||||
@ -81,7 +76,6 @@ public class Order {
|
|||||||
this.status = status;
|
this.status = status;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
**/
|
**/
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
@ -93,7 +87,6 @@ public class Order {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
|
@ -27,7 +27,6 @@ public class Pet {
|
|||||||
@SerializedName("status")
|
@SerializedName("status")
|
||||||
private StatusEnum status = null;
|
private StatusEnum status = null;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
**/
|
**/
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
@ -38,7 +37,6 @@ public class Pet {
|
|||||||
this.id = id;
|
this.id = id;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
**/
|
**/
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
@ -49,7 +47,6 @@ public class Pet {
|
|||||||
this.category = category;
|
this.category = category;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
**/
|
**/
|
||||||
@ApiModelProperty(required = true, value = "")
|
@ApiModelProperty(required = true, value = "")
|
||||||
@ -60,7 +57,6 @@ public class Pet {
|
|||||||
this.name = name;
|
this.name = name;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
**/
|
**/
|
||||||
@ApiModelProperty(required = true, value = "")
|
@ApiModelProperty(required = true, value = "")
|
||||||
@ -71,7 +67,6 @@ public class Pet {
|
|||||||
this.photoUrls = photoUrls;
|
this.photoUrls = photoUrls;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
**/
|
**/
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
@ -82,7 +77,6 @@ public class Pet {
|
|||||||
this.tags = tags;
|
this.tags = tags;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* pet status in the store
|
* pet status in the store
|
||||||
**/
|
**/
|
||||||
@ -95,7 +89,6 @@ public class Pet {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
|
@ -11,7 +11,6 @@ public class SpecialModelName {
|
|||||||
@SerializedName("$special[property.name]")
|
@SerializedName("$special[property.name]")
|
||||||
private Long specialPropertyName = null;
|
private Long specialPropertyName = null;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
**/
|
**/
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
@ -23,7 +22,6 @@ public class SpecialModelName {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
|
@ -13,7 +13,6 @@ public class Tag {
|
|||||||
@SerializedName("name")
|
@SerializedName("name")
|
||||||
private String name = null;
|
private String name = null;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
**/
|
**/
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
@ -24,7 +23,6 @@ public class Tag {
|
|||||||
this.id = id;
|
this.id = id;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
**/
|
**/
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
@ -36,7 +34,6 @@ public class Tag {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
|
@ -25,7 +25,6 @@ public class User {
|
|||||||
@SerializedName("userStatus")
|
@SerializedName("userStatus")
|
||||||
private Integer userStatus = null;
|
private Integer userStatus = null;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
**/
|
**/
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
@ -36,7 +35,6 @@ public class User {
|
|||||||
this.id = id;
|
this.id = id;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
**/
|
**/
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
@ -47,7 +45,6 @@ public class User {
|
|||||||
this.username = username;
|
this.username = username;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
**/
|
**/
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
@ -58,7 +55,6 @@ public class User {
|
|||||||
this.firstName = firstName;
|
this.firstName = firstName;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
**/
|
**/
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
@ -69,7 +65,6 @@ public class User {
|
|||||||
this.lastName = lastName;
|
this.lastName = lastName;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
**/
|
**/
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
@ -80,7 +75,6 @@ public class User {
|
|||||||
this.email = email;
|
this.email = email;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
**/
|
**/
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
@ -91,7 +85,6 @@ public class User {
|
|||||||
this.password = password;
|
this.password = password;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
**/
|
**/
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
@ -102,7 +95,6 @@ public class User {
|
|||||||
this.phone = phone;
|
this.phone = phone;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* User Status
|
* User Status
|
||||||
**/
|
**/
|
||||||
@ -115,7 +107,6 @@ public class User {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user