Getting Started with REST API |
SuperMap iServer offers SuperMap iServer REST APIs. Most of GIS functions are encapsulated into those APIs. Clients can use those APIs to get GIS capabilities. See REST API.
Operations to resources of SuperMap iServer can be completed by four methods of HTTP. See Constructing REST Request.
Working with SuperMap iServer Rest API can be divided into three steps:
1. Look up SuperMap iServer REST API Help, determine REST resources needed for the application, and make sure you are clear with the passing parameters and the response structure of resources.
2. Build HTTP request to access resources in accordance with the resource URI and parameters need to transfer.
3. Parse the server response and extract information needed according to the response structure of resources.
This document helps you work with SuperMap iServer REST API using JavaScript as an example, realizing outputting list of maps on the server through the maps resource
Resource interfaces: GET Request.
Files involved: json_parse.js and toJSON.js.