pet.toString() doesn’t print anything… it just converts the object to a string. 

 

 

 

From: <swagger-swaggersocket@googlegroups.com> on behalf of tony tam 
<feh...@gmail.com>
Reply-To: "swagger-swaggersocket@googlegroups.com" 
<swagger-swaggersocket@googlegroups.com>
Date: Monday, 24 April 2017 at 9:59
To: "swagger-swaggersocket@googlegroups.com" 
<swagger-swaggersocket@googlegroups.com>
Subject: Re: Petstore 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 <richard.mo...@awginc.com> 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 swagger-swaggersocket+unsubscr...@googlegroups.com.
For more options, visit 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 swagger-swaggersocket+unsubscr...@googlegroups.com.
For more options, visit 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 swagger-swaggersocket+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to