Is there an Easier way of Navigating the Api ?

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

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@gmail.com 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@lists.launchpad.net

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

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@gmail.com 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@gmail.com 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@lists.launchpad.net

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

Thanks Knut,

I used the pivot table to run a report on the facility then obtained the UID which I then added to the url i.e. http://test.hiskenya.org/api/organisationUnits/[UID], I have not read through the entire manual but I am very grateful for the quick feedback. I will certainly use the search feature on the URL. I was wondering why it was not part of the UI.

rgds

David Muturi

···

2013/7/23 Knut Staring knutst@gmail.com

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@gmail.com 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@lists.launchpad.net

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

Hi Lars,

Many thanks.

David

···

2013/7/23 Lars Helge Øverland larshelge@gmail.com

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@gmail.com 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@gmail.com 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@lists.launchpad.net

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

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@gmail.com wrote:

Hi David,

see here:

http://www.dhis2.org/doc/snapshot/en/user/html/ch25s04.html

Lars


Mailing list: https://launchpad.net/~dhis2-users

Post to : dhis2-users@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-users

More help : https://help.launchpad.net/ListHelp

On Tue, Jul 23, 2013 at 11:37 AM, Knut Staring knutst@gmail.com 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@gmail.com 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@lists.launchpad.net

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

No need to read through the entire manual - just search :wink:

Google this:

https://www.google.no/search?q=dhis2+webapi+search&oq=dhis2+webapi+search

···

On Tue, Jul 23, 2013 at 11:43 AM, David Muturi dnmuturi@gmail.com wrote:

Thanks Knut,

I used the pivot table to run a report on the facility then obtained the UID which I then added to the url i.e. http://test.hiskenya.org/api/organisationUnits/[UID], I have not read through the entire manual but I am very grateful for the quick feedback. I will certainly use the search feature on the URL. I was wondering why it was not part of the UI.

rgds

David Muturi


Knut Staring

Dept. of Informatics, University of Oslo

+4791880522

http://dhis2.org

2013/7/23 Knut Staring knutst@gmail.com

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@gmail.com 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@lists.launchpad.net

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