[forge-issues] [JBoss JIRA] (FORGE-1361) Control REST resource generation to allow entities to be sent in response to POST request

Karel Piwko (JIRA) issues at jboss.org
Wed Dec 18 10:49:33 EST 2013


    [ https://issues.jboss.org/browse/FORGE-1361?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12932406#comment-12932406 ] 

Karel Piwko commented on FORGE-1361:
------------------------------------

According to http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html, there should always be created entity returned in case response is HTTP 201
                
> Control REST resource generation to allow entities to be sent in response to POST request
> -----------------------------------------------------------------------------------------
>
>                 Key: FORGE-1361
>                 URL: https://issues.jboss.org/browse/FORGE-1361
>             Project: Forge
>          Issue Type: Feature Request
>          Components: Blessed Plugins
>    Affects Versions: 1.4.3.Final, 2.0.0.Beta3
>            Reporter: Vineet Reynolds
>
> The generated REST resources always issue a HTTP 201 Response with a Location header in response to a HTTP POST. Some clients expect the response to contain an entity representation of the newly created resource. Therefore, we should allow users to control whether they want the entity to feature in the response.
> This would require:
> * the method be annotated with @Produces with the mediatype being the chosen resource representation.
> * the entity() method be invoked to populate the entity in the response.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the forge-issues mailing list