# HG changeset patch # User Sebastien Jodogne # Date 1368805167 -7200 # Node ID b7ef1a7d857ec896966f1fd5d4b59f624d22d7ea # Parent 7816aaa5db17b54a5273766eb7a6e1943110ca5b /tools/now diff -r 7816aaa5db17 -r b7ef1a7d857e NEWS --- a/NEWS Fri May 17 17:32:16 2013 +0200 +++ b/NEWS Fri May 17 17:39:27 2013 +0200 @@ -5,9 +5,10 @@ Metadata -------- -* Access to the metadata through the REST API +* Access to the metadata through the REST API (/metadata) * Support of user-defined metadata * "LastUpdate" metadata for patients, studies and series +* "/tools/now" to be used in combination with "LastUpdate" * Improved support of series with temporal positions Other diff -r 7816aaa5db17 -r b7ef1a7d857e OrthancServer/OrthancRestApi.cpp --- a/OrthancServer/OrthancRestApi.cpp Fri May 17 17:32:16 2013 +0200 +++ b/OrthancServer/OrthancRestApi.cpp Fri May 17 17:39:27 2013 +0200 @@ -370,6 +370,13 @@ call.GetOutput().AnswerBuffer(result, "text/plain"); } + static void GetNowIsoString(RestApi::GetCall& call) + { + call.GetOutput().AnswerBuffer(Toolbox::GetNowIsoString(), "text/plain"); + } + + + @@ -1678,5 +1685,6 @@ Register("/tools/generate-uid", GenerateUid); Register("/tools/execute-script", ExecuteScript); + Register("/tools/now", GetNowIsoString); } }