OneDrive API - Sharepoint - 对 URL root 进行调用
OneDrive API - Sharepoint - Make calls against a URL root
参考 OneDrive API 文档 here,Make calls against a URL root
部分有 table 引用 SharePoint Online 服务,指出其 url 是:
https://{tenant}.sharepoint.com/{site-relative-path}/_api/v2.0
{site-relative-path}
指的是什么?
不确定您对 SharePoint 的熟悉程度,但 {site-relative-path}
是团队网站的相对路径。因此,如果您有一个名为 "Contoso" 的团队站点,并且它位于 https://testTenant.sharepoint.com/sites/contoso
,那么相对路径将为 /sites/contoso
参考 OneDrive API 文档 here,Make calls against a URL root
部分有 table 引用 SharePoint Online 服务,指出其 url 是:
https://{tenant}.sharepoint.com/{site-relative-path}/_api/v2.0
{site-relative-path}
指的是什么?
不确定您对 SharePoint 的熟悉程度,但 {site-relative-path}
是团队网站的相对路径。因此,如果您有一个名为 "Contoso" 的团队站点,并且它位于 https://testTenant.sharepoint.com/sites/contoso
,那么相对路径将为 /sites/contoso