Skip to content
This repository was archived by the owner on Mar 2, 2021. It is now read-only.

MapCatalog API Reference

gourlaysama edited this page Sep 13, 2012 · 13 revisions

This is a draft of the API Specification of the MapCatalog.

Errors

In any of the API calls below, any input error will return

Status: 400 Bad Request

List workspaces

GET /serviceapi/workspaces

Parameters

None

Response

Status: 200 OK
<?xml version="1.0" encoding="utf-8"?>
<workspaces>
  <workspace>
    <name>default</name>
  </workspace>
  <workspace>
    <name>toto</name>
  </workspace>
  ...
</workspaces>

Get the content of a workspace

GET /serviceapi/workspaces/:name

Parameters

  • name (required): the name of the workspace

Response

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 a specific context

GET /serviceapi/workspaces/:name/:id

Parameters

  • name (required): the name of the workspace
  • id (required): the identifier of the map context to retrieve

Response

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>
Clone this wiki locally