Harvests ArcGIS REST JSON metadata endpoints into single JSON file.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
LICENSE
README.md
cli.js
index.js
package.json

README.md

#ESRI Service Catalog

This tool is shipped with a module and a CLI. You can import the module directly in your project or use the CLI directly. The library will walk an ArcGIS endpoint and harvest metadata into a single JSON file.

###Install

npm install tesera/esri-service-catalog --global

###Usage

$ esri-catalog --help
Usage: cli [options] <url>

  Options:

    -h, --help        output usage information
    -V, --version     output the version number
    --include-layers  Should it harvest layer level metadata?
    
$ esri-catalog http://your-server.com/arcgis.rest/services > meta.json
$ cat meta.json
{
  "folderServices": {
    "http://your-server.com/rest/services/your-folder": [
      "http://your-server.com/rest/services/your-folder-1/your-service-1/MapServer"
    ],
    "http://your-server.com/rest/services/your-folder-2": [
      "http://your-server.com/rest/services/your-folder-2/your-service-1/MapServer",
      "http://your-server.com/rest/services/your-folder-2/your-service-2/MapServer"
    ]
  },
  "folders": [
    "http://your-server.com/rest/services/your-folder-1",
    "http://your-server.com/rest/services/your-folder-2"
  ],
  "services": [
    "http://your-server.com/rest/services/your-folder-1/your-service-1/MapServer",
    "http://your-server.com/rest/services/your-folder-2/your-service-1/MapServer",
    "http://your-server.com/rest/services/your-folder-2/your-service-2/MapServer"
  ],
  "metadata": {
    "http://your-server.com/rest/services/your-folder-1": {
      "currentVersion": 10.4,
      "folders": [],
      "services": [
        {
          "name": "your-folder-1/your-service-1",
          "type": "MapServer"
        },
        {
          "name": "your-folder-1/your-service-2",
          "type": "MapServer"
        },
      ]
    }
    ...
  }
}