Mercurial > hg > orthanc
comparison OrthancServer/Sources/OrthancRestApi/OrthancRestApi.cpp @ 4819:70d2a97ca8cb openssl-3.x
integration mainline->openssl-3.x
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 25 Nov 2021 13:12:32 +0100 |
parents | 61da49321754 94616af363ec |
children | 2e71a08eea15 |
comparison
equal
deleted
inserted
replaced
4785:61da49321754 | 4819:70d2a97ca8cb |
---|---|
185 | 185 |
186 std::string publicId; | 186 std::string publicId; |
187 | 187 |
188 try | 188 try |
189 { | 189 { |
190 StoreStatus status = context.Store(publicId, *toStore, StoreInstanceMode_Default); | 190 ServerContext::StoreResult result = context.Store(publicId, *toStore, StoreInstanceMode_Default); |
191 | 191 |
192 Json::Value info; | 192 Json::Value info; |
193 SetupResourceAnswer(info, *toStore, status, publicId); | 193 SetupResourceAnswer(info, *toStore, result.GetStatus(), publicId); |
194 answer.append(info); | 194 answer.append(info); |
195 } | 195 } |
196 catch (OrthancException& e) | 196 catch (OrthancException& e) |
197 { | 197 { |
198 if (e.GetErrorCode() == ErrorCode_BadFileFormat) | 198 if (e.GetErrorCode() == ErrorCode_BadFileFormat) |
238 } | 238 } |
239 | 239 |
240 toStore->SetOrigin(DicomInstanceOrigin::FromRest(call)); | 240 toStore->SetOrigin(DicomInstanceOrigin::FromRest(call)); |
241 | 241 |
242 std::string publicId; | 242 std::string publicId; |
243 StoreStatus status = context.Store(publicId, *toStore, StoreInstanceMode_Default); | 243 ServerContext::StoreResult result = context.Store(publicId, *toStore, StoreInstanceMode_Default); |
244 | 244 |
245 OrthancRestApi::GetApi(call).AnswerStoredInstance(call, *toStore, status, publicId); | 245 OrthancRestApi::GetApi(call).AnswerStoredInstance(call, *toStore, result.GetStatus(), publicId); |
246 } | 246 } |
247 } | 247 } |
248 | 248 |
249 | 249 |
250 | 250 |