Koha-clms/api/v1/swagger/paths
Tomas Cohen Arazi bb09e474a0 Bug 37018: Add 400 response definition to all routes
This patch adds a test for well defined 400 responses on all verbs and
paths on the API spec.

The tests verify:

* Presence of 400 response definition
* The description must start with 'Bad request' (needs coding guideline)
* If DBIC queries are allowed on the route, then `invalid_query` needs
  to be mentioned in the description.

All routes get fixed to make the tests pass.

To test:
1. Apply this patch
2. Run:
   $ ktd --shell
  k$ yarn api:bundle
  k$ prove xt/api.t
=> SUCCESS: Tests pass!

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: wainuiwitikapark <wainuiwitikapark@catalyst.net.nz>
2024-07-23 04:42:52 +00:00
..
acquisitions_baskets.yaml Bug 37018: Add 400 response definition to all routes 2024-07-23 04:42:52 +00:00
acquisitions_funds.yaml Bug 37018: Add 400 response definition to all routes 2024-07-23 04:42:52 +00:00
acquisitions_orders.yaml Bug 37018: Add 400 response definition to all routes 2024-07-23 04:42:52 +00:00
acquisitions_vendors.yaml Bug 37018: Add 400 response definition to all routes 2024-07-23 04:42:52 +00:00
advancededitormacros.yaml Bug 37018: Add 400 response definition to all routes 2024-07-23 04:42:52 +00:00
article_requests.yaml Bug 30194: (follow-up) Simply OpenAPI Specification 2022-03-29 16:44:31 +02:00
auth.yaml Bug 37018: Add 400 response definition to all routes 2024-07-23 04:42:52 +00:00
authorised_value_categories.yaml Bug 37018: Add 400 response definition to all routes 2024-07-23 04:42:52 +00:00
authorised_values.yaml Bug 37018: Add 400 response definition to all routes 2024-07-23 04:42:52 +00:00
authorities.yaml Bug 37018: Add 400 response definition to all routes 2024-07-23 04:42:52 +00:00
biblios.yaml Bug 37018: Add 400 response definition to all routes 2024-07-23 04:42:52 +00:00
biblios_item_groups.yaml Bug 37018: Add 400 response definition to all routes 2024-07-23 04:42:52 +00:00
cash_registers.yaml Bug 37018: Add 400 response definition to all routes 2024-07-23 04:42:52 +00:00
checkouts.yaml Bug 37018: Add 400 response definition to all routes 2024-07-23 04:42:52 +00:00
circulation-rules.yaml Bug 37018: Add 400 response definition to all routes 2024-07-23 04:42:52 +00:00
cities.yaml Bug 37018: Add 400 response definition to all routes 2024-07-23 04:42:52 +00:00
clubs.yaml Bug 37018: Add 400 response definition to all routes 2024-07-23 04:42:52 +00:00
config_smtp_servers.yaml Bug 37018: Add 400 response definition to all routes 2024-07-23 04:42:52 +00:00
erm_agreements.yaml Bug 37018: Add 400 response definition to all routes 2024-07-23 04:42:52 +00:00
erm_config.yaml Bug 37018: Add 400 response definition to all routes 2024-07-23 04:42:52 +00:00
erm_documents.yaml Bug 37018: Add 400 response definition to all routes 2024-07-23 04:42:52 +00:00
erm_eholdings_packages.yaml Bug 37018: Add 400 response definition to all routes 2024-07-23 04:42:52 +00:00
erm_eholdings_packages_resources.yaml Bug 37018: Add 400 response definition to all routes 2024-07-23 04:42:52 +00:00
erm_eholdings_resources.yaml Bug 37018: Add 400 response definition to all routes 2024-07-23 04:42:52 +00:00
erm_eholdings_titles.yaml Bug 37018: Add 400 response definition to all routes 2024-07-23 04:42:52 +00:00
erm_eholdings_titles_resources.yaml Bug 37018: Add 400 response definition to all routes 2024-07-23 04:42:52 +00:00
erm_licenses.yaml Bug 37018: Add 400 response definition to all routes 2024-07-23 04:42:52 +00:00
erm_users.yaml Bug 37018: Add 400 response definition to all routes 2024-07-23 04:42:52 +00:00
holds.yaml Bug 37018: Add 400 response definition to all routes 2024-07-23 04:42:52 +00:00
ill_backends.yaml Bug 37018: Add 400 response definition to all routes 2024-07-23 04:42:52 +00:00
ill_requests.yaml Bug 37018: Add 400 response definition to all routes 2024-07-23 04:42:52 +00:00
import_batch_profiles.yaml Bug 37018: Add 400 response definition to all routes 2024-07-23 04:42:52 +00:00
import_batches.yaml Bug 37018: Add 400 response definition to all routes 2024-07-23 04:42:52 +00:00
item_types.yaml Bug 37018: Add 400 response definition to all routes 2024-07-23 04:42:52 +00:00
items.yaml Bug 37018: Add 400 response definition to all routes 2024-07-23 04:42:52 +00:00
jobs.yaml Bug 37018: Add 400 response definition to all routes 2024-07-23 04:42:52 +00:00
libraries.yaml Bug 37018: Add 400 response definition to all routes 2024-07-23 04:42:52 +00:00
oauth.yaml Bug 37018: Add 400 response definition to all routes 2024-07-23 04:42:52 +00:00
patrons.yaml Bug 37018: Add 400 response definition to all routes 2024-07-23 04:42:52 +00:00
patrons_account.yaml Bug 37018: Add 400 response definition to all routes 2024-07-23 04:42:52 +00:00
patrons_extended_attributes.yaml Bug 37018: Add 400 response definition to all routes 2024-07-23 04:42:52 +00:00
patrons_holds.yaml Bug 37018: Add 400 response definition to all routes 2024-07-23 04:42:52 +00:00
patrons_password.yaml Bug 29926: (QA follow-up) Date format missing in spec 2022-05-06 10:33:10 -10:00
public_oauth.yaml Bug 37018: Add 400 response definition to all routes 2024-07-23 04:42:52 +00:00
public_patrons.yaml Bug 33573: Add public endpoint for cancelling holds 2023-07-17 15:56:59 +01:00
quotes.yaml Bug 37018: Add 400 response definition to all routes 2024-07-23 04:42:52 +00:00
return_claims.yaml Bug 30194: (follow-up) Simply OpenAPI Specification 2022-03-29 16:44:31 +02:00
rotas.yaml Bug 37018: Add 400 response definition to all routes 2024-07-23 04:42:52 +00:00
search_filters.yaml Bug 37018: Add 400 response definition to all routes 2024-07-23 04:42:52 +00:00
suggestions.yaml Bug 37018: Add 400 response definition to all routes 2024-07-23 04:42:52 +00:00
tickets.yaml Bug 37018: Add 400 response definition to all routes 2024-07-23 04:42:52 +00:00
transfer_limits.yaml Bug 37018: Add 400 response definition to all routes 2024-07-23 04:42:52 +00:00