Skip to content
Paul Chote edited this page Dec 21, 2018 · 17 revisions

Map API

Download map using its Hash:

http://resource.openra.net/map/MAPHASH

where MAPHASH is a hash uid for requested map.
Map will be served with Content-Disposition header and name will look like: mapname-revisionid.oramap.
If map with specified hash is not found, 404 error is served.

Get map info by hash:

http://resource.openra.net/map/hash/MAPHASH[,MAPHASH1,MAPHASHn]

where MAPHASH is a hash uid for requested map.
As a result of request, you will get a JSON page with basic map information.
If map with specified hash is not found, 404 error is served.
If /yaml/ prefix is added in the end of URL, YAML page will be served.

Get map info by ID:

http://resource.openra.net/map/id/MAP_ID[,MAP_ID1,MAP_IDn]

where MAP_ID is an ID for requested map.
As a result of request, you will get a JSON page with basic map information.
If map with specified ID is not found, 404 error is served.
If /yaml/ prefix is added in the end of URL, YAML page will be served.

Get map url by hash

http://resource.openra.net/map/url/MAPHASH

where MAPHASH is a hash uid for requested map.
AS a result of request, you will get a JSON page containing map's url and some additional info you might need.
If map with specified hash is not found, 404 error is served.
If /yaml/ prefix is added in the end of URL, YAML page will be served.

Get info of the newest map:

http://resource.openra.net/map/lastmap/

As a result of request, you will get a JSON page with basic map information.
If /yaml/ prefix is added in the end of URL, YAML page will be served.