REST¶
Reference¶
- How the SharePoint REST service works
- Determine SharePoint REST service endpoint URIs
- Use OData query operations in SharePoint REST requests
- SharePoint & Office 365 REST API Resources
- Using REST API For Selecting, Filtering, Sorting And Pagination in SharePoint List
API Guidlines¶
Tools¶
- SharePoint REST API Metadata Explorer
- Powerful HTTP and GraphQL tool belt
- Explore SharePoint REST API with Chrome F12 cURL (bash) to Postman
- SharePoint Framework - Rest API Tester
Postman¶
- postman-and-office-365
- Using Postman with the Microsoft Graph
- Configure Postman to be easily used with any Azure AD protected API (SharePoint, Graph, custom etc.)
- Announcing Microsoft Graph Postman Collections
- Microsoft Graph Mailbag – Explore Microsoft Graph with Postman
- Advanced Testing with Postman - Bearer Token Authentication via scripting
Testing¶
Testing in chrome console
fetch(`/sites/gridworks/_api/web/lists/getbytitle('SiteRequestsQueue')/items?$select=Id,Title,gwRequestSiteAlias&$orderby=Id desc`, {
headers: {
Accept: 'application/json;odata=verbose;'
}
}).then(res => res.json().then(json => {
json.d.results.forEach(item => {
console.log(`item: ${item.Title}`);
});
}));