comparison OrthancServer/Sources/OrthancRestApi/OrthancRestResources.cpp @ 4514:5b929e6b3c36

removal of "dicom-as-json" attachments
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 16 Feb 2021 12:18:41 +0100
parents 1f455b86b054
children 350a22c094f2
comparison
equal deleted inserted replaced
4513:1f455b86b054 4514:5b929e6b3c36
1574 return; 1574 return;
1575 } 1575 }
1576 1576
1577 const std::string resourceType = call.GetFullUri() [0]; 1577 const std::string resourceType = call.GetFullUri() [0];
1578 const std::string publicId = call.GetUriComponent("id", ""); 1578 const std::string publicId = call.GetUriComponent("id", "");
1579 std::list<FileContentType> attachments; 1579 std::set<FileContentType> attachments;
1580 OrthancRestApi::GetIndex(call).ListAvailableAttachments(attachments, publicId, StringToResourceType(resourceType.c_str())); 1580 OrthancRestApi::GetIndex(call).ListAvailableAttachments(attachments, publicId, StringToResourceType(resourceType.c_str()));
1581 1581
1582 Json::Value result = Json::arrayValue; 1582 Json::Value result = Json::arrayValue;
1583 1583
1584 for (std::list<FileContentType>::const_iterator 1584 for (std::set<FileContentType>::const_iterator
1585 it = attachments.begin(); it != attachments.end(); ++it) 1585 it = attachments.begin(); it != attachments.end(); ++it)
1586 { 1586 {
1587 result.append(EnumerationToString(*it)); 1587 result.append(EnumerationToString(*it));
1588 } 1588 }
1589 1589