Koha/t/db_dependent
Tomas Cohen Arazi ebf7b6471f
Bug 31797: Add DELETE /items/:item_id endpoint
This patch adds the mentioned endpoint. The controller relies on
Koha::Item->safe_to_delete for checks and uses `safe_delete` as
additem.pl does.

The required permissions are edit_catalogue.

To test:
1. Apply this patch
2. Run:
   $ kshell
  k$ prove t/db_dependent/api/v1/items.t
=> SUCCESS: Tests pass!
3. Play with item deletion using a REST tool like Postman
=> SUCCESS: All works as expected
4. Sign off :-D

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
2023-01-30 12:20:44 -03:00
..
Acquisition
api/v1 Bug 31797: Add DELETE /items/:item_id endpoint 2023-01-30 12:20:44 -03:00
Auth
AuthoritiesMarc
Authority Bug 19693: Add test sub to Merge.t 2022-10-24 17:20:25 -03:00
Biblio
Budgets
Circulation Bug 32351: Fix t/db_dependent/Circulation/NoIssuesChargeGuarantees.t 2022-11-30 15:58:20 -03:00
CourseReserves Bug 32351: Fix CourseItems.t 2022-11-30 15:58:18 -03:00
Creators
cronjobs
data
Exporter
Holds
Illrequest
Items Bug 31196: Remove 'default_value_for_mod_marc-' clear_from_cache calls 2022-10-25 11:16:57 -03:00
Koha Bug 16522: (follow-up) If no 773$w, try to return host record 2023-01-30 12:10:12 -03:00
Labels
LDAP
Letters Bug 32351: Fix TemplateToolkit.t 2022-11-30 15:58:18 -03:00
Members
misc/translator
OAI
Patron
Record
Reports
Reserves Bug 24860: (QA follow-up) Add unit tests to cover Koha::Holds::forced_hold_level 2022-11-04 19:40:14 -03:00
Search
selenium Bug 32376: Remove creation of selenium_failure_2.png 2023-01-27 15:12:36 -03:00
Serials
SIP
Template/Plugin Bug 31421: Add tests 2022-10-27 09:42:57 -03:00
Utils
www Bug 31992: Fix t::lib::Mocks::Zebra 2022-10-28 16:30:05 -03:00
00-strict.t
01-test_dbic.t
Accounts.t
Acquisition.t Bug 32351: Fix Acquisition.t 2022-11-30 15:58:15 -03:00
Amazon.t
ArticleRequests.t
AudioAlerts.t
Auth.t Bug 32622: Fix Auth.t on D10 2023-01-13 13:19:09 +00:00
Auth_with_cas.t
Auth_with_ldap.t
AuthorisedValues.t
AuthoritiesMarc.t
AuthoritiesMarc_GetTagsLabels.t
AuthUtils.t
BackgroundJob.t
Barcodes.t
Barcodes_ValueBuilder.t
Biblio.t
Biblio_holdsqueue.t
Breeding.t
Budgets.t Bug 32351: Fix Budgets.t 2022-11-30 15:58:15 -03:00
Cache.t
Calendar.t
Charset.t
check_kohastructure.t
check_sysprefs.t
Circulation.t Bug 22042: Block all return actions when BlockReturnOfWithdrawn items is set to block 2023-01-18 15:44:23 +00:00
Circulation_holdsqueue.t
Clubs.t
Context.t Bug 31870: Add license, remove unused modules 2022-10-24 11:26:10 -03:00
Contract.t
CourseReserves.t
db_structure.t
DecreaseLoanHighHolds.t Bug 29102: Do not count patron's own hold against limits 2022-11-04 19:20:24 -03:00
Filter_MARC_ViewPolicy.t
Fines.t
FrameworkPlugin.t
Heading.t
Heading_MARC21.t
Hold.t
Holds.t Bug 24860: (QA follow-up) Add unit tests to cover changes to Reserves.pm 2022-11-04 19:39:58 -03:00
HoldsQueue.t Bug 24860: (QA follow-up) Add unit tests to cover changes to HoldsQueue.pm 2022-11-04 19:39:58 -03:00
Holidays.t
Illcomments.t
Illrequestattributes.t
Illrequests.t Bug 32351: Fix Illrequests.t 2022-11-30 15:58:16 -03:00
ILSDI_Services.t
ImportBatch.t
ImportExportFramework.t
Installer.t
Items.t Bug 32456: Unit tests 2022-12-27 10:42:19 -03:00
Koha.t
Koha_Database.t
Koha_Elasticsearch.t
Koha_ExternalContent_OverDrive.t
Koha_ExternalContent_RecordedBooks.t
Koha_MetadataRecord_Authority.t
Koha_Misc_Files.t
Languages.t
Letters.t
LibraryGroups.t
Linker_Default.t
Linker_FirstMatch.t
Log.t
MarcModificationTemplates.t Bug 31644: (QA follow-up) Add two missing shebang lines 2022-10-24 11:53:19 -03:00
Members.t Bug 32351: Fix Members.t 2022-11-30 15:58:16 -03:00
Message.t
MungeMarcPrice.t
Overdues.t
Passwordrecovery.t Bug 31739: Password recovery from staff fails if previous expired reset-entry exists. 2022-10-24 14:12:16 -03:00
Patroncards.t
PatronLists.t
Patrons.t
Record.t
RecordProcessor_EmbedSeeFromHeadings.t
Reports.t
Reserves.t Bug 32351: Fix Reserves.t 2022-11-30 15:58:17 -03:00
rollingloans.t
RotatingCollections.t
Search.t Bug 20596: Add unit test for multiple values in authority search 2022-12-15 09:52:16 -03:00
Serials.t
Serials_2.t
Service.t
ShelfBrowser.t
Sitemapper.t
Stats.t
StockRotationItems.t
StockRotationRotas.t
StockRotationStages.t
SuggestionEngine_ExplodedTerms.t
Suggestions.t
sysprefs.t
TablesSettings.t
Tags.t Bug 31517: Remove unused get_tag function 2022-11-04 19:30:56 -03:00
Templates.t
TestBuilder.t Bug 32350: Add subtest for bad columns 2022-11-30 12:40:33 -03:00
Upload.t
UsageStats.t
Virtualshelves.t
XISBN.t
XSLT.t Bug 32268: Prevent XSLT.t to fail randomly 2022-11-18 12:04:28 -03:00
yaml.t
zebra_config.pl