2

Is it possible to select a service (WMS / WFS) through the Geoserver REST-API?

I know how to add a workspace through the REST-API, like this

curl -v -u admin:geoserver -XPOST -H "Content-type: text/xml" -d "<workspace><name>workspacename</name></workspace>" %resturl%/workspaces

But I would like to add a service (WMS or WFS or both) through the REST-API. If this is possible I don't have to go the the webadmin-page the select the service manually. Does someone know if this is possible?

PolyGeo
  • 65,136
  • 29
  • 109
  • 338
Stefan
  • 2,152
  • 3
  • 20
  • 33

1 Answers1

1

I think this question is asking whether it's possible (or was possible 2014) to configure whether a set of data can be served as a WMS or WFS etc using the GeoServer 'REST' API.

At the time of the question being asked I think the answer was no.

There was a request GSIP 76 Extend REST API to configure settings and OWS services to add such capability (11 Jun 2014).

The API now provides such capability through the /services/.../settings URL pattern. See the GeoServer OWS Services documentation for details

nmtoken
  • 13,355
  • 5
  • 38
  • 87
  • But how can I use it? I am not understanding reading the documentation. May you tell me? – Falcoa Jan 19 '17 at 14:45
  • 1
    @Falcoa : If you have a new question, please ask it as a new question. This isn't a forum. Please say what you are trying to do, what you've already looked, what you tried, and what the results were, plus what you expected to happen instead. – BradHards Jan 21 '17 at 03:27