← Back to team overview

dhis2-devs team mailing list archive

Re: The fred-api error,can't get org,but can do in web-api

 

Did you set your own UIDs ? 2000001 is not a valid UID. The web-api doesn't
do any checks, but for FRED API the preferred method is using the UUID
(UIDs are also supported, but they require that you use a valid UID of 11
chars).

Are you using these UIDs elsewhere? if not, you can set them all to null,
and dhis will generate proper UIDs on startup (just restart your server).

--
Morten


On Mon, Jul 22, 2013 at 10:24 AM, easy <lin_xd@xxxxxxx> wrote:

>
> Hi,all
>
>    I have import many org, I can't get in webapi.(
> http://localhost:8080/dhis/api/organisationUnits/2000001)
> ,whit fred-api get all orginzation(
> http://localhost:8080/dhis/api-fred/v1/facilities), it's ok, but with (
> http://localhost:8080/dhis/api-fred/v1/facilities/2000001), get an error:
>  {"code":"404","message":"Facility not found"}.
>  what's wrong?
>
>
>
> --
> 此致
>
>
>
> 莫愁前路无知己,天下谁人不识君。
>
>
>
> _______________________________________________
> Mailing list: https://launchpad.net/~dhis2-devs
> Post to     : dhis2-devs@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~dhis2-devs
> More help   : https://help.launchpad.net/ListHelp
>
>

References