← Back to team overview

dhis2-users team mailing list archive

Re: dataValues api still functioning?

 

Hi Uwe,

this has been corrected in trunk and 2.21.

On POST it will return http status code 201 and for delete it will return
204. No Accept header is required.

regards,

Lars


On Wed, Nov 18, 2015 at 4:38 PM, Lars Helge Øverland <larshelge@xxxxxxxxx>
wrote:

> Hi Uwe,
>
> it seems you are right. We will fix this. Short term workaround is to add
> this header to the request (in curl):
>
> -H "Accept:text/plain"
>
>
> regards,
>
> Lars
>
>
> On Wed, Nov 18, 2015 at 3:47 PM, Uwe Wahser <uwe@xxxxxxxxx> wrote:
>
>> Dear all,
>>
>> I tried to use the dataValues resource to delete single values according
>> to
>> https://www.dhis2.org/doc/snapshot/en/developer/html/ch01s12.html#d5e1450
>> .
>>
>> I keep getting an Apache error "The resource identified by this request
>> is only
>> capable of generating responses with characteristics not acceptable
>> according to
>> the request “accept” headers."
>>
>> I get the same response when running the example from the developers
>> manual
>> directly against the demo-server.
>>
>>  Version: DHIS 2.21 on standard Ubuntu 14.04 with Oracle Java 8 - the log
>> is
>> attached.
>>
>> Thanks, Uwe
>> _______________________________________________
>> Mailing list: https://launchpad.net/~dhis2-users
>> Post to     : dhis2-users@xxxxxxxxxxxxxxxxxxx
>> Unsubscribe : https://launchpad.net/~dhis2-users
>> More help   : https://help.launchpad.net/ListHelp
>>
>>
>
>
> --
> Lars Helge Øverland
> Lead developer, DHIS 2
> University of Oslo
> Skype: larshelgeoverland
> http://www.dhis2.org <https://www.dhis2.org>
>
>


-- 
Lars Helge Øverland
Lead developer, DHIS 2
University of Oslo
Skype: larshelgeoverland
http://www.dhis2.org <https://www.dhis2.org>

Follow ups

References