comparison OrthancServer/Sources/OrthancRestApi/OrthancRestApi.cpp @ 4404:f34634916d8c

cont openapi
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 24 Dec 2020 08:59:45 +0100
parents ad646ff506d0
children 22a1352a0823
comparison
equal deleted inserted replaced
4403:ad646ff506d0 4404:f34634916d8c
151 .SetSummary("Upload DICOM instances") 151 .SetSummary("Upload DICOM instances")
152 .AddRequestType(MimeType_Dicom, "DICOM file to be uploaded") 152 .AddRequestType(MimeType_Dicom, "DICOM file to be uploaded")
153 .AddRequestType(MimeType_Zip, "ZIP archive containing DICOM files (new in Orthanc 1.8.2)") 153 .AddRequestType(MimeType_Zip, "ZIP archive containing DICOM files (new in Orthanc 1.8.2)")
154 .AddAnswerType(MimeType_Json, "Information about the uploaded instance, " 154 .AddAnswerType(MimeType_Json, "Information about the uploaded instance, "
155 "or list of information for each uploaded instance in the case of ZIP archive") 155 "or list of information for each uploaded instance in the case of ZIP archive")
156 .SetAnswerField("ID", RestApiCallDocumentation::Type_String, "Orthanc identifier of the new instance")
157 .SetAnswerField("Path", RestApiCallDocumentation::Type_String, "Path to the new instance in the REST API")
158 .SetAnswerField("Status", RestApiCallDocumentation::Type_String, "Can be `Success`, `AlreadyStored`, `Failure`, or `FilteredOut` (removed by some `NewInstanceFilter`)")
156 .SetSample(sample); 159 .SetSample(sample);
157 return; 160 return;
158 } 161 }
159 162
160 ServerContext& context = OrthancRestApi::GetContext(call); 163 ServerContext& context = OrthancRestApi::GetContext(call);