Mercurial > hg > orthanc
comparison OrthancServer/OrthancRestApi/OrthancRestSystem.cpp @ 1073:01414536c930
complete DICOM conformance
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 29 Jul 2014 10:24:09 +0200 |
parents | cf52f3bcb2b3 |
children | efece308018e |
comparison
equal
deleted
inserted
replaced
1072:1dffa9f44a94 | 1073:01414536c930 |
---|---|
102 static void GetNowIsoString(RestApiGetCall& call) | 102 static void GetNowIsoString(RestApiGetCall& call) |
103 { | 103 { |
104 call.GetOutput().AnswerBuffer(Toolbox::GetNowIsoString(), "text/plain"); | 104 call.GetOutput().AnswerBuffer(Toolbox::GetNowIsoString(), "text/plain"); |
105 } | 105 } |
106 | 106 |
107 | |
108 static void GetDicomConformanceStatement(RestApiGetCall& call) | |
109 { | |
110 std::string statement; | |
111 GetFileResource(statement, EmbeddedResources::DICOM_CONFORMANCE_STATEMENT); | |
112 call.GetOutput().AnswerBuffer(statement, "text/plain"); | |
113 } | |
114 | |
115 | |
107 void OrthancRestApi::RegisterSystem() | 116 void OrthancRestApi::RegisterSystem() |
108 { | 117 { |
109 Register("/", ServeRoot); | 118 Register("/", ServeRoot); |
110 Register("/system", GetSystemInformation); | 119 Register("/system", GetSystemInformation); |
111 Register("/statistics", GetStatistics); | 120 Register("/statistics", GetStatistics); |
112 Register("/tools/generate-uid", GenerateUid); | 121 Register("/tools/generate-uid", GenerateUid); |
113 Register("/tools/execute-script", ExecuteScript); | 122 Register("/tools/execute-script", ExecuteScript); |
114 Register("/tools/now", GetNowIsoString); | 123 Register("/tools/now", GetNowIsoString); |
124 Register("/tools/dicom-conformance", GetDicomConformanceStatement); | |
115 } | 125 } |
116 } | 126 } |