Mercurial > hg > orthanc-book
comparison Sphinx/source/users/rest.rst @ 1000:2e103fb1fa11
Orthanc 1.12.2
author | Alain Mazy <am@osimis.io> |
---|---|
date | Tue, 19 Dec 2023 17:54:15 +0100 |
parents | 1316bc62b5d5 |
children | a3436ae3709c |
comparison
equal
deleted
inserted
replaced
998:bd7fbe3042f7 | 1000:2e103fb1fa11 |
---|---|
96 <https://stackoverflow.com/questions/463144/php-http-post-fails-when-curl-data-1024/463277#463277>`__:: | 96 <https://stackoverflow.com/questions/463144/php-http-post-fails-when-curl-data-1024/463277#463277>`__:: |
97 | 97 |
98 $ curl -X POST -H "Expect:" http://localhost:8042/instances --data-binary @CT.X.1.2.276.0.7230010.dcm | 98 $ curl -X POST -H "Expect:" http://localhost:8042/instances --data-binary @CT.X.1.2.276.0.7230010.dcm |
99 | 99 |
100 The code distribution of Orthanc contains a `sample Python script | 100 The code distribution of Orthanc contains a `sample Python script |
101 <https://orthanc.uclouvain.be/hg/orthanc/file/Orthanc-1.12.1/OrthancServer/Resources/Samples/ImportDicomFiles/ImportDicomFiles.py>`__ | 101 <https://orthanc.uclouvain.be/hg/orthanc/file/Orthanc-1.12.2/OrthancServer/Resources/Samples/ImportDicomFiles/ImportDicomFiles.py>`__ |
102 that recursively upload the content of some folder into Orthanc using | 102 that recursively upload the content of some folder into Orthanc using |
103 the REST API:: | 103 the REST API:: |
104 | 104 |
105 $ python ImportDicomFiles.py localhost 8042 ~/DICOM/ | 105 $ python ImportDicomFiles.py localhost 8042 ~/DICOM/ |
106 | 106 |
108 includes another Python script named ``OrthancImport.py`` that | 108 includes another Python script named ``OrthancImport.py`` that |
109 provides more features than ``ImportDicomFiles.py``. It can notably | 109 provides more features than ``ImportDicomFiles.py``. It can notably |
110 import the content of ``.zip``, ``.tar.gz`` or ``.tar.bz2`` archives | 110 import the content of ``.zip``, ``.tar.gz`` or ``.tar.bz2`` archives |
111 without having to uncompress them first. It also provides more | 111 without having to uncompress them first. It also provides more |
112 comprehensive command-line options. `Check this script out | 112 comprehensive command-line options. `Check this script out |
113 <https://orthanc.uclouvain.be/hg/orthanc/file/Orthanc-1.12.1/OrthancServer/Resources/Samples/ImportDicomFiles/OrthancImport.py>`__. | 113 <https://orthanc.uclouvain.be/hg/orthanc/file/Orthanc-1.12.2/OrthancServer/Resources/Samples/ImportDicomFiles/OrthancImport.py>`__. |
114 | 114 |
115 | 115 |
116 .. highlight:: perl | 116 .. highlight:: perl |
117 | 117 |
118 If you are using Powershell (>= 3.0), you can use the following to send a single | 118 If you are using Powershell (>= 3.0), you can use the following to send a single |