comparison Sphinx/source/users/rest.rst @ 868:2cb6b69537c6

/instances
author Alain Mazy <am@osimis.io>
date Mon, 08 Aug 2022 08:53:38 +0200
parents 3e8a3a900e9e
children f72b2dd172da
comparison
equal deleted inserted replaced
867:888d6b29245a 868:2cb6b69537c6
71 71
72 The upload of DICOM files is possible by querying the REST API using 72 The upload of DICOM files is possible by querying the REST API using
73 the following syntax:: 73 the following syntax::
74 74
75 $ curl -X POST http://localhost:8042/instances --data-binary @CT.X.1.2.276.0.7230010.dcm 75 $ curl -X POST http://localhost:8042/instances --data-binary @CT.X.1.2.276.0.7230010.dcm
76 $ curl -X POST http://localhost:8042/instances --data-binary @multiple-files.zip
76 77
77 .. highlight:: json 78 .. highlight:: json
78 79
79 Orthanc will respond with a JSON file that contain information about 80 Orthanc will respond with a JSON file that contain information about
80 the location of the stored instance, such as:: 81 the location of the stored instance, such as::
81 82
82 { 83 {
83 "ID" : "e87da270-c52b-4f2a-b8c6-bae25928d0b0", 84 "ID" : "5d4a3991-8a265cb2-da669bea-d8c761af-4a77113a",
84 "Path" : "/instances/e87da270-c52b-4f2a-b8c6-bae25928d0b0", 85 "ParentPatient" : "69a957ab-57545037-ce9a492a-d0bd89c1-d7e2220d",
86 "ParentSeries" : "87c81b2c-e9f92adf-2dc11d37-399b5214-37275cdb",
87 "ParentStudy" : "1b1cc0c9-c0377071-78e8cd3a-2e382948-a243db42",
88 "Path" : "/instances/5d4a3991-8a265cb2-da669bea-d8c761af-4a77113a",
85 "Status" : "Success" 89 "Status" : "Success"
86 } 90 }
87 91
88 .. highlight:: bash 92 .. highlight:: bash
89 93