tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mauro2java2011 <mauro2java2...@gmail.com>
Subject signify of {} when i create a rest Response with a List
Date Mon, 01 Aug 2016 23:21:55 GMT
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.

Mime
View raw message