Mercurial > hg > orthanc
diff OrthancServer/OrthancRestApi/OrthancRestSystem.cpp @ 1218:efece308018e
report database version in /system
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 06 Nov 2014 15:58:13 +0100 |
parents | 01414536c930 |
children | f1c01451a8ee |
line wrap: on
line diff
--- a/OrthancServer/OrthancRestApi/OrthancRestSystem.cpp Tue Nov 04 16:09:35 2014 +0100 +++ b/OrthancServer/OrthancRestApi/OrthancRestSystem.cpp Thu Nov 06 15:58:13 2014 +0100 @@ -54,6 +54,7 @@ result["Version"] = ORTHANC_VERSION; result["Name"] = Configuration::GetGlobalStringParameter("Name", ""); + result["DatabaseVersion"] = boost::lexical_cast<int>(OrthancRestApi::GetIndex(call).GetGlobalProperty(GlobalProperty_DatabaseSchemaVersion, "0")); call.GetOutput().AnswerJson(result); }