# HG changeset patch # User Sebastien Jodogne # Date 1607620232 -3600 # Node ID 3af5dda675201b9854cbf8190fccb98ae3df1e62 # Parent 6a3d48510b0b61fc36e179dcc1c57d77152c94b9 fix sample for c-echo in rest api diff -r 6a3d48510b0b -r 3af5dda67520 Sphinx/source/users/rest.rst --- a/Sphinx/source/users/rest.rst Thu Dec 10 12:45:13 2020 +0100 +++ b/Sphinx/source/users/rest.rst Thu Dec 10 18:10:32 2020 +0100 @@ -642,9 +642,9 @@ To validate the DICOM connectivity between Orthanc and a remote modality, you can perform a C-ECHO:: - $ curl -X POST http://localhost:8042/modalities/sample/echo -d '' + $ curl -X POST http://localhost:8042/modalities/sample/echo -d '{}' -From Orthanc 1.7.0, you can include an extra ``Timeout`` field. +From Orthanc 1.7.0, you can include an extra ``Timeout`` field:: $ curl -X POST http://localhost:8042/modalities/sample/echo -d '{ "Timeout": 10 }' @@ -652,6 +652,9 @@ configuration is used as a default. If ``Timeout`` is set to zero, this means no timeout. +NB: A body containing a valid JSON object is needed by +``/modalities/{id}/echo`` since Orthanc 1.7.0. + Performing C-Move -----------------