comparison OrthancServer/OrthancRestApi/OrthancRestResources.cpp @ 2127:bfa92c9328d7

cleaning up
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 07 Nov 2016 13:59:36 +0100
parents 2b1520efa282
children 9329ba17a069
comparison
equal deleted inserted replaced
2126:03b065778fc3 2127:bfa92c9328d7
213 ServerToolbox::SimplifyTags(simplified, full, DicomToJsonFormat_Human); 213 ServerToolbox::SimplifyTags(simplified, full, DicomToJsonFormat_Human);
214 call.GetOutput().AnswerJson(simplified); 214 call.GetOutput().AnswerJson(simplified);
215 } 215 }
216 else 216 else
217 { 217 {
218 context.AnswerAttachment(call.GetOutput(), publicId, FileContentType_DicomAsJson); 218 std::string full;
219 context.ReadDicomAsJson(full, publicId);
220 call.GetOutput().AnswerBuffer(full, "application/json");
219 } 221 }
220 } 222 }
221 223
222 224
223 static void GetInstanceTagsBis(RestApiGetCall& call) 225 static void GetInstanceTagsBis(RestApiGetCall& call)