Koha-clms/api/v1/swagger/paths
Tomas Cohen Arazi e573b1347f Bug 34387: Improve API docs naming consistency
This patch aims to make our API docs be more consistent.
It addresses two particular things:

* There's no consistency on the `tags` used across the spec, and not all
  of them are correctly described and have an `x-displayName` entry.
  More on this later.
* This are not sorted either by some for of grouping, or at least
  alphabetically.

For the former, I did my best trying to harmonize (specially on the ERM
front) with what we do in the rest of the use cases.

For the latter, I opted for sorting everything alphabetically, as a
first step. Hoping someone else could work on grouping things.

To test (ON YOUR HOST MACHINE):
1. On current master run:
   $ cd api/v1/swagger
   $ docker run --rm -v $(pwd):/api --workdir /api redocly/cli \
           build-docs swagger.yaml --output index.html
=> SUCCESS: It doesn't break or anything
2. Open your browser, open the generated api/v1/swagger/index.html file
=> FAIL: The left column has
         * several lower case entries
         * not everything is correctly grouped (ERM? packages?)
         * Things are not sorted. There's an attempt but looks messy
3. Apply this patch
4. Repeat 1 and 2
=> SUCCESS: Things look much better!
5. Sign off :-D

CAVEAT1: I'm not sure why, but import_batches doesn't work. Ideas are
welcome, I'll keep looking for fixes.
CAVEAT2: I don't have enough eHoldings background to weight in, but I
feel like 'ERM eHoldings packages' could just be 'ERM packages'.
Follw-up patches with better ideas are welcome.
CAVEAT3: Patron credits, debits, balance... They could all go in to
'Patrons accounts' or similar. Open to ideas.
CAVEAT4: Old redocly didn't support mapping an endpoint to more than one
target section. Something to explore if we want (for example) to reach
'credits' through the 'Patrons' section but also from 'Accounting'.

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Pedro Amorim <pedro.amorim@ptfs-europe.com>
2023-08-18 13:14:11 +00:00
..
acquisitions_baskets.yaml Bug 30536: (QA follow-up) POD + Spec Consistency 2022-05-03 11:19:51 -10:00
acquisitions_funds.yaml Bug 30536: Update spec files 2022-05-03 11:19:51 -10:00
acquisitions_orders.yaml Bug 33993: Add order_receive to GET orders endpoints 2023-07-18 10:37:36 +00:00
acquisitions_vendors.yaml Bug 30394: Add x-koha-request-id support on API routes 2022-04-04 16:23:46 +02:00
advancededitormacros.yaml Bug 30394: Add x-koha-request-id support on API routes 2022-04-04 16:23:46 +02:00
article_requests.yaml Bug 30194: (follow-up) Simply OpenAPI Specification 2022-03-29 16:44:31 +02:00
auth.yaml Bug 33859: Use the phrase 'Identity providers' instead of 'Authentication providers' 2023-06-12 10:14:43 +00:00
authorised_value_categories.yaml Bug 32997: Add REST API endpoint to list authorised values for multiple given categories 2023-03-03 12:10:59 +00:00
authorised_values.yaml Bug 32997: (QA follow-up) values => authorised_values 2023-03-03 12:11:41 +00:00
biblios.yaml Bug 34211: Add +strings for GET /api/v1/biblios/:biblio_id/items 2023-07-18 14:23:21 +00:00
biblios_item_groups.yaml Bug 32923: Fix new occurrences of x-koha-embed at top level 2023-02-28 17:43:06 +00:00
cash_registers.yaml Bug 30536: Update spec files 2022-05-03 11:19:51 -10:00
checkouts.yaml Bug 32923: Fix new occurrences of x-koha-embed at top level 2023-02-28 17:43:06 +00:00
circulation-rules.yaml Bug 30194: (follow-up) Simply OpenAPI Specification 2022-03-29 16:44:31 +02:00
cities.yaml Bug 30394: Add x-koha-request-id support on API routes 2022-04-04 16:23:46 +02:00
clubs.yaml Bug 30194: (follow-up) Simply OpenAPI Specification 2022-03-29 16:44:31 +02:00
config_smtp_servers.yaml Bug 30394: Add x-koha-request-id support on API routes 2022-04-04 16:23:46 +02:00
erm_agreements.yaml Bug 34387: Improve API docs naming consistency 2023-08-18 13:14:11 +00:00
erm_documents.yaml Bug 34387: Improve API docs naming consistency 2023-08-18 13:14:11 +00:00
erm_eholdings_packages.yaml Bug 34387: Improve API docs naming consistency 2023-08-18 13:14:11 +00:00
erm_eholdings_packages_resources.yaml Bug 34387: Improve API docs naming consistency 2023-08-18 13:14:11 +00:00
erm_eholdings_resources.yaml Bug 34387: Improve API docs naming consistency 2023-08-18 13:14:11 +00:00
erm_eholdings_titles.yaml Bug 34387: Improve API docs naming consistency 2023-08-18 13:14:11 +00:00
erm_eholdings_titles_resources.yaml Bug 34387: Improve API docs naming consistency 2023-08-18 13:14:11 +00:00
erm_licenses.yaml Bug 34387: Improve API docs naming consistency 2023-08-18 13:14:11 +00:00
erm_users.yaml Bug 34387: Improve API docs naming consistency 2023-08-18 13:14:11 +00:00
holds.yaml Bug 24860: Implement reserves.item_group_id 2022-11-04 19:39:55 -03:00
ill_backends.yaml Bug 22440: Move backend statuses api endpoint 2023-05-12 08:16:30 +01:00
ill_requests.yaml Bug 22440: ILL API changes 2023-05-12 08:16:29 +01:00
import_batch_profiles.yaml Bug 30394: Add x-koha-request-id support on API routes 2022-04-04 16:23:46 +02:00
import_batches.yaml Bug 30855: Rename /import => /import_batches 2022-06-02 13:42:28 -03:00
items.yaml Bug 33817: (follow-up) Fix spec and messages 2023-07-18 15:20:52 +00:00
jobs.yaml Bug 30982: (QA follow-up) Spelling 2022-09-23 08:57:50 -03:00
libraries.yaml Bug 29144: Copy and remove branches.opac_info (dbrev) 2022-09-16 09:55:20 -03:00
oauth.yaml Bug 32354: Accept session_state param given by OAuth IdP 2022-12-08 11:08:27 +00:00
patrons.yaml Bug 30578: Remove circ/ysearch.pl in favor of the /patrons REST API route 2022-07-18 11:01:34 -03:00
patrons_account.yaml Bug 30194: (follow-up) Simply OpenAPI Specification 2022-03-29 16:44:31 +02:00
patrons_extended_attributes.yaml Bug 30394: Add x-koha-request-id support on API routes 2022-04-04 16:23:46 +02:00
patrons_holds.yaml Bug 30394: Add x-koha-request-id support on API routes 2022-04-04 16:23:46 +02: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 32354: Accept session_state param given by OAuth IdP 2022-12-08 11:08:27 +00:00
public_patrons.yaml Bug 33573: Add public endpoint for cancelling holds 2023-07-18 14:44:56 +00:00
quotes.yaml Bug 30394: Add x-koha-request-id support on API routes 2022-04-04 16:23:46 +02:00
return_claims.yaml Bug 30194: (follow-up) Simply OpenAPI Specification 2022-03-29 16:44:31 +02:00
rotas.yaml Bug 30194: (follow-up) Simply OpenAPI Specification 2022-03-29 16:44:31 +02:00
search_filters.yaml Bug 34387: Improve API docs naming consistency 2023-08-18 13:14:11 +00:00
suggestions.yaml Bug 30663: Add x-koha-override options to /suggestions 2022-05-05 10:26:41 -03:00
transfer_limits.yaml Bug 30394: Add x-koha-request-id support on API routes 2022-04-04 16:23:46 +02:00