[forge-issues] [JBoss JIRA] (FORGE-1892) REST endpoint should also consume/produce JSon
Antonio Goncalves (JIRA)
issues at jboss.org
Fri Jun 20 10:04:24 EDT 2014
[ https://issues.jboss.org/browse/FORGE-1892?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12978169#comment-12978169 ]
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}
--
This message was sent by Atlassian JIRA
(v6.2.6#6264)
More information about the forge-issues
mailing list