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