As in issue #10 and PR #9, but for deleting an access method rather than an object. Note that at least one access method always has to be available for a given object.
Proposed solution
Add an endpoint DELETE /objects/{object_id}/access/{access_id} to the custom DRS-Filer specification.
Implement the controller for the new endpoint
Ensure that the last available access method cannot be deleted (issue a 400/BadRequest response if attempted to)
Description
As in issue #10 and PR #9, but for deleting an access method rather than an object. Note that at least one access method always has to be available for a given object.
Proposed solution
DELETE /objects/{object_id}/access/{access_id}
to the custom DRS-Filer specification.400/BadRequest
response if attempted to)Compare the
DELETE /tools/{id}/versions/{version_id}
controller for an example on how to make sure that the last list item (here: a tool version) cannot be deleted.