Mercurial > hg > orthanc
comparison 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 |
comparison
equal
deleted
inserted
replaced
4402:b651989194d3 | 4403:ad646ff506d0 |
---|---|
489 std::set<std::string> uriArguments; | 489 std::set<std::string> uriArguments; |
490 root_.ExploreAllResources(visitor, root, uriArguments); | 490 root_.ExploreAllResources(visitor, root, uriArguments); |
491 | 491 |
492 target = Json::objectValue; | 492 target = Json::objectValue; |
493 | 493 |
494 target["info"]["version"] = ORTHANC_VERSION; | 494 target["info"] = Json::objectValue; |
495 target["info"]["title"] = "Orthanc"; | |
496 | |
497 target["openapi"] = "3.0.0"; | 495 target["openapi"] = "3.0.0"; |
498 | 496 target["servers"] = Json::arrayValue; |
499 target["servers"].append(Json::objectValue); | |
500 target["servers"][0]["url"] = "https://demo.orthanc-server.com/"; | |
501 | |
502 target["paths"] = visitor.GetPaths(); | 497 target["paths"] = visitor.GetPaths(); |
503 } | 498 } |
504 } | 499 } |