This repository was archived by the owner on Mar 2, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
MapCatalog API Reference
gourlaysama edited this page Sep 13, 2012
·
13 revisions
This is a draft of the API Specification of the MapCatalog.
In any of the API calls below, any input error will return
Status: 400 Bad Request
GET /serviceapi/workspaces
None
Status: 200 OK
<?xml version="1.0" encoding="utf-8"?>
<workspaces>
<workspace>
<name>default</name>
</workspace>
<workspace>
<name>toto</name>
</workspace>
...
</workspaces>GET /serviceapi/workspaces/:name
- name (required): the name of the workspace
Status: 200 OK
<?xml version="1.0" encoding="utf-8"?>
<contexts>
<context id="0" date="2012-09-12">
<title>My custom context</title>
<abstract>Some text here.</abstract>
</context>
<context id="1" date="2012-08-22">
<title>My context</title>
<abstract>Some interesting text here.</abstract>
</context>
...
</contexts>GET /serviceapi/workspaces/:name/:id
- name (required): the name of the workspace
- id (required): the identifier of the map context to retrieve
Status: 200 OK
<?xml version="1.0" encoding="utf-8"?>
<OWSContext version="0.4.2" xsi:schemaLocation="http://www.opengis.net/ows-context
http://geosysin.iict.ch/ogc_schemas/owc/owsContext_0.4.2.xsd">
...
<!-- the content of the context here -->
</OWSContext>