Skip to content

Commit

Permalink
Merged in DSC-845 (pull request DSpace#30)
Browse files Browse the repository at this point in the history
[DSC-845] Search method showableByItem definition

Approved-by: Giuseppe Digilio
  • Loading branch information
vins01-4science authored and atarix83 committed Dec 29, 2022
2 parents bb05ab9 + 1ab9f1e commit 4d5535a
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions bitstreams.md
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,25 @@ Return codes:
* 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

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

It returns **NOT** _Hidden_* bitstreams matching the given parameters.

> `*`_Hidden bitstream_: A bitstream with the metadata `bitstream.hide` valued with `true/yes`
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, or one of the mandatory parameters is not valued
* 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 4d5535a

Please sign in to comment.