comparison OrthancServer/OrthancRestApi/OrthancRestApi.h @ 2899:5dd649de253d

POST-ing a DICOM file to "/instances" also answers the patient/study/series ID
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 18 Oct 2018 12:03:51 +0200
parents 251614c2edac
children 9c0b0a6d8b54
comparison
equal deleted inserted replaced
2898:e5e3253a1164 2899:5dd649de253d
42 42
43 namespace Orthanc 43 namespace Orthanc
44 { 44 {
45 class ServerContext; 45 class ServerContext;
46 class ServerIndex; 46 class ServerIndex;
47 class DicomInstanceToStore;
47 48
48 class OrthancRestApi : public RestApi 49 class OrthancRestApi : public RestApi
49 { 50 {
50 public: 51 public:
51 typedef std::set<std::string> SetOfStrings; 52 typedef std::set<std::string> SetOfStrings;
91 92
92 static ServerContext& GetContext(RestApiCall& call); 93 static ServerContext& GetContext(RestApiCall& call);
93 94
94 static ServerIndex& GetIndex(RestApiCall& call); 95 static ServerIndex& GetIndex(RestApiCall& call);
95 96
97 void AnswerStoredInstance(RestApiPostCall& call,
98 DicomInstanceToStore& instance,
99 StoreStatus status) const;
100
96 void AnswerStoredResource(RestApiPostCall& call, 101 void AnswerStoredResource(RestApiPostCall& call,
97 const std::string& publicId, 102 const std::string& publicId,
98 ResourceType resourceType, 103 ResourceType resourceType,
99 StoreStatus status) const; 104 StoreStatus status) const;
100 105