Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/benelan/ess-rest-testing
- Owner: benelan
- Archived: true
- Created: 2020-07-01T21:01:48.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2024-07-09T11:03:32.000Z (6 months ago)
- Last Synced: 2024-10-04T14:41:12.880Z (3 months ago)
- Topics: arcgis, esri, node, rest, testing-repo
- Language: JavaScript
- Homepage:
- Size: 9.77 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
```