Bug 35919: Add /record_sources endpoints
authorTomas Cohen Arazi <tomascohen@theke.io>
Wed, 24 Jan 2024 19:17:17 +0000 (16:17 -0300)
committerKatrin Fischer <katrin.fischer@bsz-bw.de>
Fri, 26 Apr 2024 15:06:03 +0000 (17:06 +0200)
commit07a12da11a2177f4bf1b4b4ee17e054d1f7b1f5b
tree73dda9b88cb69d5111dc2696579687eba06cbeff
parent47817e3bc5c31d21a1759157d46c51422adad418
Bug 35919: Add /record_sources endpoints

This patch introduces endpoints for managing record sources. This is
done on top of Koha::RecordSource(s) following the current coding style.

To test:
1. Apply this patch
2. Run:
   $ ktd --shell
  k$ prove t/db_dependent/api/v1/record_sources.t
=> SUCCESS: Tests pass!
3. Sign off :-D

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Matt Blenkinsop <matt.blenkinsop@ptfs-europe.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
Koha/REST/V1/RecordSources.pm [new file with mode: 0644]
api/v1/swagger/definitions/record_source.yaml [new file with mode: 0644]
api/v1/swagger/paths/record_sources.yaml [new file with mode: 0644]
api/v1/swagger/swagger.yaml
t/db_dependent/api/v1/record_sources.t [new file with mode: 0755]