Mercurial > hg > orthanc
diff Plugins/Samples/Common/IOrthancConnection.h @ 2180:71b8bec8ca91
improvements
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 25 Nov 2016 17:00:39 +0100 |
parents | de32f3b4ff09 |
children | 761dfdabe437 |
line wrap: on
line diff
--- a/Plugins/Samples/Common/IOrthancConnection.h Fri Nov 25 16:11:44 2016 +0100 +++ b/Plugins/Samples/Common/IOrthancConnection.h Fri Nov 25 17:00:39 2016 +0100 @@ -36,6 +36,7 @@ #include <boost/noncopyable.hpp> #include <string> +#include <json/value.h> namespace OrthancPlugins { @@ -52,5 +53,17 @@ virtual void RestApiPost(std::string& result, const std::string& uri, const std::string& body) = 0; + + static void ParseJson(Json::Value& result, + const std::string& content); + + static void RestApiGet(Json::Value& result, + IOrthancConnection& orthanc, + const std::string& uri); + + static void RestApiGet(Json::Value& result, + IOrthancConnection& orthanc, + const std::string& uri, + const std::string& body); }; }