Re: Petstore test with java generated code not getting same response at ui site

2017-04-24 Thread Richard Moore
I can't believe I didn't see that! Sorry for wasting you guys time. Thanks -- You received this message because you are subscribed to the Google Groups "Swagger" group. To unsubscribe from this group and stop receiving emails from it, send an email to swagger-swaggersocket+unsubscr...@googlegro

Re: Petstore test with java generated code not getting same response at ui site

2017-04-24 Thread Ron Ratovsky
store test with java generated code not getting same response at ui site OK Great, so the request seems fine. Is your result array empty? On Apr 24, 2017, at 9:51 AM, Richard Moore wrote: I shortened the results. Seems data is coming back but why is the following not displaying the re

Re: Petstore test with java generated code not getting same response at ui site

2017-04-24 Thread tony tam
OK Great, so the request seems fine. Is your result array empty? > On Apr 24, 2017, at 9:51 AM, Richard Moore wrote: > > I shortened the results. Seems data is coming back but why is the following > not displaying the results? > > List list = pets.findPetsByStatus(status); > for (Pet pet : li

Re: Petstore test with java generated code not getting same response at ui site

2017-04-24 Thread Richard Moore
I shortened the results. Seems data is coming back but why is the following not displaying the results? List list = pets.findPetsByStatus(status); for (Pet pet : list) { pet.toString(); } Apr 24, 2017 11:48:44 AM com.sun.jersey.api.client.filter.LoggingFilter log INFO: 1 * Client out-bound reque

Re: Petstore test with java generated code not getting same response at ui site

2017-04-24 Thread tony tam
Please set: pets.getApiClient().setDebug(true); And post back what you see in your console. > On Apr 24, 2017, at 9:13 AM, Richard Moore wrote: > > If I go to http://petstore.swagger.io/ and list pets by "available" status I > get results back. But using the generated client code - > > List

Petstore test with java generated code not getting same response at ui site

2017-04-24 Thread Richard Moore
If I go to http://petstore.swagger.io/ and list pets by "available" status I get results back. But using the generated client code - List status = new ArrayList(); status.add("available"); PetApi pets = new PetApi(); List list = pets.findPetsByStatus(status); for (Pet pet : list) { pet.toString