comparison Sphinx/source/users/rest.rst @ 207:66295dffbf33

fix
author Sebastien Jodogne <s.jodogne@gmail.com>
date Sat, 16 Feb 2019 11:00:19 +0100
parents 7213bef30604
children 7ff807cc5ade
comparison
equal deleted inserted replaced
206:f6c812c4026f 207:66295dffbf33
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 (named in this 588 query using a post command and identifying the Modality (named in this
589 example `"Orthanc"`), to be one to 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 If C-Moves take too long (for example, performing a C-Move of a big study) 598 If C-Moves take too long (for example, performing a C-Move of a big
599 you may run the request in asynchronous fashion: 599 study), you may run the request in asynchronous fashion, which will
600 600 create a job in Orthanc::
601 $ curl --request POST --url http://localhost:8042/queries/5af318ac-78fb-47ff-b0b0-0df18b0588e0/retrieve --data '{"TargetAet":"Orthanc","Synchronous":false}' 601
602 602 $ curl --request POST --url http://localhost:8042/queries/5af318ac-78fb-47ff-b0b0-0df18b0588e0/retrieve \
603 The answer of this POST request is the job ID taking care of the C-Move 603 --data '{"TargetAet":"Orthanc","Synchronous":false}'
604
605
606 .. highlight:: bash
607
608 The answer of this POST request is the job ID taking care of the C-Move::
604 609
605 { 610 {
606 "ID" : "11541b16-e368-41cf-a8e9-3acf4061d238", 611 "ID" : "11541b16-e368-41cf-a8e9-3acf4061d238",
607 "Path" : "/jobs/11541b16-e368-41cf-a8e9-3acf4061d238" 612 "Path" : "/jobs/11541b16-e368-41cf-a8e9-3acf4061d238"
608 } 613 }