Mercurial > hg > orthanc-book
comparison Sphinx/source/users/rest.rst @ 407:3aa7d50a4ccd
fix merge
author | Alain Mazy <alain@mazy.be> |
---|---|
date | Wed, 29 Apr 2020 13:05:03 +0200 |
parents | 5119ccd08aec |
children | b4cc2b6a9f13 |
comparison
equal
deleted
inserted
replaced
406:5119ccd08aec | 407:3aa7d50a4ccd |
---|---|
582 the remote modality, as specified above in the configuration file. | 582 the remote modality, as specified above in the configuration file. |
583 | 583 |
584 Note that you can send isolated DICOM instances with this command, but | 584 Note that you can send isolated DICOM instances with this command, but |
585 also entire patients, studies or series. | 585 also entire patients, studies or series. |
586 | 586 |
587 Various optional fields are also available:: | 587 Various optional fields are also available. i.e, if you need to |
588 monitor the state of a transfer, you can start the transfer in :ref:`asynchronous mode | |
589 <jobs>`, which will provide you with the identifier of the Orthanc job:: | |
588 | 590 |
589 $ curl -X POST http://localhost:8042/modalities/sample/store \ | 591 $ curl -X POST http://localhost:8042/modalities/sample/store \ |
590 --data '{ | 592 --data '{ |
591 "Resources" : ["d4b46c8e-74b16992-b0f5ca11-f04a60fa-8eb13a88"], | 593 "Resources" : ["d4b46c8e-74b16992-b0f5ca11-f04a60fa-8eb13a88"], |
592 "Synchronous" : false, | 594 "Synchronous" : false, |
595 "MoveOriginatorID": 1234, | 597 "MoveOriginatorID": 1234, |
596 "Timeout": 10, | 598 "Timeout": 10, |
597 "StorageCommitment": false | 599 "StorageCommitment": false |
598 }' | 600 }' |
599 | 601 |
600 For more advanced uses (for instance if you need to monitor the state | |
601 of a transfer), you can start the transfer in :ref:`asynchronous mode | |
602 <jobs>`, which will provide you with the identifier of the Orthanc job. | |
603 | 602 |
604 Bulk Store SCU | 603 Bulk Store SCU |
605 ^^^^^^^^^^^^^^ | 604 ^^^^^^^^^^^^^^ |
606 | 605 |
607 .. highlight:: bash | 606 .. highlight:: bash |