Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/benelan/ess-rest-testing

Node scripts to test ArcGIS REST API endpoints for Tech Support purposes.
https://github.com/benelan/ess-rest-testing

arcgis esri node rest testing-repo

Last synced: 3 months ago
JSON representation

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

Awesome Lists containing this project

README

        

# 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](https://nodejs.org/en/) 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
```