REST Services

406
2
01-13-2012 07:24 AM
deleted-user-K_IRAXrpGKsG
New Contributor III
This may be an easy question, but I'm curious as to what REST is and how it can be used in ESRI JavaScript. Does anyone know of any helpful links or videos about this, or maybe some examples of using REST with JavaScript? Thank you in advance!

-Pat
0 Kudos
2 Replies
derekswingley1
Frequent Contributor
This is a big, broad question. There's tons of great information on the web. Start with wikipedia and branch out from there. That being said, in practice, and this is definitely an oversimplification, REST usually refers to making an http request to some URL and getting a JSON response back. There are several finer points to argue but I think this definition is plenty to get you started.

The JS API is built on the ArcGIS Server REST API and uses REST extensively. Anytime you're using the JS API to talk to an ArcGIS Server, you're using the REST API. Everything from adding layers to a map, to geocoding to using feature layers uses REST via the ArcGIS Server REST API.
0 Kudos
deleted-user-K_IRAXrpGKsG
New Contributor III
Awesome response, thanks so much!
0 Kudos