comparison Sphinx/source/users/advanced-rest.rst @ 516:416581db306e

sample: asynchronous download of media archive
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 01 Oct 2020 12:27:20 +0200
parents f22b3743fd3f
children 50bdd7c7e9b9
comparison
equal deleted inserted replaced
515:873179896dcc 516:416581db306e
194 ``archive`` output of the job (check out the virtual method 194 ``archive`` output of the job (check out the virtual method
195 ``IJob::GetOutput()`` from the `source code 195 ``IJob::GetOutput()`` from the `source code
196 <https://hg.orthanc-server.com/orthanc/file/Orthanc-1.7.4/OrthancServer/Sources/ServerJobs/ArchiveJob.cpp>`__ 196 <https://hg.orthanc-server.com/orthanc/file/Orthanc-1.7.4/OrthancServer/Sources/ServerJobs/ArchiveJob.cpp>`__
197 of Orthanc). 197 of Orthanc).
198 198
199 Here is the corresponding sequence of commands to generate a DICOMDIR
200 media::
201
202 $ curl http://localhost:8042/studies/27f7126f-4f66fb14-03f4081b-f9341db2-53925988/media -d '{"Asynchronous":true}'
203 $ curl http://localhost:8042/jobs/6332be8a-0052-44fb-8cc2-ac959aeccad9/archive > a.zip
204
199 As of Orthanc 1.7.4, only the creation of a ZIP or a DICOMDIR archive 205 As of Orthanc 1.7.4, only the creation of a ZIP or a DICOMDIR archive
200 produces such an "output". 206 produces such "outputs".
201 207
202 208
203 .. _pdf: 209 .. _pdf:
204 210
205 Attaching PDF file as DICOM series 211 Attaching PDF file as DICOM series