From df56048338b7abe5058f054b8785667a56940193 Mon Sep 17 00:00:00 2001
From: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Date: Tue, 26 Jul 2022 08:44:10 +0200
Subject: [PATCH] Bug 30982: Add 'context' to the REST API specs
Content-Type: text/plain; charset=utf-8

context has been added by bug 30889

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
---
 api/v1/swagger/definitions/background_job.yaml | 5 +++++
 api/v1/swagger/paths/background_jobs.yaml      | 7 ++++++-
 2 files changed, 11 insertions(+), 1 deletion(-)

diff --git a/api/v1/swagger/definitions/background_job.yaml b/api/v1/swagger/definitions/background_job.yaml
index 41146c26d7..09cbbe652c 100644
--- a/api/v1/swagger/definitions/background_job.yaml
+++ b/api/v1/swagger/definitions/background_job.yaml
@@ -40,6 +40,11 @@ properties:
     type:
       - string
       - "null"
+  context:
+    description: background_job context
+    type:
+      - string
+      - "null"
   enqueued_on:
     description: background_job enqueue date
     type:
diff --git a/api/v1/swagger/paths/background_jobs.yaml b/api/v1/swagger/paths/background_jobs.yaml
index c386dfc5c5..ecc80a21f2 100644
--- a/api/v1/swagger/paths/background_jobs.yaml
+++ b/api/v1/swagger/paths/background_jobs.yaml
@@ -29,7 +29,7 @@
         description: Case insensative search on job enqueuer id
         required: false
         type: string
-      - name: tye
+      - name: type
         in: query
         description: Case insensative search on job type
         required: false
@@ -39,6 +39,11 @@
         description: Case insensative search on job queue
         required: false
         type: string
+      - name: context
+        in: query
+        description: Case insensative search on context
+        required: false
+        type: string
       - name: enqueued_on
         in: query
         description: Case insensative search on job enqueue date
-- 
2.30.2