Hello everyone!

I want to know if it is possible to enable/disable a layer using the REST
API.
I also want to toggle "Advertised" attribute by REST API, because I want to
manage a lot of layers at the same time.

I couldn't find anything about in docs, but I was trying sth like this:

PUT /geoserver/rest/layers/<layer_name>.xml

<layer>
<featureType>
    <enabled>true</enabled>
    <advertised>false</advertised>
</featureType>
</layer>


PS: I know I can do it the hard way: make a script to search and modify xml
layer files in data dir. I think it's not the right approach.


--
*JÔNATAS CASTRO*
+55 (21) 99109-7575
<http://fb.com/jonatascastro12>
<http://www.linkedin.com/pub/j%C3%B4natas-castro/58/310/3b>
<http://www.twitter.com/jonatascastro12>  <http://www.jonatascastro.com/>
------------------------------------------------------------------------------
BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
Develop your own process in accordance with the BPMN 2 standard
Learn Process modeling best practices with Bonita BPM through live exercises
http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_
source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to