Retrieving All Study Names from Labkey Using Python API | cmwest3 | 2017-11-02 14:41 | |||||||||
Status: Closed | |||||||||||
Hello, We've previously been using the HTTP Interface using the following URI to retrieve all the study names residing on a server: localhost/labkey/query/home/selectRows.api?query.queryName=Containers&schemaName=core&query.containerFilterName=AllFolders&query.Parent%2FDisplayName~isblank We've been trying to use the Python API to construct a similar request but have run into some issues. After reviewing the Python API source code, query.py, for the QueryFilter object on GitHub, the `get_url_parameter_name` function will always place a '~' character within the query string and not allow us to form the query string 'query.containerFilterName=AllFolders'. Additionally, there is no filter_type that clearly represent 'isblank' and so we've been attempting to create a QueryFilter by calling QueryFilter('Parent%2FDisplayName', '', 'eq') (Notice the two single quotes in the second parameter). Unfortunately, this method is only returning the single 'home' study which isn't what we're looking for. Seeing as it is difficult to replicate the URI of the HTTP Interface with the Python interface, how can we go about making QueryFilter(s) that would return all study names on a server? Thank you, Cameron West |
|||||||||||
| |||||||||||