API resources navigation

Dear All,

I have the latest version of DHIS 2.16 and I am trying to access the api/resources endpoint in my browser and the following result is displaying:

In the previous version 2.15, the API result was a formatted HTML page where you can actually navigate the links and view the details of each API easily.

Even the demo version at
è https://apps.dhis2.org/demo/api/resources is showing the same result.

I also tried to access the web api from Excel
è https://apps.dhis2.org/demo/api/resources.json , and it is returning the following error :

DataFormat.Error: Expected value, found ‘<’.

Is this a bug in DHIS 2.16 or am I missing something here?

Awaiting your feedback.

Thank you.

Maheed

Hi Maheed,
This is intentional. We do agree that the previous interface was much easier to navigate, but it had other issues that needed fixing. We hope someone can create a nice App with as nice (or even nicer) navigation as before - probably it could be a student project this fall.

Knut

···

On Mon, Aug 25, 2014 at 2:13 PM, Maheed Ramadan maheed.ramadan@nrc.no wrote:

Dear All,

I have the latest version of DHIS 2.16 and I am trying to access the api/resources endpoint in my browser and the following result is displaying:

In the previous version 2.15, the API result was a formatted HTML page where you can actually navigate the links and view the details of each API easily.

Even the demo version at
è https://apps.dhis2.org/demo/api/resources is showing the same result.

I also tried to access the web api from Excel
è https://apps.dhis2.org/demo/api/resources.json , and it is returning the following error :

DataFormat.Error: Expected value, found ‘<’.

Is this a bug in DHIS 2.16 or am I missing something here?

Awaiting your feedback.

Thank you.

Maheed


Mailing list: https://launchpad.net/~dhis2-users

Post to : dhis2-users@lists.launchpad.net

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

Yes that will be nice. I also miss the api navigation … didn’t realize how much I used it till it went :frowning:

···

On 25 August 2014 15:08, Knut Staring knutst@gmail.com wrote:

Hi Maheed,
This is intentional. We do agree that the previous interface was much easier to navigate, but it had other issues that needed fixing. We hope someone can create a nice App with as nice (or even nicer) navigation as before - probably it could be a student project this fall.

Knut


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

On Mon, Aug 25, 2014 at 2:13 PM, Maheed Ramadan maheed.ramadan@nrc.no wrote:

Dear All,

I have the latest version of DHIS 2.16 and I am trying to access the api/resources endpoint in my browser and the following result is displaying:

In the previous version 2.15, the API result was a formatted HTML page where you can actually navigate the links and view the details of each API easily.

Even the demo version at
è https://apps.dhis2.org/demo/api/resources is showing the same result.

I also tried to access the web api from Excel
è https://apps.dhis2.org/demo/api/resources.json , and it is returning the following error :

DataFormat.Error: Expected value, found ‘<’.

Is this a bug in DHIS 2.16 or am I missing something here?

Awaiting your feedback.

Thank you.

Maheed


Mailing list: https://launchpad.net/~dhis2-users

Post to : dhis2-users@lists.launchpad.net

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

Dear Maheed,

Research & development of restful web services and its integration in
existing DHIS2 frameworks begins with an empirical case study for providing
solution to a very complex use case scenario in which one slandered
statical application developed inside certain environment running on
certain platform on certain virtual machine with certain attached database
with certain object relational data base schema can communicate with
another similar statical application developed in different environment
running on different platform on different virtual machine with different
data base with different object relational schema.

Here in DHIS2, we achieved solution for this complex scenario by developing
an intermediate middle-ware application programme interface or we can say
like an intermediate component like DHIS2 WEB-API or more simply we can say
like a connector which brings an intermediate interface from where DHIS2
can communicate with other similar statical application or multiple
applications like one to one or one to many relationship.

Interesting thing in DHIS2 WEB-API brings intermediate communication
between another multiple applications, and for that it follow certain rules
and regulation which we can say like protocol for communication like
http,ftp,sftp etc and on the top of these protocol these multiple statical
applications interact with each other and exchange some data as per the
request in the form of expected representational state like
json,xml,cvs,atom etc with each other and this way we solve these complex
issues.

Perhaps, I think as per your request and query which evolves with two
different aspects in which one addresses issue for understanding and doing
certain DHIS2 application programme interface analytical study for that you
are looking to access demo web-api with certain request with data and
another you have find some result as response in certain format of data
that you seems might be not as expected and has been addressed as an
web-appl bug.

If i am right, than for your first query, i think DHIS2 restful web-api
services is not as the exact tool for doing this analytical study. Rather,
you can take a help of DHIS2-API documentation, please find as i have
attached in the attachment. And second, it returns with some data in the
form of response after sending some http request, which does't brings data
as should be expected and might be treated as bug in existing functionality
and should be resolved in up-comming releases.

Brajesh

···

From: Bob Jolliffe <bobjolliffe@gmail.com>

Date: Mon, 25 Aug 2014 16:17:58 +0100
Subject: Re: [Dhis2-users] [Dhis2-devs] API resources navigation
To: Knut Staring <knutst@gmail.com>
Cc: dhis2-users <dhis2-users@lists.launchpad.net>,
"dhis2-devs@lists.launchpad.net" <dhis2-devs@lists.launchpad.net>

Yes that will be nice. I also miss the api navigation ... didn't realize
how much I used it till it went :frowning:

On 25 August 2014 15:08, Knut Staring <knutst@gmail.com> wrote:

> Hi Maheed,
> This is intentional. We do agree that the previous interface was much
> easier to navigate, but it had other issues that needed fixing. We hope
> someone can create a nice App with as nice (or even nicer) navigation as
> before - probably it could be a student project this fall.
>
> Knut
>
>
> On Mon, Aug 25, 2014 at 2:13 PM, Maheed Ramadan <maheed.ramadan@nrc.no> > > wrote:
>
>> Dear All,
>>
>>
>> I have the latest version of DHIS 2.16 and I am trying to access the
>> api/resources endpoint in my browser and the following result is
displaying:
>>
>>
>> In the previous version 2.15, the API result was a formatted HTML page
>> where you can actually navigate the links and view the details of each
API
>> easily.
>>
>> Even the demo version at è DHIS2 App Hub is
>> showing the same result.
>>
>>
>>
>> I also tried to access the web api from Excel è
>> DHIS2 App Hub , and it is returning
the
>> following error :
>>
>> DataFormat.Error: Expected value, found '<'.
>>
>>
>>
>>
>>
>> Is this a bug in DHIS 2.16 or am I missing something here?
>>
>>
>>
>>
>>
>> Awaiting your feedback.
>>
>>
>>
>> Thank you.
>>
>>
>>
>> Maheed
>>
>>
>>
>>
>>
>> _______________________________________________
>> Mailing list: DHIS 2 Users in Launchpad
>> Post to : dhis2-users@lists.launchpad.net
>> Unsubscribe : DHIS 2 Users in Launchpad
>> More help : ListHelp - Launchpad Help
>>
>>
>
>
> --
> Knut Staring
> Dept. of Informatics, University of Oslo
> +4791880522
> http://dhis2.org
>
> _______________________________________________
> Mailing list: DHIS 2 developers in Launchpad
> Post to : dhis2-devs@lists.launchpad.net
> Unsubscribe : DHIS 2 developers in Launchpad
> More help : ListHelp - Launchpad Help
>
>

Hi,

the reason why we removed HTML view was that they were static and it turned out to be very inconvenient to keep the templates up to date, leading to questions why properties were not there etc. Ideally we want the HTML views to be rendered automatically based on the XML/JSON representations. As mentioned, an ideal app project to take on by a student/external developer :wink:

regards,

Lars

···

On Mon, Aug 25, 2014 at 5:17 PM, Bob Jolliffe bobjolliffe@gmail.com wrote:

Yes that will be nice. I also miss the api navigation … didn’t realize how much I used it till it went :frowning:


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

On 25 August 2014 15:08, Knut Staring knutst@gmail.com wrote:

Hi Maheed,
This is intentional. We do agree that the previous interface was much easier to navigate, but it had other issues that needed fixing. We hope someone can create a nice App with as nice (or even nicer) navigation as before - probably it could be a student project this fall.

Knut


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

On Mon, Aug 25, 2014 at 2:13 PM, Maheed Ramadan maheed.ramadan@nrc.no wrote:

Dear All,

I have the latest version of DHIS 2.16 and I am trying to access the api/resources endpoint in my browser and the following result is displaying:

In the previous version 2.15, the API result was a formatted HTML page where you can actually navigate the links and view the details of each API easily.

Even the demo version at
è https://apps.dhis2.org/demo/api/resources is showing the same result.

I also tried to access the web api from Excel
è https://apps.dhis2.org/demo/api/resources.json , and it is returning the following error :

DataFormat.Error: Expected value, found ‘<’.

Is this a bug in DHIS 2.16 or am I missing something here?

Awaiting your feedback.

Thank you.

Maheed


Mailing list: https://launchpad.net/~dhis2-users

Post to : dhis2-users@lists.launchpad.net

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

There are a number of extensions to Chrome which help with this. I personally use “XMLTree” although this is not an endorsement of this plugin. You can search the Chrome store for many such add-ons.

Best regards,

Jason

···

On Mon, Aug 25, 2014 at 9:14 PM, Brajesh Murari brajjeshmurari@gmail.com wrote:

Dear Maheed,

Research & development of restful web services and its integration in

existing DHIS2 frameworks begins with an empirical case study for providing

solution to a very complex use case scenario in which one slandered

statical application developed inside certain environment running on

certain platform on certain virtual machine with certain attached database

with certain object relational data base schema can communicate with

another similar statical application developed in different environment

running on different platform on different virtual machine with different

data base with different object relational schema.

Here in DHIS2, we achieved solution for this complex scenario by developing

an intermediate middle-ware application programme interface or we can say

like an intermediate component like DHIS2 WEB-API or more simply we can say

like a connector which brings an intermediate interface from where DHIS2

can communicate with other similar statical application or multiple

applications like one to one or one to many relationship.

Interesting thing in DHIS2 WEB-API brings intermediate communication

between another multiple applications, and for that it follow certain rules

and regulation which we can say like protocol for communication like

http,ftp,sftp etc and on the top of these protocol these multiple statical

applications interact with each other and exchange some data as per the

request in the form of expected representational state like

json,xml,cvs,atom etc with each other and this way we solve these complex

issues.

Perhaps, I think as per your request and query which evolves with two

different aspects in which one addresses issue for understanding and doing

certain DHIS2 application programme interface analytical study for that you

are looking to access demo web-api with certain request with data and

another you have find some result as response in certain format of data

that you seems might be not as expected and has been addressed as an

web-appl bug.

If i am right, than for your first query, i think DHIS2 restful web-api

services is not as the exact tool for doing this analytical study. Rather,

you can take a help of DHIS2-API documentation, please find as i have

attached in the attachment. And second, it returns with some data in the

form of response after sending some http request, which does’t brings data

as should be expected and might be treated as bug in existing functionality

and should be resolved in up-comming releases.

Brajesh

From: Bob Jolliffe bobjolliffe@gmail.com

Date: Mon, 25 Aug 2014 16:17:58 +0100

Subject: Re: [Dhis2-users] [Dhis2-devs] API resources navigation

To: Knut Staring knutst@gmail.com

Cc: dhis2-users dhis2-users@lists.launchpad.net,

dhis2-devs@lists.launchpad.netdhis2-devs@lists.launchpad.net

Yes that will be nice. I also miss the api navigation … didn’t realize

how much I used it till it went :frowning:

On 25 August 2014 15:08, Knut Staring knutst@gmail.com wrote:

Hi Maheed,

This is intentional. We do agree that the previous interface was much

easier to navigate, but it had other issues that needed fixing. We hope

someone can create a nice App with as nice (or even nicer) navigation as

before - probably it could be a student project this fall.

Knut

On Mon, Aug 25, 2014 at 2:13 PM, Maheed Ramadan maheed.ramadan@nrc.no

wrote:

Dear All,

I have the latest version of DHIS 2.16 and I am trying to access the

api/resources endpoint in my browser and the following result is

displaying:

In the previous version 2.15, the API result was a formatted HTML page

where you can actually navigate the links and view the details of each

API

easily.

Even the demo version at è https://apps.dhis2.org/demo/api/resources is

showing the same result.

I also tried to access the web api from Excel è

https://apps.dhis2.org/demo/api/resources.json , and it is returning

the

following error :

DataFormat.Error: Expected value, found ‘<’.

Is this a bug in DHIS 2.16 or am I missing something here?

Awaiting your feedback.

Thank you.

Maheed


Mailing list: https://launchpad.net/~dhis2-users

Post to : dhis2-users@lists.launchpad.net

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-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-users

Post to : dhis2-users@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-users

More help : https://help.launchpad.net/ListHelp

Another one that allows you to click on the links are XV:

https://chrome.google.com/webstore/detail/xv-—-xml-viewer/eeocglpgjdpaefaedpblffpeebgmgddk

This is also possible with XMLTree, but you must enable it as an option in the extension settings. Either way, they both pretty much get the job done. :slight_smile:

Regards,

Jason

···

On Tue, Aug 26, 2014 at 12:11 PM, Lars Helge Øverland larshelge@gmail.com wrote:

Another one that allows you to click on the links are XV:

https://chrome.google.com/webstore/detail/xv-%E2%80%94-xml-viewer/eeocglpgjdpaefaedpblffpeebgmgddk

Yes, there are some very useful links
http://restclient.net/

This one is also very useful.

Regards
Brajesh

···

On 8/26/14, Lars Helge Øverland <larshelge@gmail.com> wrote:

Another one that allows you to click on the links are XV:

https://chrome.google.com/webstore/detail/xv-—-xml-viewer/eeocglpgjdpaefaedpblffpeebgmgddk

Dear Jason,

For restfull client editor i never relay on Chrome plugins, rather i
relay on only potentially recomended Fire Fox plugins like you can
find on

http://restclient.net/

Regards
Brajesh

···

On 8/26/14, Jason Pickering <jason.p.pickering@gmail.com> wrote:

OK, so would you like to share these with the group?

On Tue, Aug 26, 2014 at 3:59 PM, Brajesh Murari <brajjeshmurari@gmail.com> > wrote:

Jason, I know number of such plugins and tools for this work.

Thanks
Brajesh

On 8/26/14, Jason Pickering <jason.p.pickering@gmail.com> wrote:
> There are a number of extensions to Chrome which help with this. I
> personally use "XMLTree" although this is not an endorsement of this
> plugin. You can search the Chrome store for many such add-ons.
>
> Best regards,
> Jason
>
>
>
> On Mon, Aug 25, 2014 at 9:14 PM, Brajesh Murari < >> brajjeshmurari@gmail.com> >> > wrote:
>
>> Dear Maheed,
>>
>> Research & development of restful web services and its integration in
>> existing DHIS2 frameworks begins with an empirical case study for
>> providing
>> solution to a very complex use case scenario in which one slandered
>> statical application developed inside certain environment running on
>> certain platform on certain virtual machine with certain attached
>> database
>> with certain object relational data base schema can communicate with
>> another similar statical application developed in different
>> environment
>> running on different platform on different virtual machine with
different
>> data base with different object relational schema.
>>
>> Here in DHIS2, we achieved solution for this complex scenario by
>> developing
>> an intermediate middle-ware application programme interface or we can
say
>> like an intermediate component like DHIS2 WEB-API or more simply we
>> can
>> say
>> like a connector which brings an intermediate interface from where
>> DHIS2
>> can communicate with other similar statical application or multiple
>> applications like one to one or one to many relationship.
>>
>> Interesting thing in DHIS2 WEB-API brings intermediate communication
>> between another multiple applications, and for that it follow certain
>> rules
>> and regulation which we can say like protocol for communication like
>> http,ftp,sftp etc and on the top of these protocol these multiple
>> statical
>> applications interact with each other and exchange some data as per
>> the
>> request in the form of expected representational state like
>> json,xml,cvs,atom etc with each other and this way we solve these
complex
>> issues.
>>
>> Perhaps, I think as per your request and query which evolves with two
>> different aspects in which one addresses issue for understanding and
>> doing
>> certain DHIS2 application programme interface analytical study for
>> that
>> you
>> are looking to access demo web-api with certain request with data and
>> another you have find some result as response in certain format of
>> data
>> that you seems might be not as expected and has been addressed as an
>> web-appl bug.
>>
>> If i am right, than for your first query, i think DHIS2 restful
>> web-api
>> services is not as the exact tool for doing this analytical study.
>> Rather,
>> you can take a help of DHIS2-API documentation, please find as i have
>> attached in the attachment. And second, it returns with some data in
>> the
>> form of response after sending some http request, which does't brings
>> data
>> as should be expected and might be treated as bug in existing
>> functionality
>> and should be resolved in up-comming releases.
>>
>> Brajesh
>>
>>
>> From: Bob Jolliffe <bobjolliffe@gmail.com>
>>
>> > Date: Mon, 25 Aug 2014 16:17:58 +0100
>> > Subject: Re: [Dhis2-users] [Dhis2-devs] API resources navigation
>> > To: Knut Staring <knutst@gmail.com>
>> > Cc: dhis2-users <dhis2-users@lists.launchpad.net>,
>> > "dhis2-devs@lists.launchpad.net" <dhis2-devs@lists.launchpad.net>
>> >
>> > Yes that will be nice. I also miss the api navigation ... didn't
>> > realize
>> > how much I used it till it went :frowning:
>> >
>> >
>> > On 25 August 2014 15:08, Knut Staring <knutst@gmail.com> wrote:
>> >
>> > > Hi Maheed,
>> > > This is intentional. We do agree that the previous interface was
much
>> > > easier to navigate, but it had other issues that needed fixing.
>> > > We
>> hope
>> > > someone can create a nice App with as nice (or even nicer)
navigation
>> as
>> > > before - probably it could be a student project this fall.
>> > >
>> > > Knut
>> > >
>> > >
>> > > On Mon, Aug 25, 2014 at 2:13 PM, Maheed Ramadan >> >> > > <maheed.ramadan@nrc.no >> >> > >> >> > > wrote:
>> > >
>> > >> Dear All,
>> > >>
>> > >>
>> > >> I have the latest version of DHIS 2.16 and I am trying to access
the
>> > >> api/resources endpoint in my browser and the following result is
>> > displaying:
>> > >>
>> > >>
>> > >> In the previous version 2.15, the API result was a formatted HTML
>> > >> page
>> > >> where you can actually navigate the links and view the details of
>> > >> each
>> > API
>> > >> easily.
>> > >>
>> > >> Even the demo version at è
DHIS2 App Hub
>> is
>> > >> showing the same result.
>> > >>
>> > >>
>> > >>
>> > >> I also tried to access the web api from Excel è
>> > >> DHIS2 App Hub , and it is
returning
>> > the
>> > >> following error :
>> > >>
>> > >> DataFormat.Error: Expected value, found '<'.
>> > >>
>> > >>
>> > >>
>> > >>
>> > >>
>> > >> Is this a bug in DHIS 2.16 or am I missing something here?
>> > >>
>> > >>
>> > >>
>> > >>
>> > >>
>> > >> Awaiting your feedback.
>> > >>
>> > >>
>> > >>
>> > >> Thank you.
>> > >>
>> > >>
>> > >>
>> > >> Maheed
>> > >>
>> > >>
>> > >>
>> > >>
>> > >>
>> > >> _______________________________________________
>> > >> Mailing list: DHIS 2 Users in Launchpad
>> > >> Post to : dhis2-users@lists.launchpad.net
>> > >> Unsubscribe : DHIS 2 Users in Launchpad
>> > >> More help : ListHelp - Launchpad Help
>> > >>
>> > >>
>> > >
>> > >
>> > > --
>> > > Knut Staring
>> > > Dept. of Informatics, University of Oslo
>> > > +4791880522
>> > > http://dhis2.org
>> > >
>> > > _______________________________________________
>> > > Mailing list: DHIS 2 developers in Launchpad
>> > > Post to : dhis2-devs@lists.launchpad.net
>> > > Unsubscribe : DHIS 2 developers in Launchpad
>> > > More help : ListHelp - Launchpad Help
>> > >
>> > >
>> >
>>
>> _______________________________________________
>> Mailing list: DHIS 2 Users in Launchpad
>> Post to : dhis2-users@lists.launchpad.net
>> Unsubscribe : DHIS 2 Users in Launchpad
>> More help : ListHelp - Launchpad Help
>>
>>
>

Yes, this one is very good tool, i tested yesterday, and its working
very nicely.

Thanks Lars

···

On 8/26/14, Lars Helge Øverland <larshelge@gmail.com> wrote:

Another one that allows you to click on the links are XV:

https://chrome.google.com/webstore/detail/xv-—-xml-viewer/eeocglpgjdpaefaedpblffpeebgmgddk