[forge-issues] [JBoss JIRA] (FORGE-1892) REST endpoint should also consume/produce JSon
Antonio Goncalves (JIRA)
issues at jboss.org
Thu Jun 19 11:05:25 EDT 2014
Antonio Goncalves created FORGE-1892:
----------------------------------------
Summary: 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}
--
This message was sent by Atlassian JIRA
(v6.2.6#6264)
More information about the forge-issues
mailing list