Koha-clms/api/v1/swagger
Tomas Cohen Arazi 185b431ebf
Bug 33227: Remove invalid spec and adjust the code accordingly
The spec contains a non-standard definition for the body param. Removing
it from the spec makes us need to handle the 'body' manually in the case
of JSON data.

This patch basically does that. It also changes the uses of
$c->validation, which are discouraged by the
Mojolicious::Plugin::OpenAPI dev/maintainer. I do it to highlight what
we must do in other places and the fact that there's no behavior change.

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

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
2023-03-20 09:39:50 -03:00
..
definitions Bug 33161: Add +strings support to GET /items and /items/:item_id 2023-03-10 10:20:09 -03:00
paths Bug 33227: Remove invalid spec and adjust the code accordingly 2023-03-20 09:39:50 -03:00
swagger.yaml Bug 31800: Add REST endpoint to add a biblio 2023-03-10 11:47:18 -03:00