Getting Version Information Through API?

Hi

Is it possible to know which version of DHIS2 is running through API call?

And, are these endpoints equivalent assuming I am running on 25 version of DHIS2? :

…/api/schemas AND …/api/25/schemas

Thanks

harsh

Hi Harsh,

have a look at the docs here:

https://ci.dhis2.org/docs/master/en/developer/html/webapi_system_resource.html#d0e10839

e.g.:

https://play.dhis2.org/demo/api/system/info

Yes /api and /api/{current_version} are equivalent.

regards,

Lars

···

On Thu, Dec 15, 2016 at 9:35 AM, Harsh Atal harsh.atal@gmail.com wrote:

Hi

Is it possible to know which version of DHIS2 is running through API call?

And, are these endpoints equivalent assuming I am running on 25 version of DHIS2? :

…/api/schemas AND …/api/25/schemas

Thanks

harsh


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

Lars Helge Øverland

Lead developer, DHIS 2

University of Oslo

Skype: larshelgeoverland

lars@dhis2.org

http://www.dhis2.org

Thanks

···

On 15 December 2016 at 14:14, Lars Helge Øverland lars@dhis2.org wrote:

Hi Harsh,

have a look at the docs here:

https://ci.dhis2.org/docs/master/en/developer/html/webapi_system_resource.html#d0e10839

e.g.:

https://play.dhis2.org/demo/api/system/info

Yes /api and /api/{current_version} are equivalent.

regards,

Lars

On Thu, Dec 15, 2016 at 9:35 AM, Harsh Atal harsh.atal@gmail.com wrote:

Hi

Is it possible to know which version of DHIS2 is running through API call?

And, are these endpoints equivalent assuming I am running on 25 version of DHIS2? :

…/api/schemas AND …/api/25/schemas

Thanks

harsh


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

Lars Helge Øverland

Lead developer, DHIS 2

University of Oslo

Skype: larshelgeoverland

lars@dhis2.org

http://www.dhis2.org