Mercurial > hg > orthanc
diff OrthancFramework/Sources/RestApi/RestApiPutCall.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/RestApiPutCall.h Tue Jan 26 10:18:50 2021 +0100 +++ b/OrthancFramework/Sources/RestApi/RestApiPutCall.h Tue Jan 26 14:48:10 2021 +0100 @@ -71,6 +71,13 @@ virtual bool ParseJsonRequest(Json::Value& result) const ORTHANC_OVERRIDE { return Toolbox::ReadJson(result, bodyData_, bodySize_); - } + } + + bool ParseBooleanBody() const + { + std::string s; + BodyToString(s); + return RestApiCall::ParseBoolean(s); + } }; }