Re: [Dhis2-devs] Web API - Search by id

2013-11-05 Thread Bob Jolliffe
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

Re: [Dhis2-devs] Web API - Search by id

2013-11-05 Thread Saptarshi Purkayastha
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

Re: [Dhis2-devs] Web API - Search by id

2013-11-05 Thread Knut Staring
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&#x

Re: [Dhis2-devs] Web API - Search by id

2013-11-04 Thread Brajesh Murari
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

Re: [Dhis2-devs] Web API - Search by id

2013-11-04 Thread Jason Pickering
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

Re: [Dhis2-devs] Web API - Search by id

2013-11-04 Thread Jason Pickering
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

Re: [Dhis2-devs] Web API - Search by id

2013-11-04 Thread Bob Jolliffe
- > 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

Re: [Dhis2-devs] Web API - Search by id

2013-11-04 Thread Saptarshi Purkayastha
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

Re: [Dhis2-devs] Web API - Search by id

2013-11-04 Thread Brajesh Murari
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) >> >>---

Re: [Dhis2-devs] Web API - Search by id

2013-11-04 Thread Murod Latifov
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

Re: [Dhis2-devs] Web API - Search by id

2013-11-04 Thread Lars Kristian Roland
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

Re: [Dhis2-devs] Web API - Search by id

2013-11-04 Thread Brajesh Murari
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

Re: [Dhis2-devs] Web API - Search by id

2013-11-04 Thread Saptarshi Purkayastha
+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,

Re: [Dhis2-devs] Web API - Search by id

2013-11-04 Thread Jan Henrik Ă˜verland
> 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

Re: [Dhis2-devs] Web API - Search by id

2013-11-04 Thread Saptarshi Purkayastha
--- 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

Re: [Dhis2-devs] Web API - Search by id

2013-11-04 Thread Jan Henrik Ă˜verland
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

[Dhis2-devs] Web API - Search by id

2013-11-04 Thread Saptarshi Purkayastha
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