Mercurial > hg > orthanc
comparison OrthancServer/Sources/main.cpp @ 5432:59e3b6f8c5be
migration to UCLouvain servers
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 21 Nov 2023 18:16:31 +0100 |
parents | ca9cf4d46883 |
children | 38403e13c1ca |
comparison
equal
deleted
inserted
replaced
5431:4be5f117aa0d | 5432:59e3b6f8c5be |
---|---|
680 << std::endl | 680 << std::endl |
681 << "The \"CONFIGURATION\" argument can be a single file or a directory. In the " << std::endl | 681 << "The \"CONFIGURATION\" argument can be a single file or a directory. In the " << std::endl |
682 << "case of a directory, all the JSON files it contains will be merged. " << std::endl | 682 << "case of a directory, all the JSON files it contains will be merged. " << std::endl |
683 << "If no configuration path is given on the command line, a set of default " << std::endl | 683 << "If no configuration path is given on the command line, a set of default " << std::endl |
684 << "parameters is used. Please refer to the Orthanc Book for the full " << std::endl | 684 << "parameters is used. Please refer to the Orthanc Book for the full " << std::endl |
685 << "instructions about how to use Orthanc <http://book.orthanc-server.com/>." << std::endl | 685 << "instructions about how to use Orthanc <https://orthanc.uclouvain.be/book/>." << std::endl |
686 << std::endl | 686 << std::endl |
687 << "Pay attention to the fact that the order of the options is important." << std::endl | 687 << "Pay attention to the fact that the order of the options is important." << std::endl |
688 << "Options are read left to right. In particular, options such as \"--verbose\" can " << std::endl | 688 << "Options are read left to right. In particular, options such as \"--verbose\" can " << std::endl |
689 << "reset the value of other log-related options that were read before." << std::endl | 689 << "reset the value of other log-related options that were read before." << std::endl |
690 << std::endl | 690 << std::endl |
1429 database.Upgrade(ORTHANC_DATABASE_VERSION, storageArea); | 1429 database.Upgrade(ORTHANC_DATABASE_VERSION, storageArea); |
1430 } | 1430 } |
1431 catch (OrthancException&) | 1431 catch (OrthancException&) |
1432 { | 1432 { |
1433 LOG(ERROR) << "Unable to run the automated upgrade, please use the replication instructions: " | 1433 LOG(ERROR) << "Unable to run the automated upgrade, please use the replication instructions: " |
1434 << "http://book.orthanc-server.com/users/replication.html"; | 1434 << "https://orthanc.uclouvain.be/book/users/replication.html"; |
1435 throw; | 1435 throw; |
1436 } | 1436 } |
1437 | 1437 |
1438 // Sanity check | 1438 // Sanity check |
1439 currentVersion = database.GetDatabaseVersion(); | 1439 currentVersion = database.GetDatabaseVersion(); |
1939 } | 1939 } |
1940 | 1940 |
1941 openapi["info"]["version"] = ORTHANC_VERSION; | 1941 openapi["info"]["version"] = ORTHANC_VERSION; |
1942 openapi["info"]["title"] = "Orthanc API"; | 1942 openapi["info"]["title"] = "Orthanc API"; |
1943 openapi["info"]["description"] = | 1943 openapi["info"]["description"] = |
1944 "This is the full documentation of the [REST API](https://book.orthanc-server.com/users/rest.html) " | 1944 "This is the full documentation of the [REST API](https://orthanc.uclouvain.be/book/users/rest.html) " |
1945 "of Orthanc.<p>This reference is automatically generated from the source code of Orthanc. A " | 1945 "of Orthanc.<p>This reference is automatically generated from the source code of Orthanc. A " |
1946 "[shorter cheat sheet](https://book.orthanc-server.com/users/rest-cheatsheet.html) is part of " | 1946 "[shorter cheat sheet](https://orthanc.uclouvain.be/book/users/rest-cheatsheet.html) is part of " |
1947 "the Orthanc Book.<p>An earlier, manually crafted version from August 2019, is [still available]" | 1947 "the Orthanc Book.<p>An earlier, manually crafted version from August 2019, is [still available]" |
1948 "(2019-08-orthanc-openapi.html), but is not up-to-date anymore ([source]" | 1948 "(2019-08-orthanc-openapi.html), but is not up-to-date anymore ([source]" |
1949 "(https://groups.google.com/g/orthanc-users/c/NUiJTEICSl8/m/xKeqMrbqAAAJ))."; | 1949 "(https://groups.google.com/g/orthanc-users/c/NUiJTEICSl8/m/xKeqMrbqAAAJ))."; |
1950 | 1950 |
1951 Json::Value server = Json::objectValue; | 1951 Json::Value server = Json::objectValue; |
1952 server["url"] = "https://demo.orthanc-server.com/"; | 1952 server["url"] = "https://orthanc.uclouvain.be/demo/"; |
1953 openapi["servers"].append(server); | 1953 openapi["servers"].append(server); |
1954 | 1954 |
1955 std::string s; | 1955 std::string s; |
1956 Toolbox::WriteStyledJson(s, openapi); | 1956 Toolbox::WriteStyledJson(s, openapi); |
1957 | 1957 |