Mercurial > hg > orthanc
comparison 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 |
comparison
equal
deleted
inserted
replaced
1217:92ba9c7b431f | 1218:efece308018e |
---|---|
52 { | 52 { |
53 Json::Value result = Json::objectValue; | 53 Json::Value result = Json::objectValue; |
54 | 54 |
55 result["Version"] = ORTHANC_VERSION; | 55 result["Version"] = ORTHANC_VERSION; |
56 result["Name"] = Configuration::GetGlobalStringParameter("Name", ""); | 56 result["Name"] = Configuration::GetGlobalStringParameter("Name", ""); |
57 result["DatabaseVersion"] = boost::lexical_cast<int>(OrthancRestApi::GetIndex(call).GetGlobalProperty(GlobalProperty_DatabaseSchemaVersion, "0")); | |
57 | 58 |
58 call.GetOutput().AnswerJson(result); | 59 call.GetOutput().AnswerJson(result); |
59 } | 60 } |
60 | 61 |
61 static void GetStatistics(RestApiGetCall& call) | 62 static void GetStatistics(RestApiGetCall& call) |