Why would one use the search at all in this case of using the UID?
You can directly get the resource with the UID


http://apps.dhis2.org/demo/api/organisationUnits/ImspTQPwCqd gives Sierra Leone


http://apps.dhis2.org/demo/api/organisationUnits/search/Sierra%20Leone is the 
search

---
Regards,
Saptarshi PURKAYASTHA
From: janhenrik.overl...@gmail.com
Date: Mon, 4 Nov 2013 16:36:25 +0100
Subject: Re: [Dhis2-devs] Web API - Search by id
To: sun...@gmail.com
CC: dhis2-devs@lists.launchpad.net

Hi, try the uid. For a web API user there is only one id (which is the uid). We 
don't want to confuse him by saying "uid" in the docs as it implies that there 
is an "id" as well.



On Mon, Nov 4, 2013 at 4:11 PM, Saptarshi Purkayastha <sun...@gmail.com> wrote:





The Web API documentation here: 
http://www.dhis2.org/doc/snapshot/en/user/html/ch25s04.html
suggests that you can search a resource by its id, code and name. 


I tried the following: 
http://apps.dhis2.org/demo/api/organisationUnits/search/559
But it says 
Object not found for query: 559

So, does it only work for code and name and not for id?

---
Regards,
Saptarshi PURKAYASTHA
                                          

_______________________________________________

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

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

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

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




                                          
_______________________________________________
Mailing list: https://launchpad.net/~dhis2-devs
Post to     : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp

Reply via email to