I agree with Sean, er i mean Andrea :P that simply using PUT for these
types of services makes sense. The geoserver restconfig api uses the
convention (and i believe this is consistent with the links Andrea posted)
that POST is generally only used when POSTING to a collection in order to
create a new entry where the contents of the collection are the same
"type". WHere as here under the "/services" collection we are talking about
entities of different types and furthermore just one entity of each type.
On Wed, Jul 11, 2012 at 3:21 AM, Andrea Aime
<[email protected]>wrote:
> Sorry, added the links to the references on the usage of POST and PUT
> in the wrong place, they
> were meant to follow my statement about the usage of POST and PUT, that is:
>
>
> ------------------------------------------------------------------------------------------------
>
> As far as I know PUT can be used also for resource creation in REST, the
> discriminant between using POST and PUT is that with POST you don't
> know where the resource is going to end up, while with PUT you already
> know the location at which the resource should be created, see for
> reference:
>
> http://stackoverflow.com/questions/630453/put-vs-post-in-rest
> http://jcalcote.wordpress.com/2008/10/16/put-or-post-the-rest-of-the-story/
>
>
> -------------------------------------------------------------------------------------------------
>
> Cheers
> Andrea
>
> --
> Ing. Andrea Aime
> GeoSolutions S.A.S.
> Tech lead
>
> Via Poggio alle Viti 1187
> 55054 Massarosa (LU)
> Italy
>
> phone: +39 0584 962313
> fax: +39 0584 962313
> mob: +39 339 8844549
>
> http://www.geo-solutions.it
> http://geo-solutions.blogspot.com/
> http://www.youtube.com/user/GeoSolutionsIT
> http://www.linkedin.com/in/andreaaime
> http://twitter.com/geowolf
>
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> Geoserver-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geoserver-devel
>
--
Justin Deoliveira
OpenGeo - http://opengeo.org
Enterprise support for open source geospatial.
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Geoserver-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-devel