SP.Web.webs property (sp.js)
Gets a Web site collection object that represents all Web sites immediately beneath the Web site, excluding children of those Web sites.
Applies to: apps for SharePoint | SharePoint Foundation 2013 | SharePoint Server 2013
var value = SP.Web.get_webs ()
Return value
Type: SP.WebCollection
A collection of SP.WebCollection objects that represent child websites.
REST resource endpoint
See Web resource for more information.
Endpoint URI structure
http://<sitecollection>/<site>/_api/web/webs
HTTP requests
This resource supports the following HTTP commands:
- GET
GET syntax
POST http://<sitecollection>/<site>/_api/web/webs
GET syntax
GET http://<sitecollection>/<site>/_api/web/webs