diff OrthancServer/OrthancRestApi/OrthancRestSystem.cpp @ 2647:73d7d95dd75e jobs

removal of internal job information
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 31 May 2018 17:45:09 +0200
parents 912a767911b0
children ae20fccdd867
line wrap: on
line diff
--- a/OrthancServer/OrthancRestApi/OrthancRestSystem.cpp	Thu May 31 17:30:22 2018 +0200
+++ b/OrthancServer/OrthancRestApi/OrthancRestSystem.cpp	Thu May 31 17:45:09 2018 +0200
@@ -276,7 +276,6 @@
   static void ListJobs(RestApiGetCall& call)
   {
     bool expand = call.HasArgument("expand");
-    bool internal = call.HasArgument("internal");
 
     Json::Value v = Json::arrayValue;
 
@@ -292,7 +291,7 @@
         if (OrthancRestApi::GetContext(call).GetJobsEngine().GetRegistry().GetJobInfo(info, *it))
         {
           Json::Value tmp;
-          info.Serialize(tmp, internal);
+          info.Format(tmp);
           v.append(tmp);
         }
       }
@@ -308,13 +307,12 @@
   static void GetJobInfo(RestApiGetCall& call)
   {
     std::string id = call.GetUriComponent("id", "");
-    bool internal = call.HasArgument("internal");
 
     JobInfo info;
     if (OrthancRestApi::GetContext(call).GetJobsEngine().GetRegistry().GetJobInfo(info, id))
     {
       Json::Value json;
-      info.Serialize(json, internal);
+      info.Format(json);
       call.GetOutput().AnswerJson(json);
     }
   }