REST operations are essential in any SharePoint development. This series explain available REST endpoints in SharePoint 2013. First article shows how we can made a REST call in both SharePoint Hosted and Provider Hosted app.
- How to make a REST call in SharePoint App and SharePoint Provider Hosted App – Part One
- SharePoint 2013 List Operations in REST– Retrieve List Fields Basics – Part 2
Executing a REST GET call from SharePoint Provider Hosted App
You need to replace the #SPWeb from Appweb Url and #SPHost from Host web Url. App Web Url and Host Web Url is available in Url.
You can find these parameters as QueryString and available in SPAppWebUrl, SPHostUrl.
You need to specify the AppWebUrlUrl in the method below. If you are good at jQuery you can change the method by introducing Deferred Object.
Executing a REST GET call from SharePoint Hosted App
You need to specify the AppWebUrlUrl in the method below.