comparison Sphinx/source/users/rest.rst @ 313:8e97e0524e16

cont
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 06 Feb 2020 09:47:29 +0100
parents b19b892977a2
children 5f0cd51d97c0
comparison
equal deleted inserted replaced
312:b19b892977a2 313:8e97e0524e16
774 $ curl --request POST --url http://localhost:8042/tools/find --data '{"Level":"Instance","Query":{"Modality":"CR","StudyDate":"20180323-","PatientID":"*"}}' 774 $ curl --request POST --url http://localhost:8042/tools/find --data '{"Level":"Instance","Query":{"Modality":"CR","StudyDate":"20180323-","PatientID":"*"}}'
775 775
776 Setting the ``Expand`` field to ``true`` in the POST body of the 776 Setting the ``Expand`` field to ``true`` in the POST body of the
777 query will automatically report details about each study:: 777 query will automatically report details about each study::
778 778
779 $ curl https://demo.orthanc-server.com/tools/find -d '{"Level":"Study","Query":{"PatientName":"KNIX"}}'
780 [
781 "b9c08539-26f93bde-c81ab0d7-bffaf2cb-a4d0bdd0"
782 ]
779 $ curl https://demo.orthanc-server.com/tools/find -d '{"Level":"Study","Query":{"PatientName":"KNIX"},"Expand":true}' 783 $ curl https://demo.orthanc-server.com/tools/find -d '{"Level":"Study","Query":{"PatientName":"KNIX"},"Expand":true}'
780 [ 784 [
781 { 785 {
782 "ID" : "b9c08539-26f93bde-c81ab0d7-bffaf2cb-a4d0bdd0", 786 "ID" : "b9c08539-26f93bde-c81ab0d7-bffaf2cb-a4d0bdd0",
783 "IsStable" : true, 787 "IsStable" : true,