comparison OrthancServer/Sources/OrthancRestApi/OrthancRestModalities.cpp @ 4732:3709565bee7f

fix openapi: /modalities/{id}/move not supporting jobs
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 28 Jun 2021 12:03:07 +0200
parents 7826ac059c31
children c1d6ce00be3f 7053502fbf97
comparison
equal deleted inserted replaced
4731:283d246fafdb 4732:3709565bee7f
1524 1524
1525 static void DicomMove(RestApiPostCall& call) 1525 static void DicomMove(RestApiPostCall& call)
1526 { 1526 {
1527 if (call.IsDocumentation()) 1527 if (call.IsDocumentation())
1528 { 1528 {
1529 OrthancRestApi::DocumentSubmitCommandsJob(call);
1530 call.GetDocumentation() 1529 call.GetDocumentation()
1531 .SetTag("Networking") 1530 .SetTag("Networking")
1532 .SetSummary("Trigger C-MOVE SCU") 1531 .SetSummary("Trigger C-MOVE SCU")
1533 .SetDescription("Start a C-MOVE SCU command as a job, in order to drive the execution of a sequence of " 1532 .SetDescription("Start a C-MOVE SCU command as a job, in order to drive the execution of a sequence of "
1534 "C-STORE commands by some remote DICOM modality whose identifier is provided in the URL: " 1533 "C-STORE commands by some remote DICOM modality whose identifier is provided in the URL: "
1573 1572
1574 const RemoteModalityParameters source = 1573 const RemoteModalityParameters source =
1575 MyGetModalityUsingSymbolicName(call.GetUriComponent("id", "")); 1574 MyGetModalityUsingSymbolicName(call.GetUriComponent("id", ""));
1576 1575
1577 DicomAssociationParameters params(localAet, source); 1576 DicomAssociationParameters params(localAet, source);
1578 InjectAssociationTimeout(params, request); 1577 InjectAssociationTimeout(params, request); // Handles KEY_TIMEOUT
1579 1578
1580 DicomControlUserConnection connection(params); 1579 DicomControlUserConnection connection(params);
1581 1580
1582 for (Json::Value::ArrayIndex i = 0; i < request[KEY_RESOURCES].size(); i++) 1581 for (Json::Value::ArrayIndex i = 0; i < request[KEY_RESOURCES].size(); i++)
1583 { 1582 {