# HG changeset patch # User Alain Mazy # Date 1761041200 -7200 # Node ID b5a71c33e4624ae0a68f4a70fa2dffd7d65b9d1d # Parent ba833555bd70bba858652c7574624fa6b5af14fb changed worklists url diff -r ba833555bd70 -r b5a71c33e462 NEWS --- a/NEWS Mon Oct 20 16:45:39 2025 +0200 +++ b/NEWS Tue Oct 21 12:06:40 2025 +0200 @@ -50,9 +50,9 @@ * Worklists plugin: - The Worklists plugin now provides a Rest API to: - - create worklists through POST at /plugins/worklists/create - - list the worklists throuhg GET at /plugins/worklists and /plugins/worklists/{uuid} - - delete the worklists through DELETE at /plugins/worklists/{uuid} + - create worklists through POST at /worklists/create + - list the worklists throuhg GET at /worklists and /worklists/{uuid} + - delete the worklists through DELETE at /worklists/{uuid} All details are available in the Orthanc book: https://orthanc.uclouvain.be/book/plugins/worklists-plugin.html - New configurations: - "SaveInOrthancDatabase" to store the worklists in the Orthanc DB (provided that you are using SQLite or PostgreSQL) diff -r ba833555bd70 -r b5a71c33e462 OrthancServer/Plugins/Samples/ModalityWorklists/Plugin.cpp --- a/OrthancServer/Plugins/Samples/ModalityWorklists/Plugin.cpp Mon Oct 20 16:45:39 2025 +0200 +++ b/OrthancServer/Plugins/Samples/ModalityWorklists/Plugin.cpp Tue Oct 21 12:06:40 2025 +0200 @@ -612,7 +612,7 @@ Json::Value response; response["ID"] = worklistId; - response["Path"] = "/plugins/worklists/" + worklistId; + response["Path"] = "/worklists/" + worklistId; OrthancPlugins::AnswerJson(response, output); } @@ -762,9 +762,9 @@ OrthancPluginRegisterOnChangeCallback(OrthancPlugins::GetGlobalContext(), OnChangeCallback); - OrthancPluginRegisterRestCallback(OrthancPlugins::GetGlobalContext(), "/plugins/worklists/create", PostCreateWorklist); - OrthancPluginRegisterRestCallback(OrthancPlugins::GetGlobalContext(), "/plugins/worklists/([^/]+)", GetDeleteWorklist); - OrthancPluginRegisterRestCallback(OrthancPlugins::GetGlobalContext(), "/plugins/worklists", ListWorklists); + OrthancPluginRegisterRestCallback(OrthancPlugins::GetGlobalContext(), "/worklists/create", PostCreateWorklist); + OrthancPluginRegisterRestCallback(OrthancPlugins::GetGlobalContext(), "/worklists/([^/]+)", GetDeleteWorklist); + OrthancPluginRegisterRestCallback(OrthancPlugins::GetGlobalContext(), "/worklists", ListWorklists); } else {