comparison Sphinx/source/users/rest.rst @ 557:3af5dda67520

fix sample for c-echo in rest api
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 10 Dec 2020 18:10:32 +0100
parents 7daa331a91a9
children 7d27154e70f9
comparison
equal deleted inserted replaced
556:6a3d48510b0b 557:3af5dda67520
640 ----------------- 640 -----------------
641 641
642 To validate the DICOM connectivity between Orthanc and a remote modality, 642 To validate the DICOM connectivity between Orthanc and a remote modality,
643 you can perform a C-ECHO:: 643 you can perform a C-ECHO::
644 644
645 $ curl -X POST http://localhost:8042/modalities/sample/echo -d '' 645 $ curl -X POST http://localhost:8042/modalities/sample/echo -d '{}'
646 646
647 From Orthanc 1.7.0, you can include an extra ``Timeout`` field. 647 From Orthanc 1.7.0, you can include an extra ``Timeout`` field::
648 648
649 $ curl -X POST http://localhost:8042/modalities/sample/echo -d '{ "Timeout": 10 }' 649 $ curl -X POST http://localhost:8042/modalities/sample/echo -d '{ "Timeout": 10 }'
650 650
651 If no ``Timeout`` parameter is specified, the value of the ``DicomScuTimeout`` 651 If no ``Timeout`` parameter is specified, the value of the ``DicomScuTimeout``
652 configuration is used as a default. If ``Timeout`` is set to zero, this means 652 configuration is used as a default. If ``Timeout`` is set to zero, this means
653 no timeout. 653 no timeout.
654
655 NB: A body containing a valid JSON object is needed by
656 ``/modalities/{id}/echo`` since Orthanc 1.7.0.
654 657
655 658
656 Performing C-Move 659 Performing C-Move
657 ----------------- 660 -----------------
658 661