SharePoint REST API
You can use below REST API to retrive diffrent details from sharepoint site,list and libraries,user and group inforamtion.
Click Here to know more details about CRUD operations with REST API in SharePoint.
Click Here to know more details about CRUD operations with REST API in SharePoint.
URL | Description |
---|---|
/_api/web/lists/getbytitle('listname')/Items?$select=* | Returns SharePoint list items with all columns data |
/_api/web/lists/getbytitle('listname')/Items?$select=ID,Title | Returns SharePoint list items with all columns ID and Title |
/_api/web/Lists(guid'"+guid+"')/items | Returns list item from sharepoint list GUID |
/_api/web/lists/getbytitle('listName')/ItemCount | Returns SharePoint list items count |
/_api/web/lists/getbytitle('listname')/items(1) | Returns SharePoint list items having ID equals to 1 |
/_api/web/lists/getbytitle('listname')/Items?$select=Title&$filter=Title eq 'Test1' | Returns SharePoint list items having Title equals to Test1 |
/_api/web/lists/getbytitle('listname')/Items?$select=Title&$filter=((Title eq 'Test1') or (Title eq 'Test2')) | Returns SharePoint list items having Title equals to Test1 or Test2 |
/_api/web/lists/getbytitle('ListName')/Items?$select=Title,Category&$filter=((Title eq 'Test1') or (Title eq 'Test2')) and (Category eq 'Category1') | Returns SharePoint list items having Title equals to Test1 or Test2 and Category value is Category1 |
/_api/web/lists/getbytitle('listname')/Items?$select=*&$top=10 | Returns 10 records from sharepoint list |
/_api/web/lists/getbytitle('listname')/Items?$select=Author/Title,Editor/Title,Comment&$expand=Author/Title,Editor/Title | Returns CreatedBy and ModifiedBy name from sharepoint list |
/_api/web/lists/getbytitle('Document Library Name')/Items?$select=Title,FileLeafRef,EncodedAbsThumbnailUrl,EncodedAbsUrl | Returns FileReference URL of file uploaded in document library |
/_api/web/lists/getbytitle('listname')/BaseTemplate | Returns type of list (Example : Picture Library or Document Library) |
/_api/web/GetFolderByServerRelativeUrl('"Folder Name"')/Files | Returns file from perticular folder inside document library |
/_api/SP.UserProfiles.PeopleManager/GetMyProperties | Returns current user information |
/_api/web/siteusers | Returns site all users list |
/_api/web/GetUserById('userId')/Groups | Returns current user's group information |
/_api/web/sitegroups('Id') | Returns sharepoint group information by group Id |
/_api/web/lists/getByTitle('listname')/Views/getbytitle('Viewname')/ViewQuery | Returns sharepoint list view information by view name |
_api/web/title | Returns the title of the web or site |
/_api/lists | Returns all the lists and libraries of sharepoint site |
#RM #SharePoint #REST API #CRUD #Create #Get #Update #Delete #Retrive #Insert #Fetch #Group #Users #REST #API #List #Libraries
Comments
Post a Comment