On Thu, Aug 22, 2013 at 9:11 AM, ChrisInCambo <[email protected]>wrote:
> Hi Andrea,
>
> Thnaks. I'm looking in the docs at the datastore endpoint and I don't see
> anywhere to enable/disable. Am I looking in the right place?
>
You are, but I'd suggest you do less docs looking and more REST hitting.
Get a store, see its representation, it should have a
<enabled>true</element>
<dataStore>
<name>states_shapefile</name>
<enabled>true</enabled>
<workspace>
<name>topp</name>
<atom:link xmlns:atom="http://www.w3.org/2005/Atom" rel="alternate"
href="http://localhost:8080/geoserver/rest/workspaces/topp.xml"
type="application/xml"/>
</workspace>
<connectionParameters>
<entry key="url">file:data/shapefiles/states.shp</entry>
<entry key="namespace">http://www.openplans.org/topp</entry>
</connectionParameters>
<__default>false</__default>
<featureTypes>
<atom:link xmlns:atom="http://www.w3.org/2005/Atom" rel="alternate"
href="
http://localhost:8080/geoserver/rest/workspaces/topp/datastores/states_shapefile/featuretypes.xml"
type="application/xml"/>
</featureTypes>
</dataStore>
Send the same representation back with <enabled>false</enabled> in a PUT
request to
disable, the opposite to enable.
PUTting actually does attribute overlays, I believe you can also just put
the following:
<dataStore>
<name>states_shapefile</name>
<enabled>false</enabled>
</dataStore>
Cheers
Andrea
--
==
Our support, Your Success! Visit http://opensdi.geo-solutions.it for more
information.
==
Ing. Andrea Aime
@geowolf
Technical Lead
GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 339 8844549
http://www.geo-solutions.it
http://twitter.com/geosolutions_it
-------------------------------------------------------
------------------------------------------------------------------------------
Introducing Performance Central, a new site from SourceForge and
AppDynamics. Performance Central is your source for news, insights,
analysis and resources for efficient Application Performance Management.
Visit us today!
http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users