I am working on a very simple app on iOS that should basically allow the user to login (got that part working), then list only document libraries and allow user to navigate these and download files.
On WP8 i used CSOM and it was a complete cakewalk. Reading a bit on the internet i found that my best bet would be to try and use
ListData.svc with REST and then parse the XML returned (and i saw somewhere i may force it to return JSON!) to display the items to the user.
Going through the xml with Internet Explorer i can see that the structure is rather consistent and i can parse it easily. The problem i have is the site level - my inital request is to just send an empty GET to
ListData.svc which, if authenticated, returns the XML with all collections of the site. However, the xml contains no properties indicating whether the collection is, in fact, a folder or a list etc.
Further to that, this returns some weird lists i didn't know existed on my Sharepoint as i haven't really worked with
Lists and using C#
folders never returned these.
How can i query ListData.svc to return the top level document libraries on the site?