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?

  • what do you mean select a service? your new layer will show up in both by default. – Ian Turton Jan 10 '14 at 12:56
  • If I look in the webadmin at the workspace I added through the REST-API. I don't see a mark at the services WMS and WFS. – Stefan Jan 10 '14 at 16:43
  • A workspace should contain layers which will show up in the wms and wfs – Ian Turton Jan 11 '14 at 10:27
  • If I want the service to be only WMS, I can select that at the workspace. Am I right? – Stefan Jan 13 '14 at 9:35
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

  • But how can I use it? I am not understanding reading the documentation. May you tell me? – Falcoa Jan 19 '17 at 14:45
  • @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 3:27

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.