comparison Sphinx/source/users/rest.rst @ 379:c9fe3d0d0fa1

merge
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 08 Apr 2020 08:49:59 +0200
parents 16dc3561b41e 6d7a36447e21
children 06ab5ab05a2d
comparison
equal deleted inserted replaced
378:16dc3561b41e 379:c9fe3d0d0fa1
67 .. highlight:: perl 67 .. highlight:: perl
68 68
69 If you are using Powershell (>= 3.0), you can use the following to send a single 69 If you are using Powershell (>= 3.0), you can use the following to send a single
70 Dicom instance to Orthanc:: 70 Dicom instance to Orthanc::
71 71
72 # disabling progress bar tremendously increases the Invoke-RestMethod call 72 # disabling the progress bar makes the Invoke-RestMethod call MUCH faster
73 $ProgressPreference = 'SilentlyContinue' 73 $ProgressPreference = 'SilentlyContinue'
74 74
75 # upload it to Orthanc 75 # upload it to Orthanc
76 $reply = Invoke-RestMethod http://localhost:8042/instances -Method POST -InFile CT.X.1.2.276.0.7230010.dcm 76 $reply = Invoke-RestMethod http://localhost:8042/instances -Method POST -InFile CT.X.1.2.276.0.7230010.dcm
77 77