# HG changeset patch # User Sebastien Jodogne # Date 1609312826 -3600 # Node ID d6cb9e91a3d6dfcb72dc1bdb86ce834079747322 # Parent 83371ccdfe80a307476b2a552c6dbd2e0861f37f added openapi description diff -r 83371ccdfe80 -r d6cb9e91a3d6 OrthancServer/Sources/main.cpp --- a/OrthancServer/Sources/main.cpp Tue Dec 29 19:28:53 2020 +0100 +++ b/OrthancServer/Sources/main.cpp Wed Dec 30 08:20:26 2020 +0100 @@ -1771,6 +1771,13 @@ openapi["info"]["version"] = ORTHANC_VERSION; openapi["info"]["title"] = "Orthanc API"; + openapi["info"]["description"] = + "This is the full documentation of the [REST API](https://book.orthanc-server.com/users/rest.html) " + "of Orthanc.

This reference is automatically generated from the source code of Orthanc. A " + "[shorter cheat sheet](https://book.orthanc-server.com/users/rest-cheatsheet.html) is part of " + "the Orthanc Book.

An earlier, manually crafted version from August 2019, is [still available]" + "(2019-08-orthanc-openapi.html), but is not up-to-date anymore ([source]" + "(https://groups.google.com/g/orthanc-users/c/NUiJTEICSl8/m/xKeqMrbqAAAJ))."; Json::Value server = Json::objectValue; server["url"] = "https://demo.orthanc-server.com/";