Mercurial > hg > orthanc
comparison OrthancServer/OrthancRestApi/OrthancRestSystem.cpp @ 1785:c131566b8252 dcmtk-3.6.1
integration mainline->dcmtk-3.6.1
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 18 Nov 2015 10:16:21 +0100 |
parents | de1413733c97 |
children | b1291df2f780 |
comparison
equal
deleted
inserted
replaced
1639:1b82bb0446d2 | 1785:c131566b8252 |
---|---|
51 | 51 |
52 static void GetSystemInformation(RestApiGetCall& call) | 52 static void GetSystemInformation(RestApiGetCall& call) |
53 { | 53 { |
54 Json::Value result = Json::objectValue; | 54 Json::Value result = Json::objectValue; |
55 | 55 |
56 std::string dbVersion = OrthancRestApi::GetIndex(call).GetGlobalProperty(GlobalProperty_DatabaseSchemaVersion, "0"); | 56 result["DatabaseVersion"] = OrthancRestApi::GetIndex(call).GetDatabaseVersion(); |
57 | |
58 result["DatabaseVersion"] = boost::lexical_cast<int>(dbVersion); | |
59 result["DicomAet"] = Configuration::GetGlobalStringParameter("DicomAet", "ORTHANC"); | 57 result["DicomAet"] = Configuration::GetGlobalStringParameter("DicomAet", "ORTHANC"); |
60 result["DicomPort"] = Configuration::GetGlobalIntegerParameter("DicomPort", 4242); | 58 result["DicomPort"] = Configuration::GetGlobalIntegerParameter("DicomPort", 4242); |
61 result["HttpPort"] = Configuration::GetGlobalIntegerParameter("HttpPort", 8042); | 59 result["HttpPort"] = Configuration::GetGlobalIntegerParameter("HttpPort", 8042); |
62 result["Name"] = Configuration::GetGlobalStringParameter("Name", ""); | 60 result["Name"] = Configuration::GetGlobalStringParameter("Name", ""); |
63 result["Version"] = ORTHANC_VERSION; | 61 result["Version"] = ORTHANC_VERSION; |