Edit Services Directory

Description

With this operation you can enable or disable the HTML view of ArcGIS REST API (also known as the Services Directory). You can also adjust the JavaScript and map viewer previews of services in the Services Directory so that they work with your own locally hosted JavaScript API and map viewer.

NoteNote:

When the Services Directory is disabled, the HTML view is not accessible. However, the REST API is still available.

Request Parameters

Parameter

Details

f

The response format. The default response format is html.

Values: html | json

allowedOrigins

Comma-separated list of URLs of domains allowed to make requests. * can be used to denote all domains.

arcgis.com.map

URL of the map viewer application used for service previews. Defaults to the ArcGIS.com map viewer but could be used to point at your own Portal for ArcGIS map viewer.

arcgis.com.map.text

The text to use for the preview link that opens the map viewer.

jsapi.arcgis

The URL of the JavaScript API to use for service previews. Defaults to the online ArcGIS API for JavaScript, but could be pointed at your own locally-installed instance of the JavaScript API.

jsapi.arcgis.css

CSS file associated with the ArcGIS API for JavaScript. Defaults to the online Dojo tundra.css.

jsapi.arcgis.css2

Additional CSS file associated with the ArcGIS API for JavaScript. Defaults to the online esri.css.

jsapi.arcgis.sdk

URL of the ArcGIS API for JavaScript help.

servicesDirEnabled

Flag to enable/disable the HTML view of the services directory.

Values: true | false

Example

http://server:port/arcgis/admin/handlers/rest/servicesdirectory/edit
	allowedOrigins=*
 arcgis.com.map=http://www.arcgis.com/home/webmap/viewer.html
 arcgis.com.map.text=ArcGIS.com Map
 jsapi.arcgis=http://serverapi.arcgisonline.com/jsapi/arcgis/?v=3.3
 jsapi.arcgis.css=http://serverapi.arcgisonline.com/jsapi/arcgis/3.3/js/dojo/dijit/themes/tundra/tundra.css
 jsapi.arcgis.css2=http://serverapi.arcgisonline.com/jsapi/arcgis/3.3/js/esri/css/esri.css
 jsapi.arcgis.sdk=http://help.arcgis.com/en/webapi/javascript/arcgis/
 servicesDirEnabled=false

7/5/2017