Web API call returning no value (just 204 -> no content)

Hi devs,

I think this question was asked before, but…

As far as I know the following API call …/api/organisationUnits/{ID}/organisationUnitGroups/{ID} does not return any value (DELETE, POST,… either if the result is a success or a failure), at least using the 2.20 version right? (please, correct me if I am wrong). If this is the case, it makes very dificult to define a javascript logic based in the result of the API call. Would it be possible to implement at least a 200 (Ok) returning value? Is there something you can do from your end? If so, it would be nice to have it in 2.21 and 2.20 as well :slight_smile:

Many Thanks!

Jose

Hi Jose

Please wait about 40 min, and you can download a new 2.20 which gives a 404 if the property/id was not found, and a 200 OK if property/id was found.

···

On Fri, Jan 22, 2016 at 9:32 AM, Jose Garcia Muñoz josemp10@gmail.com wrote:

Hi devs,

I think this question was asked before, but…

As far as I know the following API call …/api/organisationUnits/{ID}/organisationUnitGroups/{ID} does not return any value (DELETE, POST,… either if the result is a success or a failure), at least using the 2.20 version right? (please, correct me if I am wrong). If this is the case, it makes very dificult to define a javascript logic based in the result of the API call. Would it be possible to implement at least a 200 (Ok) returning value? Is there something you can do from your end? If so, it would be nice to have it in 2.21 and 2.20 as well :slight_smile:

Many Thanks!

Jose


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


Morten

Thanks Morten for your quick answer (and apologies for my slow reponse)

This is going to be really useful, should I also assume that it has been implemented for 2.21 as well?

···

On Fri, Jan 22, 2016 at 4:14 AM, Morten Olav Hansen mortenoh@gmail.com wrote:

Hi Jose

Please wait about 40 min, and you can download a new 2.20 which gives a 404 if the property/id was not found, and a 200 OK if property/id was found.


Morten

On Fri, Jan 22, 2016 at 9:32 AM, Jose Garcia Muñoz josemp10@gmail.com wrote:

Hi devs,

I think this question was asked before, but…

As far as I know the following API call …/api/organisationUnits/{ID}/organisationUnitGroups/{ID} does not return any value (DELETE, POST,… either if the result is a success or a failure), at least using the 2.20 version right? (please, correct me if I am wrong). If this is the case, it makes very dificult to define a javascript logic based in the result of the API call. Would it be possible to implement at least a 200 (Ok) returning value? Is there something you can do from your end? If so, it would be nice to have it in 2.21 and 2.20 as well :slight_smile:

Many Thanks!

Jose


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

Yes, all versions from 2.20

···

On Fri, Jan 22, 2016 at 4:14 AM, Morten Olav Hansen mortenoh@gmail.com wrote:

Hi Jose

Please wait about 40 min, and you can download a new 2.20 which gives a 404 if the property/id was not found, and a 200 OK if property/id was found.


Morten

On Fri, Jan 22, 2016 at 9:32 AM, Jose Garcia Muñoz josemp10@gmail.com wrote:

Hi devs,

I think this question was asked before, but…

As far as I know the following API call …/api/organisationUnits/{ID}/organisationUnitGroups/{ID} does not return any value (DELETE, POST,… either if the result is a success or a failure), at least using the 2.20 version right? (please, correct me if I am wrong). If this is the case, it makes very dificult to define a javascript logic based in the result of the API call. Would it be possible to implement at least a 200 (Ok) returning value? Is there something you can do from your end? If so, it would be nice to have it in 2.21 and 2.20 as well :slight_smile:

Many Thanks!

Jose


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