changeset 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 873179896dcc
children cb07ce40040f
files Sphinx/source/users/advanced-rest.rst
diffstat 1 files changed, 7 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/Sphinx/source/users/advanced-rest.rst	Thu Oct 01 12:04:00 2020 +0200
+++ b/Sphinx/source/users/advanced-rest.rst	Thu Oct 01 12:27:20 2020 +0200
@@ -196,8 +196,14 @@
 <https://hg.orthanc-server.com/orthanc/file/Orthanc-1.7.4/OrthancServer/Sources/ServerJobs/ArchiveJob.cpp>`__
 of Orthanc).
 
+Here is the corresponding sequence of commands to generate a DICOMDIR
+media::
+
+  $ curl http://localhost:8042/studies/27f7126f-4f66fb14-03f4081b-f9341db2-53925988/media -d '{"Asynchronous":true}'
+  $ curl http://localhost:8042/jobs/6332be8a-0052-44fb-8cc2-ac959aeccad9/archive > a.zip
+
 As of Orthanc 1.7.4, only the creation of a ZIP or a DICOMDIR archive
-produces such an "output".
+produces such "outputs".
 
   
 .. _pdf: