Perhaps then we are not looking for a rest api call which will return the
resource. But rather a relatively simple uid lookup/translation
Two use cases that we know of are find-uid-by-code and
find-uid-by-internal-identifier.
Saptarshi has explained why he needs the latter. Looking up uid by co
Hi Jason,
I am not opposed to it really and think it would be a nice to have (just as
> it would to be able to search on any property of an object), but what is
> the real use case here?
>
The real use-case here is that in Custom Data Entry code, I want to make
some Web API calls.
I can easily ge
com
> Date: Mon, 4 Nov 2013 16:57:26 +0100
>
> Subject: Re: [Dhis2-devs] Web API - Search by id
> To: sun...@gmail.com
> CC: dhis2-devs@lists.launchpad.net
>
> It's just for convenience. If you make an app that looks up organisation
> units by id, code or name you won
t;>units by id, code or name you won't have to change the base url based on the
>>parameter.
>>
>>
>>
>>On Mon, Nov 4, 2013 at 4:47 PM, Saptarshi Purkayastha
>>wrote:
>>
>>Why would one use the search at all in this case of using t
s trolling and I request you not to send such emails.
>>>
>>> Core team,
>>> 1. Do you agree this is a valid requirement? or will this never be
>>> implemented?
>>> 2. Should we just remove search by uid?
>>>
>>> ---
>>> Regard
ed?
>> 2. Should we just remove search by uid?
>>
>> ---
>> Regards,
>> Saptarshi PURKAYASTHA
>>
>> ------
>> Date: Tue, 5 Nov 2013 03:54:04 +0800
>> From: brajesh.mur...@yahoo.com
>> To: mlati...@gmail.com; l...@rola
-
> Date: Tue, 5 Nov 2013 03:54:04 +0800
> From: brajesh.mur...@yahoo.com
> To: mlati...@gmail.com; l...@roland.bz
> CC: dhis2-devs@lists.launchpad.net
>
> Subject: Re: [Dhis2-devs] Web API - Search by id
>
>
> Hello Mobilars and Saptarshi,
>
> Agreed with SO
this never be implemented?
2. Should we just remove search by uid?
---
Regards,
Saptarshi PURKAYASTHA
Date: Tue, 5 Nov 2013 03:54:04 +0800
From: brajesh.mur...@yahoo.com
To: mlati...@gmail.com; l...@roland.bz
CC: dhis2-devs@lists.launchpad.net
Subject: Re: [Dhis2-devs] Web API - Search by id
like to use internal IDs to get the UID and
>>then use the UID for web API calls. This makes it more flexible to use and
>>switch between the two IDs depending what functionality you want to use,
>>either from core web interface (uses IDs) or Web API (uses UIDs)
>>
>>---
ing what functionality you want to
>> use, either from core web interface (uses IDs) or Web API (uses UIDs)
>>
>> ---
>> Regards,
>> Saptarshi PURKAYASTHA
>> --
>> From: janhenrik.overl...@gmail.com
>> Date: Mon, 4 Nov 2013 16:5
ID
> 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
interface (uses IDs) or Web API (uses UIDs)
---
Regards,
Saptarshi PURKAYASTHA
From: janhenrik.overl...@gmail.com
Date: Mon, 4 Nov 2013 16:57:26 +0100
Subject: Re: [Dhis2-devs] Web API - Search by id
To: sun...@gmail.com
CC: dhis2-devs@lists.launchpad.net
It's
+0100
Subject: Re: [Dhis2-devs] Web API - Search by id
To: sun...@gmail.com
CC: dhis2-devs@lists.launchpad.net
It's just for convenience. If you make an app that looks up organisation units
by id, code or name you won't have to change the base url based on the
parameter.
On Mon, Nov 4,
> 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 i
---
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 wa
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 wrote:
> The Web API documentation here:
> http://www.dhis2.org
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: 559So, does it
17 matches
Mail list logo