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
------------------------------------------------------------------------------
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image
processing features enabled. http://p.sf.net/sfu/kodak-com
_______________________________________________
Geoserver-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-devel