← Back to team overview

dhis2-users team mailing list archive

Re: Is there an Easier way of Navigating the Api ?

 

Hi David,

if you use "search" the id, name or code has to be exact.

For browsing/filtering by name you might want to use "query", e.g.

http://apps.dhis2.org/dev/api/dataElements/query/anc

Jan


On Tue, Jul 23, 2013 at 11:39 AM, Lars Helge Øverland
<larshelge@xxxxxxxxx>wrote:

> Hi David,
>
> see here:
>
> http://www.dhis2.org/doc/snapshot/en/user/html/ch25s04.html
>
> Lars
>
>
>
> On Tue, Jul 23, 2013 at 11:37 AM, Knut Staring <knutst@xxxxxxxxx> wrote:
>
>> Yes inded, and fortunately this is already part of the API, as mentioned
>> in the manual (section 25.4).
>>
>> You can for example do things like this:
>> api/organisationUnits/search/bc%20Bas-Congo%20Province
>>
>>
>> On Tue, Jul 23, 2013 at 11:26 AM, David Muturi <dnmuturi@xxxxxxxxx>wrote:
>>
>>> Hi All,
>>>
>>> Is there an easier way of navigating the API? I wanted to pull out some
>>> org unit only to realize I had 228 pages for the org units and the only
>>> navigation was the previous and next buttons. A search feature would be a
>>> useful addition.
>>>
>>> rgd
>>> David
>>>
>>> _______________________________________________
>>> Mailing list: https://launchpad.net/~dhis2-users
>>> Post to     : dhis2-users@xxxxxxxxxxxxxxxxxxx
>>> Unsubscribe : https://launchpad.net/~dhis2-users
>>> More help   : https://help.launchpad.net/ListHelp
>>>
>>>
>>
>>
>> --
>> Knut Staring
>> Dept. of Informatics, University of Oslo
>> +4791880522
>> http://dhis2.org
>>
>
>
> _______________________________________________
> Mailing list: https://launchpad.net/~dhis2-users
> Post to     : dhis2-users@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~dhis2-users
> More help   : https://help.launchpad.net/ListHelp
>
>

References