diff OrthancServer/Sources/OrthancRestApi/OrthancRestArchive.cpp @ 4417:a4518adede59

openapi for plugins and jobs
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 28 Dec 2020 17:40:35 +0100
parents 0b27841950d5
children d9473bd5ed43
line wrap: on
line diff
--- a/OrthancServer/Sources/OrthancRestApi/OrthancRestArchive.cpp	Mon Dec 28 16:49:17 2020 +0100
+++ b/OrthancServer/Sources/OrthancRestApi/OrthancRestArchive.cpp	Mon Dec 28 17:40:35 2020 +0100
@@ -214,7 +214,9 @@
                        "In asynchronous mode, the priority of the job. The lower the value, the higher the priority.", false)
       .AddAnswerType(MimeType_Zip, "In synchronous mode, the ZIP file containing the archive")
       .AddAnswerType(MimeType_Json, "In asynchronous mode, information about the job that has been submitted to "
-                     "generate the archive: https://book.orthanc-server.com/users/advanced-rest.html#jobs");
+                     "generate the archive: https://book.orthanc-server.com/users/advanced-rest.html#jobs")
+      .SetAnswerField("ID", RestApiCallDocumentation::Type_String, "Identifier of the job")
+      .SetAnswerField("Path", RestApiCallDocumentation::Type_String, "Path to access the job in the REST API");
 
     if (isMedia)
     {