Working with the REST API


About the ArcGIS for Server REST API

Representational State Transfer (REST) is an architectural style utilized by networked systems, such as the Web, to access resources. As a REST system, the Web is composed of resources. When the representation of a resource is returned to a Web client, the client transfers to a state. 
Upon each new resource request, the client state is changed (transfers). REST systems can use Web standards, such as Hypertext Transfer Protocol (HTTP), uniform resource locators (URLs), Hypertext Markup Language (HTML), JavaScript Object Notation (JSON), and mime types to expose and utilize resources as Web services. 
REST Web services provide access to resources via a uniform resource identifier (URI) and an HTTP GET request. Input parameters used to interact with a resource are provided using a set of argument and value pairs in the URI. REST Web services are characterized by stateless interaction, cached content, and a uniform interface of named resources.  
The ArcGIS for Server REST application programming interface (API) adheres to REST Web service characteristics. ArcGIS for Server services are exposed as resources for stateless interaction. The REST API can be utilized by Esri (for example, ArcGIS for Server JavaScript API) and non-Esri clients (clients who are not using an Esri product). In both situations, REST API interaction is the same. As a result, a stand-alone REST API Help system is available for Esri and non-Esri clients. The REST API Help system includes ArcGIS for Server service type discussions and a detailed library reference, which can be found in the following locations:
  • The REST API is available on the ArcGIS Resource Center.
  • Each ArcGIS for Server instance configured for use with ArcGIS for Server includes the REST API. When installing ArcGIS for Server with the Web Applications option (default), an ArcGIS instance configures with a Web server and includes the REST API. If installed on a Web server using the default instance name (ArcGIS), the REST API is available at http://<servername>/ArcGIS/SDK/REST.
  • When installing the Web Application Developer Framework (ADF) with the integrated Help option, the REST API documentation is included in <ArcGIS Developer Kit install location>\Help\REST. Program menu item links to the REST Help system point to this location on disk.


See Also:

Developing applications with JavaScript APIs
Developing applications with Rich Interactive Application APIs