diff OrthancFramework/Sources/RestApi/RestApi.cpp @ 4403:ad646ff506d0

cont openapi
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 23 Dec 2020 18:32:13 +0100
parents 354ea95b294a
children 5466f336b09f
line wrap: on
line diff
--- a/OrthancFramework/Sources/RestApi/RestApi.cpp	Wed Dec 23 15:16:37 2020 +0100
+++ b/OrthancFramework/Sources/RestApi/RestApi.cpp	Wed Dec 23 18:32:13 2020 +0100
@@ -491,14 +491,9 @@
 
     target = Json::objectValue;
 
-    target["info"]["version"] = ORTHANC_VERSION;
-    target["info"]["title"] = "Orthanc";
-
+    target["info"] = Json::objectValue;
     target["openapi"] = "3.0.0";
-
-    target["servers"].append(Json::objectValue);
-    target["servers"][0]["url"] = "https://demo.orthanc-server.com/";
-
+    target["servers"] = Json::arrayValue;
     target["paths"] = visitor.GetPaths();
   }
 }