Mercurial > hg > orthanc-book
changeset 206:f6c812c4026f
Merged in dfslezak/orthanc-book/dfslezak/restrst-edited-online-with-bitbucket-add-1550282269472 (pull request #7)
rest.rst edited online with Bitbucket.
author | Sébastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Sat, 16 Feb 2019 09:56:20 +0000 |
parents | 76c76af97a2a (current diff) 7213bef30604 (diff) |
children | 66295dffbf33 |
files | |
diffstat | 1 files changed, 15 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/Sphinx/source/users/rest.rst Tue Feb 12 16:53:20 2019 +0100 +++ b/Sphinx/source/users/rest.rst Sat Feb 16 09:56:20 2019 +0000 @@ -585,8 +585,8 @@ .. highlight:: bash You can perform a C-Move to retrieve all studies within the original -query using a post command and identifying the Modality to be one to -in the POST contents:: +query using a post command and identifying the Modality (named in this +example `"Orthanc"`), to be one to in the POST contents:: $ curl --request POST --url http://localhost:8042/queries/5af318ac-78fb-47ff-b0b0-0df18b0588e0/retrieve --data Orthanc @@ -595,7 +595,19 @@ $ curl --request POST --url http://localhost:8042/queries/5af318ac-78fb-47ff-b0b0-0df18b0588e0/answers/0/retrieve --data Orthanc - +If C-Moves take too long (for example, performing a C-Move of a big study) +you may run the request in asynchronous fashion: + + $ curl --request POST --url http://localhost:8042/queries/5af318ac-78fb-47ff-b0b0-0df18b0588e0/retrieve --data '{"TargetAet":"Orthanc","Synchronous":false}' + +The answer of this POST request is the job ID taking care of the C-Move + + { + "ID" : "11541b16-e368-41cf-a8e9-3acf4061d238", + "Path" : "/jobs/11541b16-e368-41cf-a8e9-3acf4061d238" + } + + Performing Finds within Orthanc ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ .. highlight:: bash