[Geoserver-devel] [jira] Created: (GEOS-3014) restconfig: set information in entity response before returning STATUS_CREATED when handling PUT method

restconfig: set information in entity response before returning STATUS_CREATED when handling PUT method
-------------------------------------------------------------------------------------------------------

                 Key: GEOS-3014
                 URL: http://jira.codehaus.org/browse/GEOS-3014
             Project: GeoServer
          Issue Type: Improvement
          Components: Configuration
    Affects Versions: 1.7.4
            Reporter: Daniele Romagnoli
            Assignee: Andrea Aime
            Priority: Minor
             Fix For: 1.7.5

copying from my message on the devel list:
-----------------------------------------------------------
When putting some resource via rest in geoserver, in case everything goes ok, you will receive a response with a return code = 201 --> handlePut does this: getResponse().setStatus( Status.SUCCESS_CREATED );

From [1] I see that the response should contain some info about the newly created resource.

This can be achieved by properly setting an Entity in the response, before setting Status.SUCCESS_CREATED.
Actually, geoserver simply set CREATED in the response without any additional info. Therefore, there isn't any information about the just added layer.
Which type of information should we provide within the response?

Simone is suggesting to add at least the layer name in the response.

[1]: http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira