comparison OrthancFramework/Sources/RestApi/RestApiOutput.h @ 4399:80fd140b12ba

New command-line option: "--openapi" to write the OpenAPI documentation of the REST API to a file
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 23 Dec 2020 12:21:03 +0100
parents 3af1d763763a
children d9473bd5ed43
comparison
equal deleted inserted replaced
4398:38c22715bb56 4399:80fd140b12ba
30 namespace Orthanc 30 namespace Orthanc
31 { 31 {
32 class RestApiOutput 32 class RestApiOutput
33 { 33 {
34 private: 34 private:
35 HttpOutput& output_; 35 HttpOutput& output_;
36 HttpMethod method_; 36 HttpMethod method_;
37 bool alreadySent_; 37 bool alreadySent_;
38 bool convertJsonToXml_; 38 bool convertJsonToXml_;
39 39
40 void CheckStatus(); 40 void CheckStatus();
41 41
42 void SignalErrorInternal(HttpStatus status, 42 void SignalErrorInternal(HttpStatus status,
43 const char* message, 43 const char* message,