In order to access data and format it accordingly through the ArcGIS REST API, you will have to provide one string that contains the REST endpoint along with various parameters known as the URL parameters. URL parameters are exactly what they sound like: parameters of the data you want to be returned in a specific format accessed through the Web using the URL as the query syntax. All URL parameters will be in the following format:
http://<rest-endpoint>/operation?<parameter1=value1>&<parameter2=value2>
In the preceding example, http://<rest-endpoint> is the base URL for the feature or map service you are accessing on your ArcGIS Online or ArcGIS Server instance. The operation is the type of request you are making. For example, you would pass query if you would like to query the data. The ? query string is used to indicate the beginning...