Ok, will create the tests based on /api/23/metadata. Thanks, Paulo
On Mon, Jun 13, 2016 at 11:17 AM Morten Olav Hansen <mor...@dhis2.org> wrote: > No, that won't work right now, that endpoint is anyways getting deprecated > (replaced by /api/23/metadata and /api/24/metadata) > > -- > Morten Olav Hansen > Senior Engineer, DHIS 2 > University of Oslo > http://www.dhis2.org > > On Mon, Jun 13, 2016 at 4:11 PM, Paulo Grácio <paulogra...@gmail.com> > wrote: > >> Hi Morten, >> >> yes removing Content type header makes it work but shouldn't it work with >> that header also? It works fine for other GET API calls. >> >> /Paulo >> >> >> On Mon, Jun 13, 2016 at 10:11 AM Morten Olav Hansen <mor...@dhis2.org> >> wrote: >> >>> Hi Paulo >>> >>> Is there any reason you are doing this request? I assume you want XML >>> back? you dont need to set input content-type as you are not sending >>> anything, and some of our internal gets a bit confused because of this... >>> removing content-type makes it work >>> >>> -- >>> Morten Olav Hansen >>> Senior Engineer, DHIS 2 >>> University of Oslo >>> http://www.dhis2.org >>> >>> On Sun, Jun 12, 2016 at 10:47 PM, Paulo Grácio <paulogra...@gmail.com> >>> wrote: >>> >>>> Hi all, >>>> >>>> when calling the metadata API with Content-Type header it returns a 500. >>>> >>>> curl -H "Accept: application/xml" -H "Content-Type: application/xml" -u >>>> admin:district " >>>> https://play.dhis2.org/demo/api/metadata?lastUpdated=2014-02" >>>> >>>> Best regards, >>>> Paulo >>>> >>>> >>>> _______________________________________________ >>>> 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 >>>> >>>> >>> >
_______________________________________________ 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