← Back to team overview

dhis2-devs team mailing list archive

Re: External api for posting data values

 

Ah should have waited for the little example :-)

On 15 February 2011 13:01, Jo Størset <storset@xxxxxxxxx> wrote:
> Hi,
>
> Forgot the little example using curl:
>
> echo '<dataValueSet xmlns="http://dhis2.org/schema/dataValueSet/0.1"; dataSet="9B93B662-9DFA-41C4-BEB5-9F3C352629DF" period="201102" orgUnit="A7D2ED55-D3B6-4CF0-ABC0-1AB2C8F547C6" storedBy="storset"><dataValue dataElement="C85D4EF1-4963-4F2D-B1FB-C76F2D6CCE03">111</dataValue> </dataValueSet>' | curl -v -HContent-Type:application/xml -u admin:district -d @- http://localhost:8080/api/rpc/dataValueSets/
>
> (I would really like something a bit more meaningful than uuids, but thats another topic :)
>
> Jo
> _______________________________________________
> 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