Mercurial > hg > orthanc
comparison OrthancServer/OrthancRestApi.cpp @ 446:b7ef1a7d857e
/tools/now
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 17 May 2013 17:39:27 +0200 |
parents | be93b666ed79 |
children | 005aaeb63414 |
comparison
equal
deleted
inserted
replaced
445:7816aaa5db17 | 446:b7ef1a7d857e |
---|---|
367 std::string result; | 367 std::string result; |
368 RETRIEVE_CONTEXT(call); | 368 RETRIEVE_CONTEXT(call); |
369 context.GetLuaContext().Execute(result, call.GetPostBody()); | 369 context.GetLuaContext().Execute(result, call.GetPostBody()); |
370 call.GetOutput().AnswerBuffer(result, "text/plain"); | 370 call.GetOutput().AnswerBuffer(result, "text/plain"); |
371 } | 371 } |
372 | |
373 static void GetNowIsoString(RestApi::GetCall& call) | |
374 { | |
375 call.GetOutput().AnswerBuffer(Toolbox::GetNowIsoString(), "text/plain"); | |
376 } | |
377 | |
378 | |
372 | 379 |
373 | 380 |
374 | 381 |
375 | 382 |
376 // List all the patients, studies, series or instances ---------------------- | 383 // List all the patients, studies, series or instances ---------------------- |
1676 Register("/studies/{id}/anonymize", AnonymizeStudyInplace); | 1683 Register("/studies/{id}/anonymize", AnonymizeStudyInplace); |
1677 Register("/patients/{id}/anonymize", AnonymizePatientInplace); | 1684 Register("/patients/{id}/anonymize", AnonymizePatientInplace); |
1678 | 1685 |
1679 Register("/tools/generate-uid", GenerateUid); | 1686 Register("/tools/generate-uid", GenerateUid); |
1680 Register("/tools/execute-script", ExecuteScript); | 1687 Register("/tools/execute-script", ExecuteScript); |
1688 Register("/tools/now", GetNowIsoString); | |
1681 } | 1689 } |
1682 } | 1690 } |