Mercurial > hg > orthanc
diff 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 |
line wrap: on
line diff
--- a/OrthancFramework/Sources/RestApi/RestApi.h Tue Dec 22 09:39:06 2020 +0100 +++ b/OrthancFramework/Sources/RestApi/RestApi.h Wed Dec 23 12:21:03 2020 +0100 @@ -44,10 +44,7 @@ const char* username, HttpMethod method, const UriComponents& uri, - const HttpToolbox::Arguments& headers) ORTHANC_OVERRIDE - { - return false; - } + const HttpToolbox::Arguments& headers) ORTHANC_OVERRIDE; virtual bool Handle(HttpOutput& output, RequestOrigin origin, @@ -71,5 +68,7 @@ void Register(const std::string& path, RestApiDeleteCall::Handler handler); + + void GenerateOpenApiDocumentation(Json::Value& target); }; }