made response change to petstore

This commit is contained in:
Peter 2016-06-09 08:56:42 +02:00
parent 6df4ffab13
commit 28bece0ce0
No known key found for this signature in database
GPG Key ID: 8A946272ECC322DE
10 changed files with 48 additions and 52 deletions

View File

@ -3,7 +3,7 @@ package io.swagger.client;
import java.util.Map; import java.util.Map;
import java.util.List; import java.util.List;
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-06-09T00:01:22.559+08:00") @javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-06-09T08:56:08.812+02:00")
public class ApiException extends Exception { public class ApiException extends Exception {
private int code = 0; private int code = 0;
private Map<String, List<String>> responseHeaders = null; private Map<String, List<String>> responseHeaders = null;

View File

@ -1,6 +1,6 @@
package io.swagger.client; package io.swagger.client;
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-06-09T00:01:22.559+08:00") @javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-06-09T08:56:08.812+02:00")
public class Configuration { public class Configuration {
private static ApiClient defaultApiClient = new ApiClient(); private static ApiClient defaultApiClient = new ApiClient();

View File

@ -1,6 +1,6 @@
package io.swagger.client; package io.swagger.client;
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-06-09T00:01:22.559+08:00") @javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-06-09T08:56:08.812+02:00")
public class Pair { public class Pair {
private String name = ""; private String name = "";
private String value = ""; private String value = "";

View File

@ -1,6 +1,6 @@
package io.swagger.client; package io.swagger.client;
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-06-09T00:01:22.559+08:00") @javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-06-09T08:56:08.812+02:00")
public class StringUtil { public class StringUtil {
/** /**
* Check if the given array contains the given value (with case-insensitive comparison). * Check if the given array contains the given value (with case-insensitive comparison).

View File

@ -13,7 +13,6 @@ import com.google.gson.reflect.TypeToken;
import com.squareup.okhttp.Call; import com.squareup.okhttp.Call;
import com.squareup.okhttp.Interceptor; import com.squareup.okhttp.Interceptor;
import com.squareup.okhttp.Response;
import java.io.IOException; import java.io.IOException;
@ -118,8 +117,8 @@ public class FakeApi {
if(progressListener != null) { if(progressListener != null) {
apiClient.getHttpClient().networkInterceptors().add(new Interceptor() { apiClient.getHttpClient().networkInterceptors().add(new Interceptor() {
@Override @Override
public Response intercept(Interceptor.Chain chain) throws IOException { public com.squareup.okhttp.Response intercept(Interceptor.Chain chain) throws IOException {
Response originalResponse = chain.proceed(chain.request()); com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request());
return originalResponse.newBuilder() return originalResponse.newBuilder()
.body(new ProgressResponseBody(originalResponse.body(), progressListener)) .body(new ProgressResponseBody(originalResponse.body(), progressListener))
.build(); .build();

View File

@ -13,7 +13,6 @@ import com.google.gson.reflect.TypeToken;
import com.squareup.okhttp.Call; import com.squareup.okhttp.Call;
import com.squareup.okhttp.Interceptor; import com.squareup.okhttp.Interceptor;
import com.squareup.okhttp.Response;
import java.io.IOException; import java.io.IOException;
@ -80,8 +79,8 @@ public class PetApi {
if(progressListener != null) { if(progressListener != null) {
apiClient.getHttpClient().networkInterceptors().add(new Interceptor() { apiClient.getHttpClient().networkInterceptors().add(new Interceptor() {
@Override @Override
public Response intercept(Interceptor.Chain chain) throws IOException { public com.squareup.okhttp.Response intercept(Interceptor.Chain chain) throws IOException {
Response originalResponse = chain.proceed(chain.request()); com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request());
return originalResponse.newBuilder() return originalResponse.newBuilder()
.body(new ProgressResponseBody(originalResponse.body(), progressListener)) .body(new ProgressResponseBody(originalResponse.body(), progressListener))
.build(); .build();
@ -185,8 +184,8 @@ public class PetApi {
if(progressListener != null) { if(progressListener != null) {
apiClient.getHttpClient().networkInterceptors().add(new Interceptor() { apiClient.getHttpClient().networkInterceptors().add(new Interceptor() {
@Override @Override
public Response intercept(Interceptor.Chain chain) throws IOException { public com.squareup.okhttp.Response intercept(Interceptor.Chain chain) throws IOException {
Response originalResponse = chain.proceed(chain.request()); com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request());
return originalResponse.newBuilder() return originalResponse.newBuilder()
.body(new ProgressResponseBody(originalResponse.body(), progressListener)) .body(new ProgressResponseBody(originalResponse.body(), progressListener))
.build(); .build();
@ -292,8 +291,8 @@ public class PetApi {
if(progressListener != null) { if(progressListener != null) {
apiClient.getHttpClient().networkInterceptors().add(new Interceptor() { apiClient.getHttpClient().networkInterceptors().add(new Interceptor() {
@Override @Override
public Response intercept(Interceptor.Chain chain) throws IOException { public com.squareup.okhttp.Response intercept(Interceptor.Chain chain) throws IOException {
Response originalResponse = chain.proceed(chain.request()); com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request());
return originalResponse.newBuilder() return originalResponse.newBuilder()
.body(new ProgressResponseBody(originalResponse.body(), progressListener)) .body(new ProgressResponseBody(originalResponse.body(), progressListener))
.build(); .build();
@ -400,8 +399,8 @@ public class PetApi {
if(progressListener != null) { if(progressListener != null) {
apiClient.getHttpClient().networkInterceptors().add(new Interceptor() { apiClient.getHttpClient().networkInterceptors().add(new Interceptor() {
@Override @Override
public Response intercept(Interceptor.Chain chain) throws IOException { public com.squareup.okhttp.Response intercept(Interceptor.Chain chain) throws IOException {
Response originalResponse = chain.proceed(chain.request()); com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request());
return originalResponse.newBuilder() return originalResponse.newBuilder()
.body(new ProgressResponseBody(originalResponse.body(), progressListener)) .body(new ProgressResponseBody(originalResponse.body(), progressListener))
.build(); .build();
@ -507,8 +506,8 @@ public class PetApi {
if(progressListener != null) { if(progressListener != null) {
apiClient.getHttpClient().networkInterceptors().add(new Interceptor() { apiClient.getHttpClient().networkInterceptors().add(new Interceptor() {
@Override @Override
public Response intercept(Interceptor.Chain chain) throws IOException { public com.squareup.okhttp.Response intercept(Interceptor.Chain chain) throws IOException {
Response originalResponse = chain.proceed(chain.request()); com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request());
return originalResponse.newBuilder() return originalResponse.newBuilder()
.body(new ProgressResponseBody(originalResponse.body(), progressListener)) .body(new ProgressResponseBody(originalResponse.body(), progressListener))
.build(); .build();
@ -613,8 +612,8 @@ public class PetApi {
if(progressListener != null) { if(progressListener != null) {
apiClient.getHttpClient().networkInterceptors().add(new Interceptor() { apiClient.getHttpClient().networkInterceptors().add(new Interceptor() {
@Override @Override
public Response intercept(Interceptor.Chain chain) throws IOException { public com.squareup.okhttp.Response intercept(Interceptor.Chain chain) throws IOException {
Response originalResponse = chain.proceed(chain.request()); com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request());
return originalResponse.newBuilder() return originalResponse.newBuilder()
.body(new ProgressResponseBody(originalResponse.body(), progressListener)) .body(new ProgressResponseBody(originalResponse.body(), progressListener))
.build(); .build();
@ -720,8 +719,8 @@ public class PetApi {
if(progressListener != null) { if(progressListener != null) {
apiClient.getHttpClient().networkInterceptors().add(new Interceptor() { apiClient.getHttpClient().networkInterceptors().add(new Interceptor() {
@Override @Override
public Response intercept(Interceptor.Chain chain) throws IOException { public com.squareup.okhttp.Response intercept(Interceptor.Chain chain) throws IOException {
Response originalResponse = chain.proceed(chain.request()); com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request());
return originalResponse.newBuilder() return originalResponse.newBuilder()
.body(new ProgressResponseBody(originalResponse.body(), progressListener)) .body(new ProgressResponseBody(originalResponse.body(), progressListener))
.build(); .build();
@ -833,8 +832,8 @@ public class PetApi {
if(progressListener != null) { if(progressListener != null) {
apiClient.getHttpClient().networkInterceptors().add(new Interceptor() { apiClient.getHttpClient().networkInterceptors().add(new Interceptor() {
@Override @Override
public Response intercept(Interceptor.Chain chain) throws IOException { public com.squareup.okhttp.Response intercept(Interceptor.Chain chain) throws IOException {
Response originalResponse = chain.proceed(chain.request()); com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request());
return originalResponse.newBuilder() return originalResponse.newBuilder()
.body(new ProgressResponseBody(originalResponse.body(), progressListener)) .body(new ProgressResponseBody(originalResponse.body(), progressListener))
.build(); .build();

View File

@ -13,7 +13,6 @@ import com.google.gson.reflect.TypeToken;
import com.squareup.okhttp.Call; import com.squareup.okhttp.Call;
import com.squareup.okhttp.Interceptor; import com.squareup.okhttp.Interceptor;
import com.squareup.okhttp.Response;
import java.io.IOException; import java.io.IOException;
@ -79,8 +78,8 @@ public class StoreApi {
if(progressListener != null) { if(progressListener != null) {
apiClient.getHttpClient().networkInterceptors().add(new Interceptor() { apiClient.getHttpClient().networkInterceptors().add(new Interceptor() {
@Override @Override
public Response intercept(Interceptor.Chain chain) throws IOException { public com.squareup.okhttp.Response intercept(Interceptor.Chain chain) throws IOException {
Response originalResponse = chain.proceed(chain.request()); com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request());
return originalResponse.newBuilder() return originalResponse.newBuilder()
.body(new ProgressResponseBody(originalResponse.body(), progressListener)) .body(new ProgressResponseBody(originalResponse.body(), progressListener))
.build(); .build();
@ -176,8 +175,8 @@ public class StoreApi {
if(progressListener != null) { if(progressListener != null) {
apiClient.getHttpClient().networkInterceptors().add(new Interceptor() { apiClient.getHttpClient().networkInterceptors().add(new Interceptor() {
@Override @Override
public Response intercept(Interceptor.Chain chain) throws IOException { public com.squareup.okhttp.Response intercept(Interceptor.Chain chain) throws IOException {
Response originalResponse = chain.proceed(chain.request()); com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request());
return originalResponse.newBuilder() return originalResponse.newBuilder()
.body(new ProgressResponseBody(originalResponse.body(), progressListener)) .body(new ProgressResponseBody(originalResponse.body(), progressListener))
.build(); .build();
@ -280,8 +279,8 @@ public class StoreApi {
if(progressListener != null) { if(progressListener != null) {
apiClient.getHttpClient().networkInterceptors().add(new Interceptor() { apiClient.getHttpClient().networkInterceptors().add(new Interceptor() {
@Override @Override
public Response intercept(Interceptor.Chain chain) throws IOException { public com.squareup.okhttp.Response intercept(Interceptor.Chain chain) throws IOException {
Response originalResponse = chain.proceed(chain.request()); com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request());
return originalResponse.newBuilder() return originalResponse.newBuilder()
.body(new ProgressResponseBody(originalResponse.body(), progressListener)) .body(new ProgressResponseBody(originalResponse.body(), progressListener))
.build(); .build();
@ -386,8 +385,8 @@ public class StoreApi {
if(progressListener != null) { if(progressListener != null) {
apiClient.getHttpClient().networkInterceptors().add(new Interceptor() { apiClient.getHttpClient().networkInterceptors().add(new Interceptor() {
@Override @Override
public Response intercept(Interceptor.Chain chain) throws IOException { public com.squareup.okhttp.Response intercept(Interceptor.Chain chain) throws IOException {
Response originalResponse = chain.proceed(chain.request()); com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request());
return originalResponse.newBuilder() return originalResponse.newBuilder()
.body(new ProgressResponseBody(originalResponse.body(), progressListener)) .body(new ProgressResponseBody(originalResponse.body(), progressListener))
.build(); .build();

View File

@ -13,7 +13,6 @@ import com.google.gson.reflect.TypeToken;
import com.squareup.okhttp.Call; import com.squareup.okhttp.Call;
import com.squareup.okhttp.Interceptor; import com.squareup.okhttp.Interceptor;
import com.squareup.okhttp.Response;
import java.io.IOException; import java.io.IOException;
@ -78,8 +77,8 @@ public class UserApi {
if(progressListener != null) { if(progressListener != null) {
apiClient.getHttpClient().networkInterceptors().add(new Interceptor() { apiClient.getHttpClient().networkInterceptors().add(new Interceptor() {
@Override @Override
public Response intercept(Interceptor.Chain chain) throws IOException { public com.squareup.okhttp.Response intercept(Interceptor.Chain chain) throws IOException {
Response originalResponse = chain.proceed(chain.request()); com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request());
return originalResponse.newBuilder() return originalResponse.newBuilder()
.body(new ProgressResponseBody(originalResponse.body(), progressListener)) .body(new ProgressResponseBody(originalResponse.body(), progressListener))
.build(); .build();
@ -180,8 +179,8 @@ public class UserApi {
if(progressListener != null) { if(progressListener != null) {
apiClient.getHttpClient().networkInterceptors().add(new Interceptor() { apiClient.getHttpClient().networkInterceptors().add(new Interceptor() {
@Override @Override
public Response intercept(Interceptor.Chain chain) throws IOException { public com.squareup.okhttp.Response intercept(Interceptor.Chain chain) throws IOException {
Response originalResponse = chain.proceed(chain.request()); com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request());
return originalResponse.newBuilder() return originalResponse.newBuilder()
.body(new ProgressResponseBody(originalResponse.body(), progressListener)) .body(new ProgressResponseBody(originalResponse.body(), progressListener))
.build(); .build();
@ -282,8 +281,8 @@ public class UserApi {
if(progressListener != null) { if(progressListener != null) {
apiClient.getHttpClient().networkInterceptors().add(new Interceptor() { apiClient.getHttpClient().networkInterceptors().add(new Interceptor() {
@Override @Override
public Response intercept(Interceptor.Chain chain) throws IOException { public com.squareup.okhttp.Response intercept(Interceptor.Chain chain) throws IOException {
Response originalResponse = chain.proceed(chain.request()); com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request());
return originalResponse.newBuilder() return originalResponse.newBuilder()
.body(new ProgressResponseBody(originalResponse.body(), progressListener)) .body(new ProgressResponseBody(originalResponse.body(), progressListener))
.build(); .build();
@ -385,8 +384,8 @@ public class UserApi {
if(progressListener != null) { if(progressListener != null) {
apiClient.getHttpClient().networkInterceptors().add(new Interceptor() { apiClient.getHttpClient().networkInterceptors().add(new Interceptor() {
@Override @Override
public Response intercept(Interceptor.Chain chain) throws IOException { public com.squareup.okhttp.Response intercept(Interceptor.Chain chain) throws IOException {
Response originalResponse = chain.proceed(chain.request()); com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request());
return originalResponse.newBuilder() return originalResponse.newBuilder()
.body(new ProgressResponseBody(originalResponse.body(), progressListener)) .body(new ProgressResponseBody(originalResponse.body(), progressListener))
.build(); .build();
@ -488,8 +487,8 @@ public class UserApi {
if(progressListener != null) { if(progressListener != null) {
apiClient.getHttpClient().networkInterceptors().add(new Interceptor() { apiClient.getHttpClient().networkInterceptors().add(new Interceptor() {
@Override @Override
public Response intercept(Interceptor.Chain chain) throws IOException { public com.squareup.okhttp.Response intercept(Interceptor.Chain chain) throws IOException {
Response originalResponse = chain.proceed(chain.request()); com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request());
return originalResponse.newBuilder() return originalResponse.newBuilder()
.body(new ProgressResponseBody(originalResponse.body(), progressListener)) .body(new ProgressResponseBody(originalResponse.body(), progressListener))
.build(); .build();
@ -603,8 +602,8 @@ public class UserApi {
if(progressListener != null) { if(progressListener != null) {
apiClient.getHttpClient().networkInterceptors().add(new Interceptor() { apiClient.getHttpClient().networkInterceptors().add(new Interceptor() {
@Override @Override
public Response intercept(Interceptor.Chain chain) throws IOException { public com.squareup.okhttp.Response intercept(Interceptor.Chain chain) throws IOException {
Response originalResponse = chain.proceed(chain.request()); com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request());
return originalResponse.newBuilder() return originalResponse.newBuilder()
.body(new ProgressResponseBody(originalResponse.body(), progressListener)) .body(new ProgressResponseBody(originalResponse.body(), progressListener))
.build(); .build();
@ -707,8 +706,8 @@ public class UserApi {
if(progressListener != null) { if(progressListener != null) {
apiClient.getHttpClient().networkInterceptors().add(new Interceptor() { apiClient.getHttpClient().networkInterceptors().add(new Interceptor() {
@Override @Override
public Response intercept(Interceptor.Chain chain) throws IOException { public com.squareup.okhttp.Response intercept(Interceptor.Chain chain) throws IOException {
Response originalResponse = chain.proceed(chain.request()); com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request());
return originalResponse.newBuilder() return originalResponse.newBuilder()
.body(new ProgressResponseBody(originalResponse.body(), progressListener)) .body(new ProgressResponseBody(originalResponse.body(), progressListener))
.build(); .build();
@ -812,8 +811,8 @@ public class UserApi {
if(progressListener != null) { if(progressListener != null) {
apiClient.getHttpClient().networkInterceptors().add(new Interceptor() { apiClient.getHttpClient().networkInterceptors().add(new Interceptor() {
@Override @Override
public Response intercept(Interceptor.Chain chain) throws IOException { public com.squareup.okhttp.Response intercept(Interceptor.Chain chain) throws IOException {
Response originalResponse = chain.proceed(chain.request()); com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request());
return originalResponse.newBuilder() return originalResponse.newBuilder()
.body(new ProgressResponseBody(originalResponse.body(), progressListener)) .body(new ProgressResponseBody(originalResponse.body(), progressListener))
.build(); .build();

View File

@ -5,7 +5,7 @@ import io.swagger.client.Pair;
import java.util.Map; import java.util.Map;
import java.util.List; import java.util.List;
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-06-09T00:01:22.559+08:00") @javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-06-09T08:56:08.812+02:00")
public class ApiKeyAuth implements Authentication { public class ApiKeyAuth implements Authentication {
private final String location; private final String location;
private final String paramName; private final String paramName;

View File

@ -5,7 +5,7 @@ import io.swagger.client.Pair;
import java.util.Map; import java.util.Map;
import java.util.List; import java.util.List;
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-06-09T00:01:22.559+08:00") @javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-06-09T08:56:08.812+02:00")
public class OAuth implements Authentication { public class OAuth implements Authentication {
private String accessToken; private String accessToken;