# HG changeset patch # User Alain Mazy # Date 1586341246 -7200 # Node ID 06ab5ab05a2d5c6bb0b481a2f1de09d92818a869 # Parent c9fe3d0d0fa1e0fef6d12ff49beb4c8616329dbb API doc: download study diff -r c9fe3d0d0fa1 -r 06ab5ab05a2d Sphinx/source/users/rest.rst --- a/Sphinx/source/users/rest.rst Wed Apr 08 08:49:59 2020 +0200 +++ b/Sphinx/source/users/rest.rst Wed Apr 08 12:20:46 2020 +0200 @@ -383,6 +383,19 @@ Users of Matlab or Octave can find related information :ref:`in the dedicated section `. +Downloading studies +^^^^^^^^^^^^^^^^^^ + +.. highlight:: bash + +All instances of a study can be retrieved as a zip file as follows:: + + $ curl http://localhost:8042/studies/6b9e19d9-62094390-5f9ddb01-4a191ae7-9766b715/archive > Study.zip + +It is also possible to download a zipped DICOMDIR through:: + + $ curl http://localhost:8042/instances/6b9e19d9-62094390-5f9ddb01-4a191ae7-9766b715/media > Study.zip + .. _peering: