Koha/t/db_dependent/api/v1
Andreas Jonsson 02ad2a271d Bug 34008: Add REST endpoint for list of itemtypes
Test plan:
* Enable the system preference RESTBasicAuth
* curl -s --request GET http://kohadev-intra.mydnsname.org:8081/api/v1/itemtypes
  should give 401 Unauthorized
* curl -s -u koha:koha --request GET http://kohadev-intra.mydnsname.org:8081/api/v1/itemtypes
  should produce JSON-list of itemtypes
* curl -s -u koha:koha --header "x-koha-embed: translated_descriptions" --request GET http://kohadev-intra.mydnsname.org:8081/api/v1/itemtypes
  should include the field translated_descriptions containing the translated descriptions, if any

Signed-off-by: David Nind <david@davidnind.com>

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
[EDIT] perltidy -b t/db_dependent/api/v1/itemtypes.t # Resolve bad score of 44
[EDIT] chmod 755 t/db_dependent/api/v1/itemtypes.t
[EDIT] perltidy -b Koha/REST/V1/ItemTypes.pm
Lesson: Please run qa tools yourself and adjust accordingly?
Edit (tcohen): I restored the item_type_translated_description.yaml file
as the entire API was broken because of the lack of it.
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit 82bdf93ab7)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
2023-11-07 22:41:49 -10:00
..
acquisitions_baskets.t
acquisitions_funds.t
acquisitions_orders.t
acquisitions_vendors.t Bug 33103: Add REST API tests 2023-04-20 15:48:39 -03:00
advanced_editor_macros.t
article_requests.t
auth.t
auth_authenticate_api_request.t
auth_basic.t
authorised_values.t Bug 32997: (QA follow-up) values => authorised_values 2023-03-02 12:00:17 -03:00
authorities.t Bug 33996: Add missing authority objects mapping 2023-07-17 15:45:59 +01:00
biblios.t RMAINT: Remove x-koha-query usage in biblios.t 2023-07-19 15:59:17 +01:00
cashups.t
checkouts.t Bug 32801: Add tests 2023-07-18 11:05:42 +01:00
cities.t
clubs_holds.t
erm_agreements.t Bug 32353: Fix erm_agreements.t 2023-02-23 07:43:00 -03:00
erm_documents.t
erm_eholdings_packages.t Bug 32923: Some fixes in ERM specs 2023-02-27 11:07:19 -03:00
erm_eholdings_resources.t
erm_eholdings_titles.t Bug 34789: Update unit tests 2023-09-18 10:27:46 -10:00
erm_licenses.t
erm_users.t
holds.t Bug 35053: Regression tests 2023-10-25 11:46:43 -10:00
idp.t
ill_backends.t Bug 22440: Move backend statuses api endpoint 2023-05-05 09:13:43 -03:00
ill_requests.t Bug 33834: Fix random failure on api/v1/ill_requests.t 2023-05-26 09:50:04 -03:00
import_batch_profiles.t
import_record_matches.t
item_groups.t
item_types.t Bug 34008: Add REST endpoint for list of itemtypes 2023-11-07 22:41:49 -10:00
items.t Bug 35167: Regression tests 2023-11-02 10:31:49 -10:00
jobs.t Bug 33852: Add one more test 2023-07-12 08:10:01 +01:00
libraries.t
oauth.t
pagination.t
password_validation.t Bug 34313: Unit tests 2023-08-29 21:09:30 -10:00
patrons.t Bug 32426: (follow-up) Fix api/v1/patrons.t 2023-03-28 14:54:04 +02:00
patrons_accounts.t Bug 21043: Handle exceptions and switch to debit response 2023-05-05 12:13:52 -03:00
patrons_extended_attributes.t Bug 31381: Add tests 2022-11-30 15:58:13 -03:00
patrons_holds.t Bug 33573: Unit tests 2023-07-17 15:56:46 +01:00
patrons_password.t
patrons_password_expiration.t
query.t Bug 32713: Unit tests 2023-03-16 16:12:26 -03:00
return_claims.t
search_filters.t
smtp_servers.t Bug 34243: Fix copy/pasted city references in api tests 2023-07-18 12:39:30 +01:00
stockrotationstage.t
suggestions.t Bug 32942: (QA follow-up) Fix regression test 2023-09-20 20:01:18 -10:00
ticket_updates.t Bug 31028: (follow-up) Fix executable bit 2023-03-07 14:54:29 -03:00
tickets.t Bug 31028: Add API's for tickets 2023-03-06 11:23:17 -03:00
transfer_limits.t
two_factor_auth.t
unhandled_exceptions.t