comparison OrthancServer/OrthancRestApi/OrthancRestSystem.cpp @ 2444:d9e3781d2023

"/system" URI returns the version of the Orthanc REST API
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 08 Dec 2017 10:21:24 +0100
parents 7284093111b0
children 878b59270859
comparison
equal deleted inserted replaced
2443:c149cee81250 2444:d9e3781d2023
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 result["ApiVersion"] = ORTHANC_API_VERSION;
57 result["DatabaseVersion"] = OrthancRestApi::GetIndex(call).GetDatabaseVersion(); 58 result["DatabaseVersion"] = OrthancRestApi::GetIndex(call).GetDatabaseVersion();
58 result["DicomAet"] = Configuration::GetGlobalStringParameter("DicomAet", "ORTHANC"); 59 result["DicomAet"] = Configuration::GetGlobalStringParameter("DicomAet", "ORTHANC");
59 result["DicomPort"] = Configuration::GetGlobalUnsignedIntegerParameter("DicomPort", 4242); 60 result["DicomPort"] = Configuration::GetGlobalUnsignedIntegerParameter("DicomPort", 4242);
60 result["HttpPort"] = Configuration::GetGlobalUnsignedIntegerParameter("HttpPort", 8042); 61 result["HttpPort"] = Configuration::GetGlobalUnsignedIntegerParameter("HttpPort", 8042);
61 result["Name"] = Configuration::GetGlobalStringParameter("Name", ""); 62 result["Name"] = Configuration::GetGlobalStringParameter("Name", "");