Skip to content
This repository was archived by the owner on Jul 9, 2024. It is now read-only.
/ ess-rest-testing Public archive

Node scripts to test ArcGIS REST API endpoints for Tech Support purposes.

Notifications You must be signed in to change notification settings

benelan/ess-rest-testing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Test ArcGIS REST API

This app was created for Esri Support Services to help employees test the speed and accuracy of geocoding and basemap REST requests

Using the App

To run the app you must have Node installed. With Node installed, navigate to the project directory and type:

npm install

Next, make sure to add your ArcGIS Online credentials in the config.json file which is used to create the token:

module.exports = function () {
this.u = "USERNAME";
this.p = "PASSWORD";
};

Then you can run the tests by typing:

node run.js

The results logged in the console should look something like:

---------------- Token ----------------
*...*

---------------- Basemap ----------------
Esri duration: 96 ms
Amazon duration: 249 ms
responses match: true

---------------- Geocode ----------------
Esri duration: 528 ms
Amazon duration: 482 ms
responses match: true

About

Node scripts to test ArcGIS REST API endpoints for Tech Support purposes.

Topics

Resources

Stars

Watchers

Forks

Contributors 2

  •  
  •