I have a site collection in share point online. Its has some lists and sub sites. Again the sub sites having some lists. Some sub sites and lists having unique permissions and some have inheritance permissions . I need to check whether the current login having permission level Approve for any lists in all the sub sites and lists using rest api. Actually i am looking for a function(sample code) which iterate the sites collection lists and sub sites lists for checking the Approve permission level for the lists. i am using /_api/site/rootWeb/webinfos to get the sub sites ServerRelativeUrl .
Can anyone help me please. Thanks in Advance