comparison OrthancServer/Sources/main.cpp @ 4425:d6cb9e91a3d6

added openapi description
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 30 Dec 2020 08:20:26 +0100
parents 22a1352a0823
children d9473bd5ed43
comparison
equal deleted inserted replaced
4424:83371ccdfe80 4425:d6cb9e91a3d6
1769 context.Stop(); 1769 context.Stop();
1770 } 1770 }
1771 1771
1772 openapi["info"]["version"] = ORTHANC_VERSION; 1772 openapi["info"]["version"] = ORTHANC_VERSION;
1773 openapi["info"]["title"] = "Orthanc API"; 1773 openapi["info"]["title"] = "Orthanc API";
1774 openapi["info"]["description"] =
1775 "This is the full documentation of the [REST API](https://book.orthanc-server.com/users/rest.html) "
1776 "of Orthanc.<p>This reference is automatically generated from the source code of Orthanc. A "
1777 "[shorter cheat sheet](https://book.orthanc-server.com/users/rest-cheatsheet.html) is part of "
1778 "the Orthanc Book.<p>An earlier, manually crafted version from August 2019, is [still available]"
1779 "(2019-08-orthanc-openapi.html), but is not up-to-date anymore ([source]"
1780 "(https://groups.google.com/g/orthanc-users/c/NUiJTEICSl8/m/xKeqMrbqAAAJ)).";
1774 1781
1775 Json::Value server = Json::objectValue; 1782 Json::Value server = Json::objectValue;
1776 server["url"] = "https://demo.orthanc-server.com/"; 1783 server["url"] = "https://demo.orthanc-server.com/";
1777 openapi["servers"].append(server); 1784 openapi["servers"].append(server);
1778 1785