]> git.koha-community.org Git - koha.git/commit
Bug 30982: API tweaks
authorTomas Cohen Arazi <tomascohen@theke.io>
Mon, 12 Sep 2022 16:02:25 +0000 (13:02 -0300)
committerTomas Cohen Arazi <tomascohen@theke.io>
Fri, 23 Sep 2022 11:57:49 +0000 (08:57 -0300)
commit88cc881521178f268c563e305aed8ff75fbcbd7a
tree164ec5ea3a0375739d4e6b65b9e419fc82b7cc45
parentc1c9700c63a41f3662235c7bb174360af4b40277
Bug 30982: API tweaks

This patch makes the following changes to the 'background_jobs' API:

* We now call them 'jobs'
* Removed deprecated query parameter definitions
* Added only_current query parameter
* Controller gets adapted to use $rs->filter_by_current when
  only_current is passed

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Koha/BackgroundJob.pm
Koha/REST/V1/BackgroundJobs.pm
api/v1/swagger/definitions/background_job.yaml [deleted file]
api/v1/swagger/definitions/job.yaml [new file with mode: 0644]
api/v1/swagger/paths/background_jobs.yaml [deleted file]
api/v1/swagger/paths/jobs.yaml [new file with mode: 0644]
api/v1/swagger/swagger.yaml
t/db_dependent/api/v1/background_jobs.t [deleted file]
t/db_dependent/api/v1/jobs.t [new file with mode: 0755]
t/lib/TestBuilder.pm