Mercurial > hg > orthanc
comparison OrthancFramework/Sources/RestApi/RestApi.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 | 82652c5fc04f |
children | 68b96234fbd6 |
comparison
equal
deleted
inserted
replaced
4398:38c22715bb56 | 4399:80fd140b12ba |
---|---|
42 RequestOrigin origin, | 42 RequestOrigin origin, |
43 const char* remoteIp, | 43 const char* remoteIp, |
44 const char* username, | 44 const char* username, |
45 HttpMethod method, | 45 HttpMethod method, |
46 const UriComponents& uri, | 46 const UriComponents& uri, |
47 const HttpToolbox::Arguments& headers) ORTHANC_OVERRIDE | 47 const HttpToolbox::Arguments& headers) ORTHANC_OVERRIDE; |
48 { | |
49 return false; | |
50 } | |
51 | 48 |
52 virtual bool Handle(HttpOutput& output, | 49 virtual bool Handle(HttpOutput& output, |
53 RequestOrigin origin, | 50 RequestOrigin origin, |
54 const char* remoteIp, | 51 const char* remoteIp, |
55 const char* username, | 52 const char* username, |
69 void Register(const std::string& path, | 66 void Register(const std::string& path, |
70 RestApiPostCall::Handler handler); | 67 RestApiPostCall::Handler handler); |
71 | 68 |
72 void Register(const std::string& path, | 69 void Register(const std::string& path, |
73 RestApiDeleteCall::Handler handler); | 70 RestApiDeleteCall::Handler handler); |
71 | |
72 void GenerateOpenApiDocumentation(Json::Value& target); | |
74 }; | 73 }; |
75 } | 74 } |