]
Antonio Goncalves commented on FORGE-1892:
------------------------------------------
Yes, I need XML and JSon actually. It would be good to be able to specify a list of
content types
REST endpoint should also consume/produce JSon
----------------------------------------------
Key: FORGE-1892
URL:
https://issues.jboss.org/browse/FORGE-1892
Project: Forge
Issue Type: Feature Request
Security Level: Public(Everyone can see)
Components: Scaffold
Affects Versions: 2.6.0.Final
Reporter: Antonio Goncalves
Fix For: 2.x Future
When a REST endoint is generated, there is only support for XML MIMETYPE
{code}
@GET
@Produces("application/xml")
public List<Book> listAll(@QueryParam("start") Integer startPosition,
@QueryParam("max") Integer maxResult)
{code}
It would be good to have both XML and JSON
{code}
@GET
@Produces({"application/xml","application/json"})
public List<Book> listAll(@QueryParam("start") Integer startPosition,
@QueryParam("max") Integer maxResult)
{code}