comparison OrthancServer/Sources/OrthancRestApi/OrthancRestResources.cpp @ 4422:48303e493135

cont openapi
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 29 Dec 2020 16:05:07 +0100
parents a7d72378e1cb
children 83371ccdfe80
comparison
equal deleted inserted replaced
4421:a7d72378e1cb 4422:48303e493135
2291 } 2291 }
2292 2292
2293 2293
2294 static void Lookup(RestApiPostCall& call) 2294 static void Lookup(RestApiPostCall& call)
2295 { 2295 {
2296 if (call.IsDocumentation())
2297 {
2298 call.GetDocumentation()
2299 .SetTag("System")
2300 .SetSummary("Look for DICOM identifiers")
2301 .SetDescription("This URI can be used to convert one DICOM identifier to a list of matching Orthanc resources")
2302 .AddRequestType(MimeType_PlainText, "The DICOM identifier of interest (i.e. the value of `PatientID`, "
2303 "`StudyInstanceUID`, `SeriesInstanceUID`, or `SOPInstanceUID`)")
2304 .AddAnswerType(MimeType_Json, "JSON array containing a list of matching Orthanc resources, each item in the "
2305 "list corresponding to a JSON object with the fields `Type`, `ID` and `Path` identifying one "
2306 "DICOM resource that is stored by Orthanc");
2307 return;
2308 }
2309
2296 std::string tag; 2310 std::string tag;
2297 call.BodyToString(tag); 2311 call.BodyToString(tag);
2298 2312
2299 LookupResults resources; 2313 LookupResults resources;
2300 ServerIndex& index = OrthancRestApi::GetIndex(call); 2314 ServerIndex& index = OrthancRestApi::GetIndex(call);