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.yaml | ||
acquisitions_funds.yaml | ||
acquisitions_orders.yaml | ||
acquisitions_vendors.yaml | ||
advancededitormacros.yaml | ||
article_requests.yaml | ||
auth.yaml | ||
authorised_value_categories.yaml | ||
authorised_values.yaml | ||
authorities.yaml | ||
biblios.yaml | ||
biblios_item_groups.yaml | ||
cash_registers.yaml | ||
checkouts.yaml | ||
circulation-rules.yaml | ||
cities.yaml | ||
clubs.yaml | ||
config_smtp_servers.yaml | ||
erm_agreements.yaml | ||
erm_config.yaml | ||
erm_documents.yaml | ||
erm_eholdings_packages.yaml | ||
erm_eholdings_packages_resources.yaml | ||
erm_eholdings_resources.yaml | ||
erm_eholdings_titles.yaml | ||
erm_eholdings_titles_resources.yaml | ||
erm_licenses.yaml | ||
erm_users.yaml | ||
holds.yaml | ||
ill_backends.yaml | ||
ill_requests.yaml | ||
import_batch_profiles.yaml | ||
import_batches.yaml | ||
item_types.yaml | ||
items.yaml | ||
jobs.yaml | ||
libraries.yaml | ||
oauth.yaml | ||
patrons.yaml | ||
patrons_account.yaml | ||
patrons_extended_attributes.yaml | ||
patrons_holds.yaml | ||
patrons_password.yaml | ||
public_oauth.yaml | ||
public_patrons.yaml | ||
quotes.yaml | ||
return_claims.yaml | ||
rotas.yaml | ||
search_filters.yaml | ||
suggestions.yaml | ||
tickets.yaml | ||
transfer_limits.yaml |