We do expose JSON as the default, if you send header "Accept: */*" that would return a JSON result. Problem is that the browser is usually sending something like "Accept: text/html, application/xml, ....." so since it has no match for text/html, it will go to application/xml.
We are hoping to provide an API browser app for 2.17. -- Morten On Mon, Jul 14, 2014 at 7:25 AM, Knut Staring <[email protected]> wrote: > A shortcut to making an app would be if we exposed .json by default > instead of XML: > > https://apps.dhis2.org/dev/api/resources.json has nicely clickable links > if the user has something like JSONView installed: > > https://chrome.google.com/webstore/detail/jsonview/chklaanhfefbnpoihckbnefhakgolnmc > > Knut > > > On Sun, Jul 13, 2014 at 8:18 PM, Lars Helge Ă˜verland <[email protected]> > wrote: > >> Hi, >> >> yes its intentional. The HTML templates were static and too much hassle >> to keep in synch with the model. >> >> App idea: make an app that renders a nice, linked HTML-view for all >> resources based on the json resources. >> >> Lars >> >> >> >> On Sun, Jul 13, 2014 at 2:44 PM, Knut Staring <[email protected]> wrote: >> >>> Or is there just a missing style file: >>> This XML file does not appear to have any style information associated >>> with it >>> >>> >>> On Sun, Jul 13, 2014 at 2:42 PM, Knut Staring <[email protected]> wrote: >>> >>>> Hi, >>>> When I browse the API in 2.16, I seem to get XM >>>> https://apps.dhis2.org/dev/api/resources >>>> >>>> instead of HTML, like it was in 2.15 >>>> https://apps.dhis2.org/demo/api/resources >>>> >>>> Is this intentional? >>>> >>>> -- >>>> Knut Staring >>>> Dept. of Informatics, University of Oslo >>>> +4791880522 >>>> http://dhis2.org >>>> >>> >>> >>> >>> -- >>> Knut Staring >>> Dept. of Informatics, University of Oslo >>> +4791880522 >>> http://dhis2.org >>> >>> _______________________________________________ >>> Mailing list: https://launchpad.net/~dhis2-users >>> Post to : [email protected] >>> Unsubscribe : https://launchpad.net/~dhis2-users >>> More help : https://help.launchpad.net/ListHelp >>> >>> >> > > > -- > Knut Staring > Dept. of Informatics, University of Oslo > +4791880522 > http://dhis2.org > > _______________________________________________ > Mailing list: https://launchpad.net/~dhis2-users > Post to : [email protected] > Unsubscribe : https://launchpad.net/~dhis2-users > More help : https://help.launchpad.net/ListHelp > >
_______________________________________________ Mailing list: https://launchpad.net/~dhis2-users Post to : [email protected] Unsubscribe : https://launchpad.net/~dhis2-users More help : https://help.launchpad.net/ListHelp

