Mercurial > hg > orthanc-book
changeset 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 | 6a3d48510b0b |
children | 8d6e94423004 |
files | Sphinx/source/users/rest.rst |
diffstat | 1 files changed, 5 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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 -----------------