Javascript API for navigating wiki pages and for dataset level permissions

LabKey Support Forum (Inactive)
Javascript API for navigating wiki pages and for dataset level permissions Anthony Corbett  2012-10-29 09:14
Status: Closed
 
I'm wondering if that are any javascript API's or APi actions that can give me the following (unrelated) information:

1. A list of all the wiki pages in a container and their parent-child relationships.

2. Security permissions on each dataset specifically. I can see if the user has read/edit permission on the container using the LABKEY.Secuirty methods. But nothing is returned related to individual datasets.



Thank you,

Anthony Corbett
 
 
jeckels responded:  2012-10-29 09:34
Hi Anthony,

1. It may not be the format you're looking for, but this data is exposed through out WebDAV interface as an XML file. You can get to it at the URL:

<CONTEXT_PATH>/_webdav/<CONTAINER_PATH>/@wiki/wikis.xml

For example, for the main documentation folder here on labkey.org (which is deployed with '/' as its context path), the URL is:

https://www.labkey.org/_webdav/home/Documentation/@wiki/wikis.xml

2. You should be able to use the same LABKEY.Security APIs, but use the dataset's EntityId as the resource ID.

Thanks,
Josh