User Tools

Site Tools


Sidebar

Content

Mapcraft - Fantasy map designer

WorldGen - SciFi universe generator

Mapcraft Web - Web based fantasy map designer

All code for the project is released under the GPL, and is copyright Samuel Penn.

The text on this wiki is dual licensed CC-BY-SA and GPL.

You can contact the author at sam@glendale.org.uk

mapcraftweb:rest

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: 2015/02/04 22:39 (external edit)