<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:Helvetica;
panose-1:0 0 0 0 0 0 0 0 0 0;}
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
span.EmailStyle19
{mso-style-type:personal-reply;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style>
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal">Hi Wendy,<br>
<br>
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):<br>
<br>
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}]}}<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Best,<br>
<br>
Lora Woodford<o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Helvetica;color:#505050;background:white"><o:p> </o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:12.0pt;color:black">From: </span></b><span style="font-size:12.0pt;color:black"><archivesspace_users_group-bounces@lyralists.lyrasis.org> on behalf of "Hagenmaier, Wendy L" <wendy.hagenmaier@library.gatech.edu><br>
<b>Reply-To: </b>Archivesspace Users Group <archivesspace_users_group@lyralists.lyrasis.org><br>
<b>Date: </b>Friday, April 10, 2020 at 2:44 PM<br>
<b>To: </b>Archivesspace Users Group <archivesspace_users_group@lyralists.lyrasis.org><br>
<b>Subject: </b>[Archivesspace_Users_Group] API question about digital objects and components<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt;color:black">Hi ASpace community,<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt;color:black"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt;color:black">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.<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt;color:black"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt;color:black">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)?<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt;color:black"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt;color:black">Thank you,<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt;color:black">Wendy<o:p></o:p></span></p>
</div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt;color:black"><o:p> </o:p></span></p>
</div>
<div id="Signature">
<div id="divtagdefaultwrapper">
<div id="divtagdefaultwrapper">
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt;color:black">Wendy Hagenmaier<br>
Digital Collections Archivist<br>
Archives & Records Management<br>
Georgia Institute of Technology Library<br>
Atlanta, GA 30332-0900<br>
wendy.hagenmaier@library.gatech.edu<br>
(404) 894-4579</span><span style="font-size:12.0pt;color:black"><o:p></o:p></span></p>
</div>
<div id="divtagdefaultwrapper">
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt;color:black">Pronouns: she/her/hers<br>
<a href="http://library.gatech.edu/archives/" title="http://library.gatech.edu/archives/">library.gatech.edu/archives</a><a href="http://library.gatech.edu/retrotech"><br>
</a></span><span style="font-size:12.0pt;color:black"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt;color:black"><a href="http://library.gatech.edu/retrotech">library.gatech.edu/retrotech</a></span><span style="font-size:12.0pt;color:black"><o:p></o:p></span></p>
</div>
</div>
</div>
</div>
</div>
</body>
</html>