可以使用 SharePoint 自己的本机 REST API 或使用 Microsoft Graph API 访问 SharePoint Online。我已经简要探讨了这两个 API,并看到了功能方面的差异,例如,SharePoint API 具有函数类型方法调用 (GetByTitle()),而 Graph API 似乎支持基于身份的访问,或“站点路径” . 我的观点是,SharePoint 可以通过在 URL 中使用“函数”来轻松访问资源,但是,我不确定它是否是 RESTful。了解您对这方面的看法会很有帮助。
鉴于推荐的前进方式有两个选项(SharePoint 和 Graph),考虑以下标准:
- 未来证明 - 在增强方面,来自 Microsoft 的支持
- 表现
- 功能覆盖 - 考虑当前版本的 Graph API
另外,如果有人分享链接,我找不到任何关于此的 Microsoft 建议。
谢谢。