Mercurial > hg > orthanc
comparison OrthancServer/Sources/OrthancRestApi/OrthancRestModalities.cpp @ 5011:c014ab79fca5
fixed /move documentation + improved error reporting
author | Alain Mazy <am@osimis.io> |
---|---|
date | Tue, 31 May 2022 09:36:00 +0200 |
parents | 6eff25f70121 |
children | afa427f65444 |
comparison
equal
deleted
inserted
replaced
5010:88d838c6b4c7 | 5011:c014ab79fca5 |
---|---|
1521 .SetTag("Networking") | 1521 .SetTag("Networking") |
1522 .SetSummary("Trigger C-MOVE SCU") | 1522 .SetSummary("Trigger C-MOVE SCU") |
1523 .SetDescription("Start a C-MOVE SCU command as a job, in order to drive the execution of a sequence of " | 1523 .SetDescription("Start a C-MOVE SCU command as a job, in order to drive the execution of a sequence of " |
1524 "C-STORE commands by some remote DICOM modality whose identifier is provided in the URL: " | 1524 "C-STORE commands by some remote DICOM modality whose identifier is provided in the URL: " |
1525 "https://book.orthanc-server.com/users/rest.html#performing-c-move") | 1525 "https://book.orthanc-server.com/users/rest.html#performing-c-move") |
1526 .SetRequestField(KEY_RESOURCES, RestApiCallDocumentation::Type_JsonListOfStrings, | 1526 .SetRequestField(KEY_RESOURCES, RestApiCallDocumentation::Type_JsonListOfObjects, |
1527 "List of the Orthanc identifiers of all the DICOM resources to be sent", true) | 1527 "List of queries identifying all the DICOM resources to be sent", true) |
1528 .SetRequestField(KEY_LEVEL, RestApiCallDocumentation::Type_String, | 1528 .SetRequestField(KEY_LEVEL, RestApiCallDocumentation::Type_String, |
1529 "Level of the query (`Patient`, `Study`, `Series` or `Instance`)", true) | 1529 "Level of the query (`Patient`, `Study`, `Series` or `Instance`)", true) |
1530 .SetRequestField(KEY_LOCAL_AET, RestApiCallDocumentation::Type_String, | 1530 .SetRequestField(KEY_LOCAL_AET, RestApiCallDocumentation::Type_String, |
1531 "Local AET that is used for this commands, defaults to `DicomAet` configuration option. " | 1531 "Local AET that is used for this commands, defaults to `DicomAet` configuration option. " |
1532 "Ignored if `DicomModalities` already sets `LocalAet` for this modality.", false) | 1532 "Ignored if `DicomModalities` already sets `LocalAet` for this modality.", false) |
1570 DicomControlUserConnection connection(params); | 1570 DicomControlUserConnection connection(params); |
1571 | 1571 |
1572 for (Json::Value::ArrayIndex i = 0; i < request[KEY_RESOURCES].size(); i++) | 1572 for (Json::Value::ArrayIndex i = 0; i < request[KEY_RESOURCES].size(); i++) |
1573 { | 1573 { |
1574 DicomMap resource; | 1574 DicomMap resource; |
1575 FromDcmtkBridge::FromJson(resource, request[KEY_RESOURCES][i]); | 1575 FromDcmtkBridge::FromJson(resource, request[KEY_RESOURCES][i], "Resources elements"); |
1576 | 1576 |
1577 connection.Move(targetAet, level, resource); | 1577 connection.Move(targetAet, level, resource); |
1578 } | 1578 } |
1579 | 1579 |
1580 // Move has succeeded | 1580 // Move has succeeded |