Get All Items in Specific Collection with API

59 views
Skip to first unread message

badak afrika

unread,
Feb 24, 2023, 8:59:04 AM2/24/23
to DSpace Technical Support
I'm trying to get all the items in a collection using the endpoint of the Rest-API on Dspace 7. I've looked at the Rest-API documentation on github but I can't find it. I think in Dspace 6 a user can get all the items in a collection using the /collections/{collectionId}/items endpoint, then for dspace 7 what endpoint can I use? 
Thank you in advance.

Tim Donohue

unread,
Feb 24, 2023, 5:08:05 PM2/24/23
to DSpace Technical Support
Hi,

The REST API documentation is available at https://github.com/DSpace/RestContract

To find all the Items in a Collection, you'd use the search endpoint, and pass in the UUID of the collection as the "scope":


In general, if you are trying to find which endpoint to use in the REST API, you can discover it simply by using the User Interface.  The User Interface uses the REST API at all times... so if you click a button or visit a page in the User Interface, you can see which REST API endpoints it uses to gather that data.  In your browser, you'd open the DevTools and take a look at the "Network" tab, where you can see every call the User Interface makes to the REST API.

Tim


Reply all
Reply to author
Forward
0 new messages