Thanks Dave,
I probably meant bulk rather than batch - I'll have a go at using your
Python client now - looks like the perfect solution!
Cheers,
Gavin
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/
>
>
------------------------------------------------------------------------------
Get a FREE DOWNLOAD! and learn more about uberSVN rich system,
user administration capabilities and model configuration. Take
the hassle out of deploying and managing Subversion and the
tools developers use with it. http://p.sf.net/sfu/wandisco-d2d-2
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users