Mercurial > hg > orthanc
comparison OrthancServer/OrthancRestApi/OrthancRestSystem.cpp @ 1369:4460e2622016
more information in /system
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 27 May 2015 10:50:59 +0200 |
parents | bba8a47922d1 |
children | 461e7554bff7 |
comparison
equal
deleted
inserted
replaced
1363:feaf2840917c | 1369:4460e2622016 |
---|---|
52 | 52 |
53 static void GetSystemInformation(RestApiGetCall& call) | 53 static void GetSystemInformation(RestApiGetCall& call) |
54 { | 54 { |
55 Json::Value result = Json::objectValue; | 55 Json::Value result = Json::objectValue; |
56 | 56 |
57 std::string dbVersion = OrthancRestApi::GetIndex(call).GetGlobalProperty(GlobalProperty_DatabaseSchemaVersion, "0"); | |
58 | |
59 result["DatabaseVersion"] = boost::lexical_cast<int>(dbVersion); | |
60 result["DicomAet"] = Configuration::GetGlobalStringParameter("DicomAet", "ORTHANC"); | |
61 result["DicomPort"] = Configuration::GetGlobalIntegerParameter("DicomPort", 4242); | |
62 result["HttpPort"] = Configuration::GetGlobalIntegerParameter("HttpPort", 8042); | |
63 result["Name"] = Configuration::GetGlobalStringParameter("Name", ""); | |
57 result["Version"] = ORTHANC_VERSION; | 64 result["Version"] = ORTHANC_VERSION; |
58 result["Name"] = Configuration::GetGlobalStringParameter("Name", ""); | |
59 result["DatabaseVersion"] = boost::lexical_cast<int>(OrthancRestApi::GetIndex(call).GetGlobalProperty(GlobalProperty_DatabaseSchemaVersion, "0")); | |
60 | 65 |
61 call.GetOutput().AnswerJson(result); | 66 call.GetOutput().AnswerJson(result); |
62 } | 67 } |
63 | 68 |
64 static void GetStatistics(RestApiGetCall& call) | 69 static void GetStatistics(RestApiGetCall& call) |