Forum Discussion

Dave Kerrigan's avatar
Dave Kerrigan
Copper Contributor
Mar 09, 2021

SharePoint REST Vs Microsoft Graph

When planning development projects there are a few options if you need to integrate to SharePoint. The most obvious options are SharePoint REST API, CSOM and Microsoft Graph. It appears that Graph is being promoted most by Microsoft, but doesn’t yet have the same coverage as SharePoint REST. Also, SPFx seems to still use SharePoint REST as the default.

 

Is there any guidance or future direction from Microsoft on which API to use (or when to use)? The picture is also made a bit more cloudy by SharePoint REST v2. 

 

I'm particularly interested in how things might like in 1, 2, 3 years time,  will SharePoint REST be legacy then? Will the gaps in Graph be filled? Or will SharePoint REST continue to be the default for SPFx and be the first target for innovations that then make it into Graph?

 

2 Replies

    • OBozok's avatar
      OBozok
      Copper Contributor
      I am new to development and had the same question. It looks like Sharepoint Rest API v1 is now "legacy" and when you click on Sharepoint Rest API v2, it talks about Graph API. I am curious are there cases where using Rest API v1 would be better?