# HG changeset patch # User Sebastien Jodogne # Date 1432716659 -7200 # Node ID 4460e2622016b97b720600adb508452eba034444 # Parent feaf2840917c105383e1f1b0f4884cb0037fc7aa more information in /system diff -r feaf2840917c -r 4460e2622016 OrthancServer/OrthancRestApi/OrthancRestSystem.cpp --- a/OrthancServer/OrthancRestApi/OrthancRestSystem.cpp Wed May 20 15:21:26 2015 +0200 +++ b/OrthancServer/OrthancRestApi/OrthancRestSystem.cpp Wed May 27 10:50:59 2015 +0200 @@ -54,9 +54,14 @@ { Json::Value result = Json::objectValue; - result["Version"] = ORTHANC_VERSION; + std::string dbVersion = OrthancRestApi::GetIndex(call).GetGlobalProperty(GlobalProperty_DatabaseSchemaVersion, "0"); + + result["DatabaseVersion"] = boost::lexical_cast(dbVersion); + result["DicomAet"] = Configuration::GetGlobalStringParameter("DicomAet", "ORTHANC"); + result["DicomPort"] = Configuration::GetGlobalIntegerParameter("DicomPort", 4242); + result["HttpPort"] = Configuration::GetGlobalIntegerParameter("HttpPort", 8042); result["Name"] = Configuration::GetGlobalStringParameter("Name", ""); - result["DatabaseVersion"] = boost::lexical_cast(OrthancRestApi::GetIndex(call).GetGlobalProperty(GlobalProperty_DatabaseSchemaVersion, "0")); + result["Version"] = ORTHANC_VERSION; call.GetOutput().AnswerJson(result); }