comparison OrthancFramework/UnitTestsSources/RestApiTests.cpp @ 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 f7104e9d044c
children d9473bd5ed43
comparison
equal deleted inserted replaced
4398:38c22715bb56 4399:80fd140b12ba
310 class MyVisitor : public RestApiHierarchy::IVisitor 310 class MyVisitor : public RestApiHierarchy::IVisitor
311 { 311 {
312 public: 312 public:
313 virtual bool Visit(const RestApiHierarchy::Resource& resource, 313 virtual bool Visit(const RestApiHierarchy::Resource& resource,
314 const UriComponents& uri, 314 const UriComponents& uri,
315 bool hasTrailing,
315 const HttpToolbox::Arguments& components, 316 const HttpToolbox::Arguments& components,
316 const UriComponents& trailing) ORTHANC_OVERRIDE 317 const UriComponents& trailing) ORTHANC_OVERRIDE
317 { 318 {
318 return resource.Handle(*(RestApiGetCall*) NULL); 319 return resource.Handle(*(RestApiGetCall*) NULL);
319 } 320 }