Add API call to fetch all holdings and items associated with one bib record (MMSid)
It would be great to have a single API call to fetch all holdings and items related to an MMS id, which would return all this data in one big XML file. The way it works now, if you want to get, say, all of the barcodes for all items associated with a single MMS id, you have to do an api call for every holding record. So if you have a bib that has one item in 6 different locations, you have to do 6 API calls.
-
Thank you Fred for your comment.
Dear Sean:
It is possible to retrieve all holdings records and all associated items if all holdings records using the following API syntax:
(in this case for bibliographic record MMSID 994387890000121 and API key 248365613
https://api-na.hosted.exlibrisgroup.com/almaws/v1/bibs/994387890000121/holdings/ALL/items?apikey=248365613Thus for example if this bibliographic record has two holdings records, each in a different location (852 $$c) and one holdings record has 1 item and the other holdings record has 2 items then with the above API call both holdings records and all three items will be retrieved.
-
Fred Young commented
Not sure if it meets your needs but you can get the items for all holdings attached to a bib with the current API by specifying "ALL" as the holding id.
GET /almaws/v1/bibs/{mms_id}/holdings/ALL/items