comparison OrthancServer/Sources/OrthancRestApi/OrthancRestApi.cpp @ 4698:d16c3c7f11ef

new route "/tools/bulk-content" to get the content of a set of resources
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 18 Jun 2021 16:37:12 +0200
parents 569d9ef165b1
children f0038043fb97 71fbdee4b832
comparison
equal deleted inserted replaced
4697:569d9ef165b1 4698:d16c3c7f11ef
469 static const std::string POST_SIMPLIFY = "Simplify"; 469 static const std::string POST_SIMPLIFY = "Simplify";
470 static const std::string POST_FULL = "Full"; 470 static const std::string POST_FULL = "Full";
471 static const std::string POST_SHORT = "Short"; 471 static const std::string POST_SHORT = "Short";
472 472
473 static const std::string DOCUMENT_SIMPLIFY = 473 static const std::string DOCUMENT_SIMPLIFY =
474 "report the DICOM tags indexed in human-readable format " 474 "report the DICOM tags in human-readable format (using the symbolic name of the tags)";
475 "(using the symbolic name of the tags)";
476 475
477 static const std::string DOCUMENT_SHORT = 476 static const std::string DOCUMENT_SHORT =
478 "report the DICOM tags indexed in hexadecimal format"; 477 "report the DICOM tags in hexadecimal format";
479 478
480 static const std::string DOCUMENT_FULL = 479 static const std::string DOCUMENT_FULL =
481 "report the DICOM tags in full format (tags indexed by their hexadecimal " 480 "report the DICOM tags in full format (tags indexed by their hexadecimal "
482 "format, associated with their symbolic name and their value)"; 481 "format, associated with their symbolic name and their value)";
483 482
562 } 561 }
563 562
564 if (defaultFormat != DicomToJsonFormat_Short) 563 if (defaultFormat != DicomToJsonFormat_Short)
565 { 564 {
566 call.GetDocumentation().SetRequestField(POST_SHORT, RestApiCallDocumentation::Type_Boolean, 565 call.GetDocumentation().SetRequestField(POST_SHORT, RestApiCallDocumentation::Type_Boolean,
567 "If set to `true`, " + DOCUMENT_SIMPLIFY, false); 566 "If set to `true`, " + DOCUMENT_SHORT, false);
568 } 567 }
569 568
570 if (defaultFormat != DicomToJsonFormat_Full) 569 if (defaultFormat != DicomToJsonFormat_Full)
571 { 570 {
572 call.GetDocumentation().SetRequestField(POST_FULL, RestApiCallDocumentation::Type_Boolean, 571 call.GetDocumentation().SetRequestField(POST_FULL, RestApiCallDocumentation::Type_Boolean,
573 "If set to `true`, " + DOCUMENT_SIMPLIFY, false); 572 "If set to `true`, " + DOCUMENT_FULL, false);
574 } 573 }
575 } 574 }
576 } 575 }