diff OrthancFramework/Sources/RestApi/RestApiPostCall.h @ 4473:68f52897c119

new URIs: /tools/accepted-transfer-syntaxes and /tools/unknown-sop-class-accepted to replace Lua callbacks for transfer syntaxes
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 26 Jan 2021 14:48:10 +0100
parents d9473bd5ed43
children 7053502fbf97
line wrap: on
line diff
--- a/OrthancFramework/Sources/RestApi/RestApiPostCall.h	Tue Jan 26 10:18:50 2021 +0100
+++ b/OrthancFramework/Sources/RestApi/RestApiPostCall.h	Tue Jan 26 14:48:10 2021 +0100
@@ -72,5 +72,12 @@
     {
       return Toolbox::ReadJson(result, bodyData_, bodySize_);
     }
+
+    bool ParseBooleanBody() const
+    {
+      std::string s;
+      BodyToString(s);
+      return RestApiCall::ParseBoolean(s);
+    }
   };
 }