Mercurial > hg > orthanc
diff OrthancFramework/Sources/RestApi/RestApiCallDocumentation.h @ 4414:d928dfcacb4b
cont openapi
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 28 Dec 2020 14:46:51 +0100 |
parents | 68b96234fbd6 |
children | b50410d0e98c |
line wrap: on
line diff
--- a/OrthancFramework/Sources/RestApi/RestApiCallDocumentation.h Mon Dec 28 13:08:00 2020 +0100 +++ b/OrthancFramework/Sources/RestApi/RestApiCallDocumentation.h Mon Dec 28 14:46:51 2020 +0100 @@ -105,12 +105,14 @@ bool hasSampleText_; std::string sampleText_; Json::Value sampleJson_; + bool deprecated_; public: explicit RestApiCallDocumentation(HttpMethod method) : method_(method), hasSampleText_(false), - sampleJson_(Json::nullValue) + sampleJson_(Json::nullValue), + deprecated_(false) { } @@ -195,5 +197,15 @@ { return tag_; } + + void SetDeprecated() + { + deprecated_ = true; + } + + bool IsDeprecated() const + { + return deprecated_; + } }; }