The GeoServer REST API does not natively provide *any* batch operations.
Since the REST API is primarily intended for programmatic use, it is
expected that any user of it will have looping constructs available.  For
example, if you wanted to add "special" as a keyword to each layer using the
Python REST API client[1] that I work on, you would write:

from geoserver.catalog import Catalog
> cat = Catalog("http://localhost:8080/geoserver/rest";)
> for rs in cat.get_resources():
>     rs.keywords = rs.keywords + ["special"]
>     cat.save(rs)
>

[1]: http://github.com/dwins/gsconfig.py/

--
David Winslow
OpenGeo - http://opengeo.org/

On Tue, Aug 16, 2011 at 3:40 AM, Gavin Jackson <[email protected]>wrote:

> Hi guys,
>
> How would I go about batch updating layer metadata - I had a look at the
> REST interface doco, but the answer wasn't jumping out at me - have I missed
> something really obvious?
>
> I would like to make batch change to the following layer attributes:
>
>    - title
>    - abstract
>    - keywords
>    - metadata links
>
> Any thoughts guys?
>
> --
> Cheers,
> Gav
>
> *{e}* [email protected] *{mb}* 0422 443 980 *{w}* 02 6246 4467
> *{skype} *gavin6252 *{twitter} *@gavz *{blog} *www.gavinj.net
>
>
>
>
> ------------------------------------------------------------------------------
> uberSVN's rich system and user administration capabilities and model
> configuration take the hassle out of deploying and managing Subversion and
> the tools developers use with it. Learn more about uberSVN and get a free
> download at:  http://p.sf.net/sfu/wandisco-dev2dev
>
> _______________________________________________
> Geoserver-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>
>
------------------------------------------------------------------------------
uberSVN's rich system and user administration capabilities and model 
configuration take the hassle out of deploying and managing Subversion and 
the tools developers use with it. Learn more about uberSVN and get a free 
download at:  http://p.sf.net/sfu/wandisco-dev2dev
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to