From the course: SharePoint Framework Essential Training
Unlock this course with a free trial
Join today to access over 24,600 courses taught by industry experts.
Structure of SharePoint REST API
From the course: SharePoint Framework Essential Training
Structure of SharePoint REST API
- [Instructor] When you call this REST API, there are two things you need to know about, authentication and what is the structure or the functionality of the REST API. Let me get authentication out of the way. When you use SPFx, you're going to work in session. With the add-in model, there is a way of getting an access token, but the add-in model is on its way to deprecation, so I'm not going to worry about that. So effectively, you're on the same page as the SharePoint site itself, so really all we need to care about is the structure of the REST API, so let's understand that a little bit better. So you're going to call it at whatever site collection you're on, /_api, and then if you're working with the site related details, you would say /web, if you're working with site collection, you would say /site. Then you would pass in either what object or property or indexer or method you're trying to work with. So for example, if I was reading the title of the site, it would be…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.