Mercurial > hg > orthanc
comparison OrthancServer/Sources/OrthancRestApi/OrthancRestSystem.cpp @ 4988:8fba26292a9f
Housekeeper plugin: finalizing + integration tests ok
author | Alain Mazy <am@osimis.io> |
---|---|
date | Sat, 30 Apr 2022 19:39:40 +0200 |
parents | f316413027fd |
children | c2ebc47f4f18 |
comparison
equal
deleted
inserted
replaced
4986:a25e74fad379 | 4988:8fba26292a9f |
---|---|
72 static const char* const PLUGINS_ENABLED = "PluginsEnabled"; | 72 static const char* const PLUGINS_ENABLED = "PluginsEnabled"; |
73 static const char* const STORAGE_AREA_PLUGIN = "StorageAreaPlugin"; | 73 static const char* const STORAGE_AREA_PLUGIN = "StorageAreaPlugin"; |
74 static const char* const VERSION = "Version"; | 74 static const char* const VERSION = "Version"; |
75 static const char* const MAIN_DICOM_TAGS = "MainDicomTags"; | 75 static const char* const MAIN_DICOM_TAGS = "MainDicomTags"; |
76 static const char* const STORAGE_COMPRESSION = "StorageCompression"; | 76 static const char* const STORAGE_COMPRESSION = "StorageCompression"; |
77 static const char* const OVERWRITE_INSTANCES = "OverwriteInstances"; | |
78 static const char* const INGEST_TRANSCODING = "IngestTranscoding"; | |
77 | 79 |
78 if (call.IsDocumentation()) | 80 if (call.IsDocumentation()) |
79 { | 81 { |
80 call.GetDocumentation() | 82 call.GetDocumentation() |
81 .SetTag("System") | 83 .SetTag("System") |
102 "Whether Orthanc handle revisions of metadata and attachments to deal with multiple writers (new in Orthanc 1.9.2)") | 104 "Whether Orthanc handle revisions of metadata and attachments to deal with multiple writers (new in Orthanc 1.9.2)") |
103 .SetAnswerField(MAIN_DICOM_TAGS, RestApiCallDocumentation::Type_JsonObject, | 105 .SetAnswerField(MAIN_DICOM_TAGS, RestApiCallDocumentation::Type_JsonObject, |
104 "The list of MainDicomTags saved in DB for each resource level (new in Orthanc 1.11.0)") | 106 "The list of MainDicomTags saved in DB for each resource level (new in Orthanc 1.11.0)") |
105 .SetAnswerField(STORAGE_COMPRESSION, RestApiCallDocumentation::Type_Boolean, | 107 .SetAnswerField(STORAGE_COMPRESSION, RestApiCallDocumentation::Type_Boolean, |
106 "Whether storage compression is enabled (new in Orthanc 1.11.0)") | 108 "Whether storage compression is enabled (new in Orthanc 1.11.0)") |
109 .SetAnswerField(OVERWRITE_INSTANCES, RestApiCallDocumentation::Type_Boolean, | |
110 "Whether instances are overwritten when re-ingested (new in Orthanc 1.11.0)") | |
111 .SetAnswerField(INGEST_TRANSCODING, RestApiCallDocumentation::Type_String, | |
112 "Whether instances are transcoded when ingested into Orthanc (`""` if no transcoding is performed) (new in Orthanc 1.11.0)") | |
107 .SetHttpGetSample("https://demo.orthanc-server.com/system", true); | 113 .SetHttpGetSample("https://demo.orthanc-server.com/system", true); |
108 return; | 114 return; |
109 } | 115 } |
110 | 116 |
111 ServerContext& context = OrthancRestApi::GetContext(call); | 117 ServerContext& context = OrthancRestApi::GetContext(call); |
123 result[DICOM_PORT] = lock.GetConfiguration().GetUnsignedIntegerParameter(DICOM_PORT, 4242); | 129 result[DICOM_PORT] = lock.GetConfiguration().GetUnsignedIntegerParameter(DICOM_PORT, 4242); |
124 result[HTTP_PORT] = lock.GetConfiguration().GetUnsignedIntegerParameter(HTTP_PORT, 8042); | 130 result[HTTP_PORT] = lock.GetConfiguration().GetUnsignedIntegerParameter(HTTP_PORT, 8042); |
125 result[NAME] = lock.GetConfiguration().GetStringParameter(NAME, ""); | 131 result[NAME] = lock.GetConfiguration().GetStringParameter(NAME, ""); |
126 result[CHECK_REVISIONS] = lock.GetConfiguration().GetBooleanParameter(CHECK_REVISIONS, false); // New in Orthanc 1.9.2 | 132 result[CHECK_REVISIONS] = lock.GetConfiguration().GetBooleanParameter(CHECK_REVISIONS, false); // New in Orthanc 1.9.2 |
127 result[STORAGE_COMPRESSION] = lock.GetConfiguration().GetBooleanParameter(STORAGE_COMPRESSION, false); // New in Orthanc 1.11.0 | 133 result[STORAGE_COMPRESSION] = lock.GetConfiguration().GetBooleanParameter(STORAGE_COMPRESSION, false); // New in Orthanc 1.11.0 |
134 result[OVERWRITE_INSTANCES] = lock.GetConfiguration().GetBooleanParameter(OVERWRITE_INSTANCES, false); // New in Orthanc 1.11.0 | |
135 result[INGEST_TRANSCODING] = lock.GetConfiguration().GetStringParameter(INGEST_TRANSCODING, ""); // New in Orthanc 1.11.0 | |
128 } | 136 } |
129 | 137 |
130 result[STORAGE_AREA_PLUGIN] = Json::nullValue; | 138 result[STORAGE_AREA_PLUGIN] = Json::nullValue; |
131 result[DATABASE_BACKEND_PLUGIN] = Json::nullValue; | 139 result[DATABASE_BACKEND_PLUGIN] = Json::nullValue; |
132 | 140 |