comparison Sphinx/source/users/rest.rst @ 205:7213bef30604 dfslezak/restrst-edited-online-with-bitbucket-add-1550282269472

rest.rst edited online with Bitbucket. Added asynchronous option in Retrieve section.
author Diego Fernández Slezak <dfslezak@gmail.com>
date Sat, 16 Feb 2019 01:57:52 +0000
parents 901bc7b2dbab
children 66295dffbf33
comparison
equal deleted inserted replaced
204:76c76af97a2a 205:7213bef30604
583 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 583 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
584 584
585 .. highlight:: bash 585 .. highlight:: bash
586 586
587 You can perform a C-Move to retrieve all studies within the original 587 You can perform a C-Move to retrieve all studies within the original
588 query using a post command and identifying the Modality to be one to 588 query using a post command and identifying the Modality (named in this
589 in the POST contents:: 589 example `"Orthanc"`), to be one to in the POST contents::
590 590
591 $ curl --request POST --url http://localhost:8042/queries/5af318ac-78fb-47ff-b0b0-0df18b0588e0/retrieve --data Orthanc 591 $ curl --request POST --url http://localhost:8042/queries/5af318ac-78fb-47ff-b0b0-0df18b0588e0/retrieve --data Orthanc
592 592
593 You are also able to perform individual C-Moves for a content item by 593 You are also able to perform individual C-Moves for a content item by
594 specifying that individual content item:: 594 specifying that individual content item::
595 595
596 $ curl --request POST --url http://localhost:8042/queries/5af318ac-78fb-47ff-b0b0-0df18b0588e0/answers/0/retrieve --data Orthanc 596 $ curl --request POST --url http://localhost:8042/queries/5af318ac-78fb-47ff-b0b0-0df18b0588e0/answers/0/retrieve --data Orthanc
597 597
598 598 If C-Moves take too long (for example, performing a C-Move of a big study)
599 you may run the request in asynchronous fashion:
600
601 $ curl --request POST --url http://localhost:8042/queries/5af318ac-78fb-47ff-b0b0-0df18b0588e0/retrieve --data '{"TargetAet":"Orthanc","Synchronous":false}'
602
603 The answer of this POST request is the job ID taking care of the C-Move
604
605 {
606 "ID" : "11541b16-e368-41cf-a8e9-3acf4061d238",
607 "Path" : "/jobs/11541b16-e368-41cf-a8e9-3acf4061d238"
608 }
609
610
599 Performing Finds within Orthanc 611 Performing Finds within Orthanc
600 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 612 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
601 .. highlight:: bash 613 .. highlight:: bash
602 614
603 Performing a find within Orthanc is very similar to using Queries 615 Performing a find within Orthanc is very similar to using Queries