Skip to content

Commit

Permalink
Merged in DSC-712 (pull request DSpace#25)
Browse files Browse the repository at this point in the history
Create a find method to return bitstrems belonging to a bundle filtered by dc.type

Approved-by: Giuseppe Digilio
  • Loading branch information
eskander17 authored and atarix83 committed Sep 30, 2022
2 parents 82acc54 + c4d144e commit bb05ab9
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions bitstreams.md
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,22 @@ Return codes:
* 403 Forbidden - if you are not logged in with sufficient permissions to see the bitstream metadata
* 422 Unprocessable Entity - if the provided uuid cannot be resolved to an item regardless to the item status

### byItemId
**/api/core/bitstreams/search/byItemId?uuid=<:uuid>&name=<:bundle_name>&filterMetadata=<:filterMetadata>&filterMetadataValue=<:filterMetadataValue>**

It returns the bitstream matching the given parameters.

The supported parameters are:
* `uuid`: mandatory, uuid of the item
* `name`: mandatory, name of the bundle
* `filterMetadata`: metadata fields to filter by (repeatable)
* `filterMetadataValue`: values of the metadata to filter by (repeatable)

Return codes:
* 200 OK - if the operation succeed. This will contain the bitstreams
* 400 Bad Request - if the cardinality of the `filterMetadata` and `filterMetadataValue` parameters is not the same
* 422 Unprocessable Entity - if the provided uuid cannot be resolved to an item

## DELETE Method
Delete a bitstream. Works for normal bitstreams in an Item (bundle), and a community or collection logo

Expand Down

0 comments on commit bb05ab9

Please sign in to comment.