SharePoint REST operations via the Microsoft Graph REST API
If you are looking for the legacy SharePoint REST API documentation, see Complete basic operations using SharePoint REST endpoints.
For SharePoint Online, innovation using a REST API against SharePoint is driven via the Microsoft Graph REST API's. In scenarios where solutions already have access tokens available to access SharePoint content, it's possible to access the REST API natively within SharePoint instead of calling via the Microsoft Graph API.
Below is a table outlining a set of the Microsoft Graph endpoints being backed by SharePoint Online.
If your solution already uses other Microsoft Graph REST API's, it is recommended to call API's via the Microsoft Graph REST endpoints for easier code management.
To figure out if a Microsoft Graph REST API call is backed by SharePoint Online you can add
$whatif to the end of the query to output the underlying SharePoint URL.