diff OrthancServer/OrthancRestApi/OrthancRestSystem.cpp @ 2444:d9e3781d2023

"/system" URI returns the version of the Orthanc REST API
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 08 Dec 2017 10:21:24 +0100
parents 7284093111b0
children 878b59270859
line wrap: on
line diff
--- a/OrthancServer/OrthancRestApi/OrthancRestSystem.cpp	Wed Dec 06 14:44:12 2017 +0100
+++ b/OrthancServer/OrthancRestApi/OrthancRestSystem.cpp	Fri Dec 08 10:21:24 2017 +0100
@@ -54,6 +54,7 @@
   {
     Json::Value result = Json::objectValue;
 
+    result["ApiVersion"] = ORTHANC_API_VERSION;
     result["DatabaseVersion"] = OrthancRestApi::GetIndex(call).GetDatabaseVersion();
     result["DicomAet"] = Configuration::GetGlobalStringParameter("DicomAet", "ORTHANC");
     result["DicomPort"] = Configuration::GetGlobalUnsignedIntegerParameter("DicomPort", 4242);