diff OrthancFramework/Sources/Enumerations.h @ 4399:80fd140b12ba

New command-line option: "--openapi" to write the OpenAPI documentation of the REST API to a file
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 23 Dec 2020 12:21:03 +0100
parents 3dffe8f7af48
children 83371ccdfe80
line wrap: on
line diff
--- a/OrthancFramework/Sources/Enumerations.h	Tue Dec 22 09:39:06 2020 +0100
+++ b/OrthancFramework/Sources/Enumerations.h	Wed Dec 23 12:21:03 2020 +0100
@@ -499,7 +499,8 @@
     RequestOrigin_RestApi,
     RequestOrigin_Plugins,
     RequestOrigin_Lua,
-    RequestOrigin_WebDav   // New in Orthanc 1.8.0
+    RequestOrigin_WebDav,   // New in Orthanc 1.8.0
+    RequestOrigin_Documentation  // New in Orthanc in Orthanc 1.8.3 for API documentation (OpenAPI)
   };
 
   enum ServerBarrierEvent
@@ -885,4 +886,9 @@
   ORTHANC_PUBLIC
   bool LookupTransferSyntax(DicomTransferSyntax& target,
                             const std::string& uid);
+
+  ORTHANC_PUBLIC
+  const char* GetResourceTypeText(ResourceType type,
+                                  bool isPlural,
+                                  bool isLowerCase);
 }