comparison 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
comparison
equal deleted inserted replaced
4413:22a1352a0823 4414:d928dfcacb4b
103 Parameters answerFields_; // Only if JSON object 103 Parameters answerFields_; // Only if JSON object
104 std::string answerDescription_; 104 std::string answerDescription_;
105 bool hasSampleText_; 105 bool hasSampleText_;
106 std::string sampleText_; 106 std::string sampleText_;
107 Json::Value sampleJson_; 107 Json::Value sampleJson_;
108 bool deprecated_;
108 109
109 public: 110 public:
110 explicit RestApiCallDocumentation(HttpMethod method) : 111 explicit RestApiCallDocumentation(HttpMethod method) :
111 method_(method), 112 method_(method),
112 hasSampleText_(false), 113 hasSampleText_(false),
113 sampleJson_(Json::nullValue) 114 sampleJson_(Json::nullValue),
115 deprecated_(false)
114 { 116 {
115 } 117 }
116 118
117 RestApiCallDocumentation& SetTag(const std::string& tag) 119 RestApiCallDocumentation& SetTag(const std::string& tag)
118 { 120 {
193 195
194 const std::string& GetTag() const 196 const std::string& GetTag() const
195 { 197 {
196 return tag_; 198 return tag_;
197 } 199 }
200
201 void SetDeprecated()
202 {
203 deprecated_ = true;
204 }
205
206 bool IsDeprecated() const
207 {
208 return deprecated_;
209 }
198 }; 210 };
199 } 211 }