dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #30719
Re: Metadata filtering in API no longer working?
This is the other way (I had forgotten to put "true" at the end) - though I
dont understand why it is parent and not parentid...
http://apps.dhis2.org/demo/api/organisationUnits.json?filter=parent:null:true
On Wed, Jun 11, 2014 at 8:08 AM, Knut Staring <knutst@xxxxxxxxx> wrote:
> Thanks to Jason, I see this is working:
> http://apps.dhis2.org/demo/api/organisationUnits.json?filter=level:eq:1
> http://apps.dhis2.org/dev/api/organisationUnits.json?filter=level:eq:1
> <http://www.google.com/url?q=http%3A%2F%2Fapps.dhis2.org%2Fdev%2Fapi%2ForganisationUnits.json%3Ffilter%3Dlevel%3Aeq%3A1&sa=D&sntz=1&usg=AFQjCNEIOZsxGq6ZgaqomkAtGOkH5ae3DA>
>
>
>
>
> On Wed, Jun 11, 2014 at 8:03 AM, Knut Staring <knutst@xxxxxxxxx> wrote:
>
>> I am trying to use the filtering as described in the manual:
>> http://www.dhis2.org/doc/snapshot/en/user/html/ch30s06.html
>>
>> My goal is to do something like this (in order to find the Root OU), but
>> the filter seems to have no effect?
>> http://apps.dhis2.org/demo/api/organisationUnits?filter=parentid:null
>>
>> --
>> Knut Staring
>> Dept. of Informatics, University of Oslo
>> +4791880522
>> http://dhis2.org
>>
>
>
>
> --
> Knut Staring
> Dept. of Informatics, University of Oslo
> +4791880522
> http://dhis2.org
>
--
Knut Staring
Dept. of Informatics, University of Oslo
+4791880522
http://dhis2.org
Follow ups
References