Mercurial > hg > orthanc
comparison 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 |
comparison
equal
deleted
inserted
replaced
4402:b651989194d3 | 4403:ad646ff506d0 |
---|---|
1764 ServerContext context(inMemoryDatabase, inMemoryStorage, true /* unit testing */, 0 /* max completed jobs */); | 1764 ServerContext context(inMemoryDatabase, inMemoryStorage, true /* unit testing */, 0 /* max completed jobs */); |
1765 OrthancRestApi restApi(context, false /* no Orthanc Explorer */); | 1765 OrthancRestApi restApi(context, false /* no Orthanc Explorer */); |
1766 restApi.GenerateOpenApiDocumentation(openapi); | 1766 restApi.GenerateOpenApiDocumentation(openapi); |
1767 context.Stop(); | 1767 context.Stop(); |
1768 } | 1768 } |
1769 | |
1770 openapi["info"]["version"] = ORTHANC_VERSION; | |
1771 openapi["info"]["title"] = "Orthanc API"; | |
1772 | |
1773 Json::Value server = Json::objectValue; | |
1774 server["url"] = "https://demo.orthanc-server.com/"; | |
1775 openapi["servers"].append(server); | |
1769 | 1776 |
1770 std::string s; | 1777 std::string s; |
1771 Toolbox::WriteStyledJson(s, openapi); | 1778 Toolbox::WriteStyledJson(s, openapi); |
1772 | 1779 |
1773 if (target == "-") | 1780 if (target == "-") |