Hi guys, i am back with a useful article. In this Article i am sharing some useful SharePoint Rest API URLs we can apply to the SharePoint. You can get to know about the SharePoint REST services in this link. To try out these URLs you just need a SharePoint environment access and basic familiarity with REST Services and how to construct REST requests. You can directly try the URL in this Format
https://<SiteURl>/_api/<EndPoints>
Here are the lists of useful SharePoint REST API URLs
- _api/web/title - Retrieves the title of a site
- _api/lists - Retrieves all lists on a site
- _api/lists/getbytitle('listname') - Retrieves a single list's metadata
- _api/lists/getbytitle('listname')/items - Retrieves items within a list
- _api/lists/getbytitle('listname')?select=Title - Retrieves a specific property of a document
- _api/web/webinfos/add - Creating a site with REST (POST Method - Needs Parameters)
- _api/web/lists(guid'{list_guid}') - retrieve a specific list if you know its GUID
- _api/web/lists/GetByTitle('List Title') - retrieve a specific list if you know its title
- _api/web/GetFolderByServerRelativeUrl('/Shared Documents') - retrieve the root folder of your Shared Documents library
- _api/web/folders - create a folder (POST Method - Needs Parameters)
- _api/web/GetFolderByServerRelativeUrl('/Folder Name')/Files - retrieve all of the files in a folder
- _api/web/GetFolderByServerRelativeUrl('/Folder Name')/Files('{file_name}')/$value - retrieve a specific file
- _api/web/GetFileByServerRelativeUrl('/Folder Name/{file_name})/$value - retrieve a file when you know its URL
- _api/web/GetFolderByServerRelativeUrl('/Folder Name')/Files/add(url='a.txt',overwrite=true) - create a file and add it to a folder
- _api/web/GetFileByServerRelativeUrl('/Folder Name/{file_name}')/CheckOut() - check out a file
- _api/web/GetFileByServerRelativeUrl('/Folder Name/{file_name}')/CheckIn(comment='Comment',checkintype=0) - check in a file
- _api/web/lists/getbytitle('{list_title}')/items({item+id})/AttachmentFiles/ - retrieve all of the files that are attached to a list item
- _api/web/lists/getbytitle('{list_title}')/items({item_id})/AttachmentFiles('{file_name}')/$value - retrieve a file that is attached to a list item
- _api/SP_TenantSettings_ - Current Retrieve the URL of the tenant app catalog
Source of these URLs - Microsoft Docs
Hope these URL will be useful in your process of fetching or sending data to SharePoint. this URLs are SharePoint REST API V1. SharePoint REST API V2 is also available check it out on Microsoft docs.
Comments