comparison OrthancServer/Sources/main.cpp @ 4413:22a1352a0823

cont openapi
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 28 Dec 2020 13:08:00 +0100
parents 68b96234fbd6
children d6cb9e91a3d6
comparison
equal deleted inserted replaced
4412:68b96234fbd6 4413:22a1352a0823
1807 SQLiteDatabaseWrapper inMemoryDatabase; 1807 SQLiteDatabaseWrapper inMemoryDatabase;
1808 inMemoryDatabase.Open(); 1808 inMemoryDatabase.Open();
1809 MemoryStorageArea inMemoryStorage; 1809 MemoryStorageArea inMemoryStorage;
1810 ServerContext context(inMemoryDatabase, inMemoryStorage, true /* unit testing */, 0 /* max completed jobs */); 1810 ServerContext context(inMemoryDatabase, inMemoryStorage, true /* unit testing */, 0 /* max completed jobs */);
1811 OrthancRestApi restApi(context, false /* no Orthanc Explorer */); 1811 OrthancRestApi restApi(context, false /* no Orthanc Explorer */);
1812 //restApi.GenerateReStructuredTextCheatSheet(cheatsheet, "https://api.orthanc-server.com/index.html"); 1812 restApi.GenerateReStructuredTextCheatSheet(cheatsheet, "https://api.orthanc-server.com/index.html");
1813 restApi.GenerateReStructuredTextCheatSheet(cheatsheet, "http://localhost:8000/a.html");
1814 context.Stop(); 1813 context.Stop();
1815 } 1814 }
1816 1815
1817 if (target == "-") 1816 if (target == "-")
1818 { 1817 {