I'm currently working on an iOS app which uses _api-services to retrieve data stored in documents libraries of a SharePoint Online. Consuming _api/web/Lists/ works well so far. At the moment the REST service URL is fixed for each site i want to access.
What I need is a way to retrieve all available sites genericly, so that the users only have to enter their toplevel site and credentials and all available sites will be listed. So I need a service call which delievers me the [site]-information for triggering further calls on the related subsites.
http://toplevelsite.sharepoint.com/[site]/_api/web/Lists/...
Does the REST _api offer a possibility to get all sites and subsites or even the whole site structure?
Thanks for any advice solving my problem