Mercurial > hg > orthanc
comparison OrthancServer/OrthancRestApi/OrthancRestApi.cpp @ 2908:9d277f8ad698
new enumeration: MimeType
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 30 Oct 2018 16:16:07 +0100 |
parents | ae20fccdd867 |
children | 9c0b0a6d8b54 |
comparison
equal
deleted
inserted
replaced
2907:0204af4ece6a | 2908:9d277f8ad698 |
---|---|
86 | 86 |
87 void OrthancRestApi::ResetOrthanc(RestApiPostCall& call) | 87 void OrthancRestApi::ResetOrthanc(RestApiPostCall& call) |
88 { | 88 { |
89 OrthancRestApi::GetApi(call).leaveBarrier_ = true; | 89 OrthancRestApi::GetApi(call).leaveBarrier_ = true; |
90 OrthancRestApi::GetApi(call).resetRequestReceived_ = true; | 90 OrthancRestApi::GetApi(call).resetRequestReceived_ = true; |
91 call.GetOutput().AnswerBuffer("{}", MIME_JSON); | 91 call.GetOutput().AnswerBuffer("{}", MimeType_Json); |
92 } | 92 } |
93 | 93 |
94 | 94 |
95 void OrthancRestApi::ShutdownOrthanc(RestApiPostCall& call) | 95 void OrthancRestApi::ShutdownOrthanc(RestApiPostCall& call) |
96 { | 96 { |
97 OrthancRestApi::GetApi(call).leaveBarrier_ = true; | 97 OrthancRestApi::GetApi(call).leaveBarrier_ = true; |
98 call.GetOutput().AnswerBuffer("{}", MIME_JSON); | 98 call.GetOutput().AnswerBuffer("{}", MimeType_Json); |
99 LOG(WARNING) << "Shutdown request received"; | 99 LOG(WARNING) << "Shutdown request received"; |
100 } | 100 } |
101 | 101 |
102 | 102 |
103 | 103 |