I try to understand how return a collection of object as response with rest 




import javax.ws.rs.core.GenericEntity;
//...
  @GET
    public Response workshops() {
        List<Workshop> workshops = ...//a list of entities
        GenericEntity<List&lt;Workshop>> l
        ist = new GenericEntity<List&lt;Workshop>>(workshops) *{}*;
        return Response.ok(list).build();
    }



--
View this message in context: 
http://tomee-openejb.979440.n4.nabble.com/signify-of-when-i-create-a-rest-Response-with-a-List-tp4679566.html
Sent from the TomEE Users mailing list archive at Nabble.com.

Reply via email to