diff CodeAnalysis/CustomFunctions.json @ 192:b0f096d2339e java-code-model

documentation of orthanc.RegisterRestCallback()
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 02 Jul 2024 18:25:53 +0200
parents 30ed49f2487f
children 66cd20e970d8
line wrap: on
line diff
--- a/CodeAnalysis/CustomFunctions.json	Tue Jul 02 18:00:52 2024 +0200
+++ b/CodeAnalysis/CustomFunctions.json	Tue Jul 02 18:25:53 2024 +0200
@@ -1,2 +1,25 @@
 [
+  {
+    "short_name" : "RegisterRestCallback",
+    "implementation" : "RegisterRestCallback",
+    "args" : [
+      {
+        "sdk_name" : "pathRegularExpression",
+        "sdk_type" : "const char *"
+      },
+      {
+        "sdk_name" : "callback",
+        "sdk_type" : "Callable",
+        "callable_type" : "typing.Callable[[RestOutput, str], None]"
+      }
+    ],
+    "documentation" : {
+      "args" : {
+        "pathRegularExpression" : "Regular expression for the URI. May contain groups.",
+        "callback" : "The callback function to handle the REST call."
+      },
+      "description" : [ "Register a REST callback." ]
+    },
+    "return_sdk_type" : "void"
+  }
 ]