Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Difference between Office 365 REST Api and Microsoft Graph

I would like to know difference between Office 365 REST API and Microsoft Graph, since we could find similar functionality for both of these.

https://msdn.microsoft.com/en-us/office/office365/howto/rest-api-overview

Following is the text from above link:

Office 365 API functionality is also available through Microsoft Graph, a unified API that includes APIs from other Microsoft services such as Outlook, OneDrive, OneNote, Planner, and Office Graph, accessible through a single endpoint and with a single access token.

If there is no such difference, do you plan to deprecate any of these?

Thanks

like image 810
Purva Avatar asked Mar 29 '16 08:03

Purva


People also ask

What is the difference between graph API and REST API?

The core difference between GraphQL and REST APIs is that GraphQL is a specification, a query language, while REST is an architectural concept for network-based software. Note: This article is mostly server-side related. GraphQL is gaining momentum as a successor to REST APIs.

Is Microsoft Graph API a REST API?

In this articleMicrosoft Graph is a RESTful web API that enables you to access Microsoft Cloud service resources. After you register your app and get authentication tokens for a user or service, you can make requests to the Microsoft Graph API.

What is Microsoft Graph API used for?

The Microsoft Graph API offers a single endpoint, https://graph.microsoft.com , to provide access to rich, people-centric data and insights in the Microsoft cloud, including Microsoft 365, Windows, and Enterprise Mobility + Security.

Is MS graph API deprecated?

Azure Active Directory (Azure AD) Graph is deprecated and will be retired at any time after June 30, 2023, without advance notice, as we announced in September, 2022.


2 Answers

Microsoft API is one endpoint solution to access the Office 365 services like mails, calendars and .etc. By using the graph api, no more obtaining separate tokens for different services or calling a different endpoint for each API.

Some features may be available on the individual service endpoints, but not yet on Microsoft Graph. We are working hard to bridge these gaps. If you require one of these features, you can use the individual endpoint in the meantime. Check the release notes for details on the Microsoft Graph features in preview and generally available.

For details, you could refer the document Choosing your API endpoint.

like image 181
Jeffrey Chen Avatar answered Nov 05 '22 10:11

Jeffrey Chen


The Documentation state that Office 365 API functionality is also available through the Microsoft Graph, a unified API that includes APIs from other Microsoft services such as Outlook, OneDrive, OneNote, Planner, and Office Graph, accessible through a single endpoint and with a single access token. We recommend using the Microsoft Graph in your apps when possible.

Also see this answer it says

Our recommendation is for you to use Microsoft Graph as long as it has the features/APIs you need in production to support your production apps, or at least in Preview to support app development. This makes it easy for you, in the future, to expand your app functionality requiring access to multiple Microsoft services, without changing endpoints. You can use individual service endpoints such as Outlook REST API if you need a feature that is only available in the individual service endpoint, either in production (v2.0) or as preview (beta).

like image 37
Same7Farouk Avatar answered Nov 05 '22 11:11

Same7Farouk