]> git.koha-community.org Git - koha.git/commit
Bug 35197: Add additional_fields REST API endpoint
authorPedro Amorim <pedro.amorim@ptfs-europe.com>
Tue, 31 Oct 2023 11:56:31 +0000 (10:56 -0100)
committerKatrin Fischer <katrin.fischer@bsz-bw.de>
Thu, 27 Jun 2024 12:04:54 +0000 (14:04 +0200)
commit3c87aa8c7f45f519ca40ed935df796a2829cff7b
treedc5142fe82ce4c6844e4b9e62a153a50af9246b9
parent444f3d8badcec9c4679507cfdb92d7e8a08bc97c
Bug 35197: Add additional_fields REST API endpoint

Test plan:
1) Apply patch, restart plack 'koha-plack --restart kohadev'
2) Visit /api/v1/additional_fields?tablename=aqinvoices - Notice its empty
3) Visit /cgi-bin/koha/admin/additional-fields.pl?tablename=aqbasket and add a new additional field
4) Do step 2) again - Notice the newly created additional field is there
5) Visit /cgi-bin/koha/admin/additional-fields.pl?tablename=aqinvoices and add a new additional field for invoices
6) Do step 2) again - Notice both additional fields are there
7) Visit /api/v1/additional_fields?tablename=aqinvoices - Notice only the additional field for aqinvoices is listed

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
Koha/REST/V1/AdditionalFields.pm [new file with mode: 0644]
api/v1/swagger/definitions/additional_field.yaml [new file with mode: 0644]
api/v1/swagger/paths/additional_fields.yaml [new file with mode: 0644]
api/v1/swagger/swagger.yaml