comparison Plugins/Samples/Common/OrthancPluginCppWrapper.h @ 3478:f93a9c6c00c5

added RestApiPost overload to retrieve a string response
author Alain Mazy <alain@mazy.be>
date Thu, 01 Aug 2019 11:46:01 +0200
parents 0371b65d5f76
children 94f4a18a79cc
comparison
equal deleted inserted replaced
3474:3355a2c060c4 3478:f93a9c6c00c5
466 bool RestApiGetString(std::string& result, 466 bool RestApiGetString(std::string& result,
467 const std::string& uri, 467 const std::string& uri,
468 const std::map<std::string, std::string>& httpHeaders, 468 const std::map<std::string, std::string>& httpHeaders,
469 bool applyPlugins); 469 bool applyPlugins);
470 470
471 bool RestApiPost(std::string& result,
472 const std::string& uri,
473 const void* body,
474 size_t bodySize,
475 bool applyPlugins);
476
471 bool RestApiPost(Json::Value& result, 477 bool RestApiPost(Json::Value& result,
472 const std::string& uri, 478 const std::string& uri,
473 const void* body, 479 const void* body,
474 size_t bodySize, 480 size_t bodySize,
475 bool applyPlugins); 481 bool applyPlugins);