DSpace 7 : Items API Endpoint

169 views
Skip to first unread message

Nada Aboueata

unread,
Sep 4, 2023, 7:26:12 AM9/4/23
to DSpace Technical Support
Dear DSpace community, 

I want to use DSpace 7 rest api to retrieve all items under a specific collection. 

I checked all items endpoints  in the following link ( RestContract/items.md at main · DSpace/RestContract · GitHub  ). However, I couldn't find any URI to filter archived items based on a specific owning collection. 

Any help. 


Matti Yrjölä

unread,
Sep 5, 2023, 8:54:18 AM9/5/23
to DSpace Technical Support

Hi,

You can use the scope -parameter to specify the community/collection with the discovery search API.

https://github.com/DSpace/RestContract/blob/main/search-endpoint.md
/api/discover/search/objects
scope: UUID of a specific DSpace container (site, community or collection) to which the search has to be limited,

For example
https://demo.dspace.org/server/api/discover/search/objects?scope=b7bf809e-b8ea-41bf-b16a-38d78785f557

Best regards,
Matti
Reply all
Reply to author
Forward
0 new messages