02ad2a271d
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
|
||
---|---|---|
.. | ||
acquisitions_baskets.t | ||
acquisitions_funds.t | ||
acquisitions_orders.t | ||
acquisitions_vendors.t | ||
advanced_editor_macros.t | ||
article_requests.t | ||
auth.t | ||
auth_authenticate_api_request.t | ||
auth_basic.t | ||
authorised_values.t | ||
authorities.t | ||
biblios.t | ||
cashups.t | ||
checkouts.t | ||
cities.t | ||
clubs_holds.t | ||
erm_agreements.t | ||
erm_documents.t | ||
erm_eholdings_packages.t | ||
erm_eholdings_resources.t | ||
erm_eholdings_titles.t | ||
erm_licenses.t | ||
erm_users.t | ||
holds.t | ||
idp.t | ||
ill_backends.t | ||
ill_requests.t | ||
import_batch_profiles.t | ||
import_record_matches.t | ||
item_groups.t | ||
item_types.t | ||
items.t | ||
jobs.t | ||
libraries.t | ||
oauth.t | ||
pagination.t | ||
password_validation.t | ||
patrons.t | ||
patrons_accounts.t | ||
patrons_extended_attributes.t | ||
patrons_holds.t | ||
patrons_password.t | ||
patrons_password_expiration.t | ||
query.t | ||
return_claims.t | ||
search_filters.t | ||
smtp_servers.t | ||
stockrotationstage.t | ||
suggestions.t | ||
ticket_updates.t | ||
tickets.t | ||
transfer_limits.t | ||
two_factor_auth.t | ||
unhandled_exceptions.t |