Mercurial > hg > orthanc
comparison OrthancFramework/Sources/RestApi/RestApiCallDocumentation.h @ 4622:9086aeb9d9d2 db-changes
RestApiCallDocumentation::SetAnswerHeader() and Toolbox::RemoveSurroundingQuotes()
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 16 Apr 2021 10:48:57 +0200 |
parents | d9473bd5ed43 |
children | 7053502fbf97 |
comparison
equal
deleted
inserted
replaced
4621:82dbe45c947a | 4622:9086aeb9d9d2 |
---|---|
100 AllowedTypes requestTypes_; | 100 AllowedTypes requestTypes_; |
101 Parameters requestFields_; // For JSON request | 101 Parameters requestFields_; // For JSON request |
102 AllowedTypes answerTypes_; | 102 AllowedTypes answerTypes_; |
103 Parameters answerFields_; // Only if JSON object | 103 Parameters answerFields_; // Only if JSON object |
104 std::string answerDescription_; | 104 std::string answerDescription_; |
105 Parameters answerHeaders_; | |
105 bool hasSampleText_; | 106 bool hasSampleText_; |
106 std::string sampleText_; | 107 std::string sampleText_; |
107 Json::Value sampleJson_; | 108 Json::Value sampleJson_; |
108 bool deprecated_; | 109 bool deprecated_; |
109 | 110 |
170 | 171 |
171 RestApiCallDocumentation& SetAnswerField(const std::string& name, | 172 RestApiCallDocumentation& SetAnswerField(const std::string& name, |
172 Type type, | 173 Type type, |
173 const std::string& description); | 174 const std::string& description); |
174 | 175 |
176 RestApiCallDocumentation& SetAnswerHeader(const std::string& name, | |
177 const std::string& description); | |
178 | |
175 void SetHttpGetSample(const std::string& url, | 179 void SetHttpGetSample(const std::string& url, |
176 bool isJson); | 180 bool isJson); |
177 | 181 |
178 void SetTruncatedJsonHttpGetSample(const std::string& url, | 182 void SetTruncatedJsonHttpGetSample(const std::string& url, |
179 size_t size); | 183 size_t size); |