Skip to content

Commit

Permalink
115434: Added documentation for the /api/core/relationships/search/by…
Browse files Browse the repository at this point in the history
…Label endpoint's new relatedEntityType parameter
  • Loading branch information
alexandrevryghem committed Jun 2, 2024
1 parent b3d5eec commit 197bfea
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions relationships.md
Original file line number Diff line number Diff line change
Expand Up @@ -370,6 +370,10 @@ This can be further filtered to a single DSO using
https://demo.dspace.org/#https://demo.dspace.org/server/api/core/relationships/search/byLabel?label=isPersonOfOrgUnit&dso=f2235aa6-6fe7-4174-a690-598b72dd8e44 which contains all relationships created using the relationship type isPersonOfOrgUnit for which one item is f2235aa6-6fe7-4174-a690-598b72dd8e44
The dso parameter is optional

When applying the dso parameter you can also filter out the results that do not have the given related entity type on the other side of the relationship
https://demo.dspace.org/server/#/server/api/core/relationships/search/byLabel?label=isAuthorOfPublication&dso=dc051683-17c5-40c1-971f-fa229d2fffcb&relatedEntityType=Person which contains all relationships created using the relationship type `isAuthorOfPublication` for which one item is `dc051683-17c5-40c1-971f-fa229d2fffcb` and the other item has entity type `Person`.
The `relatedEntityType` parameter is optional

## Deleting a relationship

**DELETE /api/core/relationships/<:id>**
Expand Down

0 comments on commit 197bfea

Please sign in to comment.