Skip to main content
deleted 79 characters in body
Source Link
Akhoy
  • 2.9k
  • 2
  • 18
  • 28

You can use this URL : http://rootsite/_api/Web/webs?$expand=Lists/RootFolder&$select=Lists/RootFolder/ServerRelativeURL. This will return the subwebs along with the lists property expanded for each subweb. The Lists property will return all the lists and libraries associated with the subsite. Also, the RootFolder property expanded for the lists will have the ServerRelativeURL for the lists which you can use.

You can use this URL : http://rootsite/_api/Web/webs?$expand=Lists/RootFolder. This will return the subwebs along with the lists property expanded for each subweb. The Lists property will return all the lists and libraries associated with the subsite. Also, the RootFolder property expanded for the lists will have the ServerRelativeURL for the lists which you can use.

You can use this URL : http://rootsite/_api/Web/webs?$expand=Lists/RootFolder&$select=Lists/RootFolder/ServerRelativeURL. This will return the subwebs along with the lists property expanded for each subweb. The Lists property will return all the lists and libraries associated with the subsite.

Source Link
Akhoy
  • 2.9k
  • 2
  • 18
  • 28

You can use this URL : http://rootsite/_api/Web/webs?$expand=Lists/RootFolder. This will return the subwebs along with the lists property expanded for each subweb. The Lists property will return all the lists and libraries associated with the subsite. Also, the RootFolder property expanded for the lists will have the ServerRelativeURL for the lists which you can use.