Hi Wendy, Something like this should get you what you’re after (this should return all digital object components linked to the digital_objects/1 in repository 2):
http://your.base.api.url/search?page=1&filter={"query": {"jsonmodel_type": "boolean_query","op": "AND","subqueries": [{"field": "primary_type","value": "digital_object_component","jsonmodel_type": "field_query","negated": false,"literal": true}, {"field": "digital_object","value": "/repositories/2/digital_objects/1","jsonmodel_type": "field_query","negated": false,"literal": true}]}} Best, Lora Woodford From: <[email protected]> on behalf of "Hagenmaier, Wendy L" <[email protected]> Reply-To: Archivesspace Users Group <[email protected]> Date: Friday, April 10, 2020 at 2:44 PM To: Archivesspace Users Group <[email protected]> Subject: [Archivesspace_Users_Group] API question about digital objects and components Hi ASpace community, We're working on a project using the API and have a question about digital object components. We've looked through the API documentation on GitHub and can't quite find what we're after, but maybe we've missed it. Can anyone help us with a method for getting digital object component fields using the parent digital object ID (and without knowing the digital object component ID)? Thank you, Wendy Wendy Hagenmaier Digital Collections Archivist Archives & Records Management Georgia Institute of Technology Library Atlanta, GA 30332-0900 [email protected] (404) 894-4579 Pronouns: she/her/hers library.gatech.edu/archives<http://library.gatech.edu/archives/> <http://library.gatech.edu/retrotech> library.gatech.edu/retrotech<http://library.gatech.edu/retrotech>
_______________________________________________ Archivesspace_Users_Group mailing list [email protected] http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group
