REST API

The main view API onto the map is provided via a REST interface. At some point this needs to be secured so that we can have restricted views.

GET

<path>/rest/map/{mapname}

Display a section of map. Specified by top left coordinate and width/height.

<path>/rest/map/{mapname}/area/{areaname}

Display a named area of the map. The whole area will be displayed. If bleed is true, then a full rectangle is displayed, otherwise tiles in different areas will be displayed as blank.

<path>/rest/map/{mapname}/thing/{thingname}

Display a region around the named thing.

 
mapcraftweb/rest.txt · Last modified: 2010/12/04 14:03 by sam
 
Recent changes RSS feed Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki