OK Great, so the request seems fine. Is your result array empty? > On Apr 24, 2017, at 9:51 AM, Richard Moore <[email protected]> wrote: > > I shortened the results. Seems data is coming back but why is the following > not displaying the results? > > List<Pet> 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 request > 1 > GET http://petstore.swagger.io/v2/pet/findByStatus?status=available > 1 > Accept: application/json > 1 > User-Agent: Java-Swagger > > Apr 24, 2017 11:48:45 AM com.sun.jersey.api.client.filter.LoggingFilter log > INFO: 1 * Client in-bound response > 1 < 200 > 1 < Server: Jetty(9.2.9.v20150224) > 1 < Access-Control-Allow-Origin: * > 1 < Access-Control-Allow-Methods: GET, POST, DELETE, PUT > 1 < Connection: close > 1 < Access-Control-Allow-Headers: Content-Type, api_key, Authorization > 1 < Date: Mon, 24 Apr 2017 16:48:45 GMT > 1 < Content-Type: application/json > 1 < > [{"id":9072482292156331374,"category":{"id":0,"name":"string"},"name":"TestDog","photoUrls":["string"],"tags":[{"id":0,"name":"string"}],"status":"available"},{"id":9072482292156331433,"category":{"id":0,"name":"Dogs1"},"name":"Rambo1","photoUrls":[],"tags":[],"status":"available"},{"id":141516,"category":{"id":0,"name":"string"},"name":"WatNouWeer","photoUrls":["string"],"tags":[{"id":0,"name":"string"}],"status":"available"}, > ... > {"id":1351413830,"name":"fido","photoUrls":[],"tags":[],"status":"available"},{"id":9072482292156336793,"category":{"id":1,"name":"xxx"},"name":"testx","photoUrls":[],"tags":[],"status":"available"},{"id":9072482292156336797,"cat...more... > > > -- > 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 [email protected] > <mailto:[email protected]>. > For more options, visit https://groups.google.com/d/optout > <https://groups.google.com/d/optout>.
-- 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 [email protected]. For more options, visit https://groups.google.com/d/optout.
