changeset 5393:c5c00bee291a

in openapi generator: renamed '...' into 'path' since '...' is an invalid name
author Alain Mazy <am@osimis.io>
date Tue, 03 Oct 2023 11:33:59 +0200
parents 92ebf6a10cb5
children 002ba12a8bee
files OrthancFramework/Sources/RestApi/RestApi.cpp OrthancServer/Sources/OrthancRestApi/OrthancRestResources.cpp
diffstat 2 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/OrthancFramework/Sources/RestApi/RestApi.cpp	Tue Oct 03 11:14:28 2023 +0200
+++ b/OrthancFramework/Sources/RestApi/RestApi.cpp	Tue Oct 03 11:33:59 2023 +0200
@@ -157,7 +157,7 @@
         std::string path = Toolbox::FlattenUri(uri);
         if (hasTrailing)
         {
-          path += "/{...}";
+          path += "/{path}";
         }
 
         std::set<std::string> uriArgumentsNames;
@@ -173,8 +173,8 @@
 
         if (hasTrailing)
         {
-          uriArgumentsNames.insert("...");
-          uriArguments["..."] = "";
+          uriArgumentsNames.insert("path");
+          uriArguments["path"] = "";
         }
 
         if (resource.HasHandler(HttpMethod_Get))
--- a/OrthancServer/Sources/OrthancRestApi/OrthancRestResources.cpp	Tue Oct 03 11:14:28 2023 +0200
+++ b/OrthancServer/Sources/OrthancRestApi/OrthancRestResources.cpp	Tue Oct 03 11:33:59 2023 +0200
@@ -2735,7 +2735,7 @@
         .SetSummary("Get raw tag")
         .SetDescription("Get the raw content of one DICOM tag in the hierarchy of DICOM dataset")
         .SetUriArgument("id", "Orthanc identifier of the DICOM instance of interest")
-        .SetUriArgument("dicomTagPath", "Path to the DICOM tag. This is the interleaving of one DICOM tag, possibly followed "
+        .SetUriArgument("path", "Path to the DICOM tag. This is the interleaving of one DICOM tag, possibly followed "
                         "by an index for sequences. Sequences are accessible as, for instance, `/0008-1140/1/0008-1150`")
         .AddAnswerType(MimeType_Binary, "The raw value of the tag of intereset "
                        "(binary data, whose memory layout depends on the underlying transfer syntax), "