From the course: SharePoint Advanced: Enhancing Functionality with JavaScript

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

REST API

REST API

- [Instructor] So, here's another term that gets thrown around a lot with the assumption that everyone understands it, a REST API. Now what in the name of Murgatroyd is that? So, a REST API is a particular flavor of APIs. REST is an acronym for Representational State Transfer. Now don't you feel better now? Okay, so how it translates into real language is that with RESTful APIs you typically call for information via a special URL. You can use these in your JavaScript code but you can even type RESTful APIs directly into a browser. Now, here's an example for you. I'm going to pull information on every list inside a SharePoint site by entering a REST API URL. Now, in SharePoint, all REST APIs will start with the site name and _api. So, let me type that in first. Now I'll add in web since I'm using the online version and lists, since that's what I'm looking for, okay, let's go web and lists, great and now I'll give the command for what I want which is GetByTitle and I'm looking for the…

Contents