[forge-issues] [JBoss JIRA] (FORGE-1361) Control REST resource generation to allow entities to be sent in response to POST request
Vineet Reynolds (JIRA)
issues at jboss.org
Mon Dec 16 16:26:33 EST 2013
Vineet Reynolds created FORGE-1361:
--------------------------------------
Summary: 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: 2.0.0.Beta3, 1.4.3.Final
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