Mercurial > hg > orthanc
changeset 6342:b5a71c33e462
changed worklists url
| author | Alain Mazy <am@orthanc.team> |
|---|---|
| date | Tue, 21 Oct 2025 12:06:40 +0200 |
| parents | ba833555bd70 |
| children | d4e2fed7bfff |
| files | NEWS OrthancServer/Plugins/Samples/ModalityWorklists/Plugin.cpp |
| diffstat | 2 files changed, 7 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- 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)
--- 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 {
