diff OrthancServer/Sources/main.cpp @ 4403:ad646ff506d0

cont openapi
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 23 Dec 2020 18:32:13 +0100
parents 80fd140b12ba
children 68b96234fbd6
line wrap: on
line diff
--- a/OrthancServer/Sources/main.cpp	Wed Dec 23 15:16:37 2020 +0100
+++ b/OrthancServer/Sources/main.cpp	Wed Dec 23 18:32:13 2020 +0100
@@ -1766,6 +1766,13 @@
           restApi.GenerateOpenApiDocumentation(openapi);
           context.Stop();
         }
+
+        openapi["info"]["version"] = ORTHANC_VERSION;
+        openapi["info"]["title"] = "Orthanc API";
+
+        Json::Value server = Json::objectValue;
+        server["url"] = "https://demo.orthanc-server.com/";
+        openapi["servers"].append(server);
         
         std::string s;
         Toolbox::WriteStyledJson(s, openapi);