changeset 6053:6dbf5f4a6159

fix /modalities/../get documentation
author Alain Mazy <am@orthanc.team>
date Thu, 20 Mar 2025 18:49:49 +0100
parents 4ee84545fcbe
children 0a0362c50882
files NEWS OrthancServer/Sources/OrthancRestApi/OrthancRestModalities.cpp
diffstat 2 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/NEWS	Mon Mar 17 17:01:40 2025 +0100
+++ b/NEWS	Thu Mar 20 18:49:49 2025 +0100
@@ -11,6 +11,7 @@
 * All routes accepting a "transcode" url argument or a "Transcode" field in the payload now also
   accepts a "lossy-quality" url argument or a "LossyQuality" field to define the compression quality factor.
   If not specified, the "DicomLossyTranscodingQuality" configuration is taken into account.
+* Fix OpenAPI documentation for /modalities/../get
 
 
 Maintenance
--- a/OrthancServer/Sources/OrthancRestApi/OrthancRestModalities.cpp	Mon Mar 17 17:01:40 2025 +0100
+++ b/OrthancServer/Sources/OrthancRestApi/OrthancRestModalities.cpp	Thu Mar 20 18:49:49 2025 +0100
@@ -1699,8 +1699,8 @@
                          "negotiation to certain SOPClassUID or to present uncommon SOPClassUID during "
                          "the DICOM negotiation.  By default, "
                          "Orhanc will propose the most 120 common SOPClassUIDs.", true)
-        .SetRequestField(KEY_QUERY, RestApiCallDocumentation::Type_JsonObject,
-                         "A query object identifying all the DICOM resources to be retrieved", true)
+        .SetRequestField(KEY_LEVEL, RestApiCallDocumentation::Type_String,
+                         "Level of the query (`Patient`, `Study`, `Series` or `Instance`)", true)
         .SetRequestField(KEY_LOCAL_AET, RestApiCallDocumentation::Type_String,
                          "Local AET that is used for this commands, defaults to `DicomAet` configuration option. "
                          "Ignored if `DicomModalities` already sets `LocalAet` for this modality.", false)