diff OrthancServer/Sources/OrthancRestApi/OrthancRestSystem.cpp @ 4418:9d6fa3da8f00

cont openapi
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 29 Dec 2020 10:24:17 +0100
parents a4518adede59
children 83371ccdfe80
line wrap: on
line diff
--- a/OrthancServer/Sources/OrthancRestApi/OrthancRestSystem.cpp	Mon Dec 28 17:40:35 2020 +0100
+++ b/OrthancServer/Sources/OrthancRestApi/OrthancRestSystem.cpp	Tue Dec 29 10:24:17 2020 +0100
@@ -418,6 +418,18 @@
 
   static void GetOrthancExplorerPlugins(RestApiGetCall& call)
   {
+    if (call.IsDocumentation())
+    {
+      call.GetDocumentation()
+        .SetTag("System")
+        .SetSummary("JavaScript extensions to Orthanc Explorer")
+        .SetDescription("Get the JavaScript extensions that are installed by all the plugins using the "
+                        "`OrthancPluginExtendOrthancExplorer()` function of the plugin SDK. "
+                        "This route is for internal use of Orthanc Explorer.")
+        .AddAnswerType(MimeType_JavaScript, "The JavaScript extensions");
+      return;
+    }
+
     std::string s = "// Extensions to Orthanc Explorer by the registered plugins\n\n";
 
     if (OrthancRestApi::GetContext(call).HasPlugins())