Oh! 365 blog

Office 365 と生きていく

SharePoint REST API のエンドポイントの一覧

SharePoint / SharePoint Online において、内部的なプロパティ値の確認したい場面では REST API が便利です。特に GET に関しては、ブラウザの URL に直接入力することで実行できるのでとても便利です。業務でよく使うのですが、リファレンスが少ないので、Web スクレイピングを利用して一覧を作成してみました。

Note:

これらは REST API の返り値に含まれる link 要素を再帰的に参照し、一覧化したものです。そのため、返り値に含まれないエンドポイントなどが含まれていない可能性があるため、網羅性や正確性を保証するものではないたことをご留意ください。

エンドポイントの一覧

/_api/Web
/_api/Web/Activities
/_api/Web/ActivityLogger
/_api/Web/Alerts
/_api/Web/AllProperties
/_api/Web/AppTiles
/_api/Web/AssociatedMemberGroup
/_api/Web/AssociatedOwnerGroup
/_api/Web/AssociatedVisitorGroup
/_api/Web/Author
/_api/Web/AvailableContentTypes
/_api/Web/AvailableFields
/_api/Web/AvailableFields(guid'GUID')
/_api/Web/AvailableFields(guid'GUID')/DescriptionResource
/_api/Web/AvailableFields(guid'GUID')/TitleResource
/_api/Web/CanModernizeHomepage
/_api/Web/ClientWebParts
/_api/Web/ContentTypes
/_api/Web/ContentTypes(ID)
/_api/Web/ContentTypes(ID)/DescriptionResource
/_api/Web/ContentTypes(ID)/FieldLinks
/_api/Web/ContentTypes(ID)/Fields
/_api/Web/ContentTypes(ID)/NameResource
/_api/Web/ContentTypes(ID)/Parent
/_api/Web/ContentTypes(ID)/WorkflowAssociations
/_api/Web/CurrentUser
/_api/Web/DataLeakagePreventionStatusInfo
/_api/Web/DescriptionResource
/_api/Web/EventReceiver/GetById(guid'GUID')
/_api/Web/EventReceivers
/_api/Web/Features
/_api/Web/Features/GetById(guid'GUID')
/_api/Web/Fields
/_api/Web/FirstUniqueAncestorSecurableObject
/_api/Web/Folders
/_api/web/GetFolderByServerRelativeUrl('/SITES/SITENAME/LIBRARY/FOLDER')/Files('FILENAME.xlsx')
/_api/Web/GetFolderByServerRelativePath(decodedurl='/sites/sitename/Shared Documents/Folder')
/_api/Web/GetFolderByServerRelativePath(decodedurl='/sites/sitename/Shared Documents/Folder')/Files
/_api/Web/GetFolderByServerRelativePath(decodedurl='/sites/sitename/Shared Documents/Folder')/Folders
/_api/Web/GetFolderByServerRelativePath(decodedurl='/sites/sitename/Shared Documents/Folder')/ListItemAllFields
/_api/Web/GetFolderByServerRelativePath(decodedurl='/sites/sitename/Shared Documents/Folder')/ParentFolder
/_api/Web/GetFolderByServerRelativePath(decodedurl='/sites/sitename/Shared Documents/Folder')/Properties
/_api/Web/GetFolderByServerRelativePath(decodedurl='/sites/sitename/Shared Documents/Folder')/StorageMetrics
/_api/Web/GetUserById(ID)
/_api/Web/GetUserById(ID)/Alerts
/_api/Web/GetUserById(ID)/Groups
/_api/Web/HostedApps
/_api/Web/Lists
/_api/Web/Lists(guid'GUID')
/_api/Web/Lists(guid'GUID')/Author
/_api/Web/Lists(guid'GUID')/ContentTypes
/_api/Web/Lists(guid'GUID')/CreatablesInfo
/_api/Web/Lists(guid'GUID')/DefaultView
/_api/Web/Lists(guid'GUID')/DescriptionResource
/_api/Web/Lists(guid'GUID')/EventReceivers
/_api/Web/Lists(guid'GUID')/Fields
/_api/Web/Lists(guid'GUID')/FirstUniqueAncestorSecurableObject
/_api/Web/Lists(guid'GUID')/Forms
/_api/Web/Lists(guid'GUID')/InformationRightsManagementSettings
/_api/Web/Lists(guid'GUID')/Items
/_api/Web/Lists(guid'GUID')/ParentWeb
/_api/Web/Lists(guid'GUID')/RoleAssignments
/_api/Web/Lists(guid'GUID')/RootFolder
/_api/Web/Lists(guid'GUID')/RootFolder/Files
/_api/Web/Lists(guid'GUID')/Subscriptions
/_api/Web/Lists(guid'GUID')/TitleResource
/_api/Web/Lists(guid'GUID')/UserCustomActions
/_api/Web/Lists(guid'GUID')/Views
/_api/Web/Lists(guid'GUID')/WorkflowAssociations
/_api/Web/Lists/GetByTitle('TITLE')
/_api/Web/Lists/GetByTitle('TITLE')/Author
/_api/Web/Lists/GetByTitle('TITLE')/ContentTypes
/_api/Web/Lists/GetByTitle('TITLE')/CreatablesInfo
/_api/Web/Lists/GetByTitle('TITLE')/DefaultView
/_api/Web/Lists/GetByTitle('TITLE')/DescriptionResource
/_api/Web/Lists/GetByTitle('TITLE')/EventReceivers
/_api/Web/Lists/GetByTitle('TITLE')/Fields
/_api/Web/Lists/GetByTitle('TITLE')/FirstUniqueAncestorSecurableObject
/_api/Web/Lists/GetByTitle('TITLE')/Forms
/_api/Web/Lists/GetByTitle('TITLE')/InformationRightsManagementSettings
/_api/Web/Lists/GetByTitle('TITLE')/Items
/_api/Web/Lists/GetByTitle('TITLE')/ParentWeb
/_api/Web/Lists/GetByTitle('TITLE')/RoleAssignments
/_api/Web/Lists/GetByTitle('TITLE')/RootFolder
/_api/Web/Lists/GetByTitle('TITLE')/RootFolder/Files
/_api/Web/Lists/GetByTitle('TITLE')/Subscriptions
/_api/Web/Lists/GetByTitle('TITLE')/TitleResource
/_api/Web/Lists/GetByTitle('TITLE')/UserCustomActions
/_api/Web/Lists/GetByTitle('TITLE')/Views
/_api/Web/Lists/GetByTitle('TITLE')/WorkflowAssociations
/_api/Web/ListTemplates
/_api/Web/ListTemplates()
/_api/Web/MultilingualSettings
/_api/Web/MultilingualSettings/Recipients
/_api/Web/Navigation
/_api/Web/Navigation/GetNodeById(ID)
/_api/Web/Navigation/GetNodeById(ID)/Children
/_api/Web/Navigation/QuickLaunch
/_api/Web/Navigation/TopNavigationBar
/_api/Web/OneDriveSharedItems
/_api/Web/ParentWeb
/_api/Web/PushNotificationSubscribers
/_api/Web/RecycleBin
/_api/Web/RegionalSettings
/_api/Web/RegionalSettings/InstalledLanguages
/_api/Web/RegionalSettings/TimeZone
/_api/Web/RegionalSettings/TimeZones
/_api/Web/RoleAssignments
/_api/Web/RoleAssignments/GetByPrincipalId(ID)
/_api/Web/RoleAssignments/GetByPrincipalId(ID)/Member
/_api/Web/RoleAssignments/GetByPrincipalId(ID)/RoleDefinitionBindings
/_api/Web/RoleDefinitions
/_api/Web/RoleDefinitions(ID)
/_api/Web/RootFolder
/_api/Web/SiteCollectionAppCatalog
/_api/Web/SiteGroups
/_api/Web/SiteGroups/GetById(ID)
/_api/Web/SiteGroups/GetById(ID)/Owner
/_api/Web/SiteGroups/GetById(ID)/Users
/_api/Web/SiteUserInfoList
/_api/Web/SiteUserInfoList/Author
/_api/Web/SiteUserInfoList/ContentTypes
/_api/Web/SiteUserInfoList/ContentTypes(ID)
/_api/Web/SiteUserInfoList/ContentTypes(ID)/DescriptionResource
/_api/Web/SiteUserInfoList/ContentTypes(ID)/FieldLinks
/_api/Web/SiteUserInfoList/ContentTypes(ID)/Fields
/_api/Web/SiteUserInfoList/ContentTypes(ID)/NameResource
/_api/Web/SiteUserInfoList/ContentTypes(ID)/Parent
/_api/Web/SiteUserInfoList/ContentTypes(ID)/WorkflowAssociations
/_api/Web/SiteUserInfoList/CreatablesInfo
/_api/Web/SiteUserInfoList/DefaultView
/_api/Web/SiteUserInfoList/DescriptionResource
/_api/Web/SiteUserInfoList/EventReceivers
/_api/Web/SiteUserInfoList/Fields
/_api/Web/SiteUserInfoList/Fields(guid'GUID')
/_api/Web/SiteUserInfoList/Fields(guid'GUID')/DescriptionResource
/_api/Web/SiteUserInfoList/Fields(guid'GUID')/TitleResource
/_api/Web/SiteUserInfoList/FirstUniqueAncestorSecurableObject
/_api/Web/SiteUserInfoList/Forms
/_api/Web/SiteUserInfoList/InformationRightsManagementSettings
/_api/Web/SiteUserInfoList/Items
/_api/Web/SiteUserInfoList/Items(ID)
/_api/Web/SiteUserInfoList/Items(ID)/AttachmentFiles
/_api/Web/SiteUserInfoList/Items(ID)/ContentType
/_api/Web/SiteUserInfoList/Items(ID)/FieldValuesAsHtml
/_api/Web/SiteUserInfoList/Items(ID)/FieldValuesAsText
/_api/Web/SiteUserInfoList/Items(ID)/FieldValuesForEdit
/_api/Web/SiteUserInfoList/Items(ID)/File
/_api/Web/SiteUserInfoList/Items(ID)/FirstUniqueAncestorSecurableObject
/_api/Web/SiteUserInfoList/Items(ID)/Folder
/_api/Web/SiteUserInfoList/Items(ID)/GetDlpPolicyTip
/_api/Web/SiteUserInfoList/Items(ID)/LikedByInformation
/_api/Web/SiteUserInfoList/Items(ID)/ParentList
/_api/Web/SiteUserInfoList/Items(ID)/Properties
/_api/Web/SiteUserInfoList/Items(ID)/RoleAssignments
/_api/Web/SiteUserInfoList/Items(ID)/Versions
/_api/Web/SiteUserInfoList/ParentWeb
/_api/Web/SiteUserInfoList/RoleAssignments
/_api/Web/SiteUserInfoList/RootFolder
/_api/Web/SiteUserInfoList/Subscriptions
/_api/Web/SiteUserInfoList/TitleResource
/_api/Web/SiteUserInfoList/UserCustomActions
/_api/Web/SiteUserInfoList/Views
/_api/Web/SiteUserInfoList/Views(guid'GUID')
/_api/Web/SiteUserInfoList/Views(guid'GUID')/ViewFields
/_api/Web/SiteUserInfoList/WorkflowAssociations
/_api/Web/SiteUsers
/_api/Web/TenantAppCatalog
/_api/Web/TenantAppCatalog/AvailableApps
/_api/Web/TenantAppCatalog/SiteCollectionAppCatalogsSites
/_api/Web/ThemeInfo
/_api/Web/TitleResource
/_api/Web/UserCustomActions
/_api/Web/WebInfos
/_api/Web/Webs
/_api/Web/WorkflowAssociations
/_api/Web/WorkflowTemplates

 

ちょっとした値の確認だけであれば、モジュールのインストール無しで利用できるため、PnP や CSOM を使うより手軽に使えます。もし抜け漏れがあれば随時追加するのでコメントいただければと思います。

 

今回の投稿は以上です。