Skip to Content
Mastering ArcGIS Enterprise Administration
book

Mastering ArcGIS Enterprise Administration

by Chad Cooper
October 2017
Intermediate to advanced
382 pages
11h 26m
English
Packt Publishing
Content preview from Mastering ArcGIS Enterprise Administration

Interrogating a REST endpoint with curl and Node.js

A couple of years back, I needed to interrogate some services at a REST endpoint to get information about the fields and aliases in the service layers. What I really needed was a list of each field name and its alias, preferably separated by a comma; basically, I wanted a CSV file. Something made me think of using curl (https://curl.haxx.se) to query the REST endpoint to get at the JSON behind the service, but then I had to parse the JSON. Well, the JSON format is based on a subset of the JavaScript programming language, so I wondered if Node.js could parse the JSON. I eventually ran across the json npm package, which is a command-line tool for working with JSON. To follow along, you will ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Mastering ArcGIS Server Development with JavaScript

Mastering ArcGIS Server Development with JavaScript

Raymond Kenneth Doman

Publisher Resources

ISBN: 9781788297493Supplemental Content