Get access rights of the site using SharePoint RestAPI

I need to get all UserGroups with access to the site or any of it's children. Is there a way to retrieve UserGroups that have granted access to the SharePoint site using SharePoint REST API? And for all site's items as well. I have a site's URL and now I need to find out who has an access to it.

How many English words
do you know?
Test your English vocabulary size, and measure
how many words do you know
Online Test
Powered by Examplum