changeset 446:b7ef1a7d857e

/tools/now
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 17 May 2013 17:39:27 +0200
parents 7816aaa5db17
children e0c398d4721e
files NEWS OrthancServer/OrthancRestApi.cpp
diffstat 2 files changed, 10 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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
--- 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);
   }
 }