updated sample

This commit is contained in:
Tony Tam 2015-02-14 17:06:32 -08:00
parent 391806570c
commit 8daebf78f4
12 changed files with 28 additions and 28 deletions

View File

@ -1,4 +1,4 @@
package com.wordnik.client; package io.swagger.client;
public class ApiException extends Exception { public class ApiException extends Exception {
int code = 0; int code = 0;

View File

@ -1,4 +1,4 @@
package com.wordnik.client; package io.swagger.client;
import com.fasterxml.jackson.core.JsonGenerator.Feature; import com.fasterxml.jackson.core.JsonGenerator.Feature;

View File

@ -1,4 +1,4 @@
package com.wordnik.client; package io.swagger.client;
import org.apache.http.client.methods.*; import org.apache.http.client.methods.*;

View File

@ -1,4 +1,4 @@
package com.wordnik.client; package io.swagger.client;
import com.fasterxml.jackson.annotation.*; import com.fasterxml.jackson.annotation.*;
import com.fasterxml.jackson.databind.*; import com.fasterxml.jackson.databind.*;

View File

@ -1,13 +1,13 @@
package com.wordnik.client.api; package io.swagger.client.api;
import com.wordnik.client.ApiException; import io.swagger.client.ApiException;
import com.wordnik.client.ApiInvoker; import io.swagger.client.ApiInvoker;
import com.wordnik.client.model.*; import io.swagger.client.model.*;
import java.util.*; import java.util.*;
import com.wordnik.client.model.Pet; import io.swagger.client.model.Pet;
import java.io.File; import java.io.File;
import java.util.Map; import java.util.Map;
@ -133,7 +133,7 @@ public class PetApi {
try { try {
String response = apiInvoker.invokeAPI(basePath, path, "GET", queryParams, postBody, headerParams, contentType); String response = apiInvoker.invokeAPI(basePath, path, "GET", queryParams, postBody, headerParams, contentType);
if(response != null){ if(response != null){
return (List<Pet>) ApiInvoker.deserialize(response, "Pet", Pet.class); return (List<Pet>) ApiInvoker.deserialize(response, "array", Pet.class);
} }
else { else {
return null; return null;
@ -172,7 +172,7 @@ public class PetApi {
try { try {
String response = apiInvoker.invokeAPI(basePath, path, "GET", queryParams, postBody, headerParams, contentType); String response = apiInvoker.invokeAPI(basePath, path, "GET", queryParams, postBody, headerParams, contentType);
if(response != null){ if(response != null){
return (List<Pet>) ApiInvoker.deserialize(response, "Pet", Pet.class); return (List<Pet>) ApiInvoker.deserialize(response, "array", Pet.class);
} }
else { else {
return null; return null;

View File

@ -1,13 +1,13 @@
package com.wordnik.client.api; package io.swagger.client.api;
import com.wordnik.client.ApiException; import io.swagger.client.ApiException;
import com.wordnik.client.ApiInvoker; import io.swagger.client.ApiInvoker;
import com.wordnik.client.model.*; import io.swagger.client.model.*;
import java.util.*; import java.util.*;
import com.wordnik.client.model.Order; import io.swagger.client.model.Order;
import java.util.Map; import java.util.Map;
import java.util.HashMap; import java.util.HashMap;

View File

@ -1,13 +1,13 @@
package com.wordnik.client.api; package io.swagger.client.api;
import com.wordnik.client.ApiException; import io.swagger.client.ApiException;
import com.wordnik.client.ApiInvoker; import io.swagger.client.ApiInvoker;
import com.wordnik.client.model.*; import io.swagger.client.model.*;
import java.util.*; import java.util.*;
import com.wordnik.client.model.User; import io.swagger.client.model.User;
import java.util.*; import java.util.*;
import java.util.Map; import java.util.Map;

View File

@ -1,4 +1,4 @@
package com.wordnik.client.model; package io.swagger.client.model;
import com.wordnik.swagger.annotations.*; import com.wordnik.swagger.annotations.*;

View File

@ -1,4 +1,4 @@
package com.wordnik.client.model; package io.swagger.client.model;
import java.util.Date; import java.util.Date;

View File

@ -1,7 +1,7 @@
package com.wordnik.client.model; package io.swagger.client.model;
import com.wordnik.client.model.Category; import io.swagger.client.model.Category;
import com.wordnik.client.model.Tag; import io.swagger.client.model.Tag;
import java.util.*; import java.util.*;
import com.wordnik.swagger.annotations.*; import com.wordnik.swagger.annotations.*;

View File

@ -1,4 +1,4 @@
package com.wordnik.client.model; package io.swagger.client.model;
import com.wordnik.swagger.annotations.*; import com.wordnik.swagger.annotations.*;

View File

@ -1,4 +1,4 @@
package com.wordnik.client.model; package io.swagger.client.model;
import com.wordnik.swagger.annotations.*; import com.wordnik.swagger.annotations.*;