# HG changeset patch # User Sébastien Jodogne # Date 1550310980 0 # Node ID f6c812c4026f10a7d62fec1fdd2802aadf3c490a # Parent 76c76af97a2a2aa4b5d7c1c26a3f98fc0b553048# Parent 7213bef30604f030cde898c016246ce2c6a003ae Merged in dfslezak/orthanc-book/dfslezak/restrst-edited-online-with-bitbucket-add-1550282269472 (pull request #7) rest.rst edited online with Bitbucket. diff -r 76c76af97a2a -r f6c812c4026f Sphinx/source/users/rest.rst --- 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