SharePoint 2013-rest API about Content

Source: Internet
Author: User

1. Get all subweb information (sub site):

var // Web Absolute Url, {0}

The returned data:

2. Get all the list and library:

var listlibinfo = "/_api/web/lists? $filter =hidden ne true& $expand =rootfolder,hasuniqueroleassignments & $select =title,id,parentweburl,basetype,items,roleassignments,itemcount,rootfolder/serverrelativeurl, rootfolder/itemcount,hasuniqueroleassignments& $orderby =title ";

The returned data is as follows, note that BaseType has four values: 0 is list, 1 is library, 4 is survey, and 5 is issuetracking

3. Get all the item in the list or library (traverse to read item under All folders):

var // Web Absolute Url, {0}, GUID of List/lib ({1} )

The returned data is as follows, but in general we do not use this method to obtain data from the library;

4. Gets the item information under the folder (contains only the item information in the current directory, no traversal), and is used to get the item information under the Library directory (contains only the item information under the root directory, no traversal):

var // {0} Web Absolute URL, {1}-server-relative URL of a folder

The returned data is as follows,

5.

SharePoint 2013-rest API about Content

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.