<div dir="ltr">Thanks for your quick help with this.  Very much appreciated!</div><div class="gmail_extra"><br clear="all"><div><div dir="ltr"><b><span style="font-size:9pt;color:rgb(215,81,33)">Paul J. Ruderman</span></b><span style="font-size:9pt">   Digital Collections Developer, Digital Collections<span style="color:rgb(0,127,0)">  </span><a value="+12024886132" style="color:rgb(17,85,204)">202.314.7842</a></span><div>

<span style="font-size:9pt"><b>United States Holocaust Memorial Museum</b><span style="color:rgb(0,127,0)"><br></span><span style="color:blue"><a href="http://www.ushmm.org/" style="color:rgb(17,85,204)" target="_blank">www.ushmm.org</a></span></span><div>

<font color="#0000ff"><span style="font-size:12px"><br></span></font><div style="font-size:12px;font-weight:900"><div style="font-size:13px;font-weight:normal"><p dir="ltr" style="line-height:1.15;margin-top:0pt;margin-bottom:0pt">

<span style="vertical-align:baseline;font-size:16px;white-space:pre-wrap;background-color:transparent;font-family:Arial;font-weight:bold"><font color="#000000">NEVER AGAIN: WHAT</font></span><span style="color:rgb(80,0,80);vertical-align:baseline;font-size:16px;white-space:pre-wrap;background-color:transparent;font-family:Arial;font-weight:bold"> </span><span style="color:rgb(204,102,0);font-size:16px;font-family:Arial;background-color:transparent;font-weight:bold;vertical-align:baseline;white-space:pre-wrap">YOU</span><span style="vertical-align:baseline;font-size:16px;white-space:pre-wrap;background-color:transparent;font-family:Arial;font-weight:bold"><font color="#500050"> </font><font color="#000000">DO MATTERS</font></span></p>

<font color="#0000ff"><a href="http://www.ushmm.org/campaign/" style="color:rgb(17,85,204);text-decoration:none" target="_blank"><span style="font-family:Arial;background-color:transparent;text-decoration:underline;vertical-align:baseline;white-space:pre-wrap">Support</span></a><span style="background-color:transparent;vertical-align:baseline;white-space:pre-wrap;font-family:Arial"> </span></font><span style="background-color:transparent;vertical-align:baseline;white-space:pre-wrap;font-family:Arial"><font color="#000000">the Campaign for the United States Holocaust Memorial Museum</font></span></div>

</div></div></div></div></div>
<br><br><div class="gmail_quote">On Wed, May 7, 2014 at 8:27 AM, Chris Fitzpatrick <span dir="ltr"><<a href="mailto:Chris.Fitzpatrick@lyrasis.org" target="_blank">Chris.Fitzpatrick@lyrasis.org</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">




<div dir="ltr">
<div style="font-size:12pt;color:#000000;background-color:#ffffff;font-family:Calibri,Arial,Helvetica,sans-serif">
<p><br>
</p>
<p>Hi Paul,</p>
<p><br>
</p>
<p>Sorry, there a bit of a gap in the documentation there...resources are paginated, since trying to get all the resources out of a big repo would be a very large request.</p>
<p><br>
</p>
<p>Take a look at the response: </p>
<p><br>
</p>
<p>$ curl -H "X-ArchivesSpace-Session: $TOKEN" "<a href="http://localhost:8089/repositories/2/resources" target="_blank">http://localhost:8089/repositories/2/resources</a>"<br>
{"error":{"page":["Parameter required but no value provided"],"id_set":["Parameter required but no value provided"],"all_ids":["Parameter required but no value provided"]}}<br>


</p>
<p><br>
</p>
<p>You need to either pass a page, id_set, or all_ids parameter</p>
<p>like: <br>
</p>
<div>
<p>$ curl -H "X-ArchivesSpace-Session: $TOKEN" "<a href="http://localhost:8089/repositories/2/resources?page=1" target="_blank">http://localhost:8089/repositories/2/resources?page=1</a>"<br>
</p>
<p><br>
</p>
<p>I will update the documentation there...</p>
<p>b,chris. <br><span class="HOEnZb"><font color="#888888">
</font></span></p><span class="HOEnZb"><font color="#888888">
<p><br>
</p>
<div><font>
<div>Chris Fitzpatrick | <a href="mailto:chris.fitzpatrick@lyrasis.org" target="_blank">chris.fitzpatrick@lyrasis.org</a><br>
Developer, ArchivesSpace<br>
<a href="http://archivesspace.org/" target="_blank">http://archivesspace.org/</a><br>
</div>
</font></div>
</font></span></div><span class="HOEnZb"><font color="#888888">
</font></span><div style="color:rgb(40,40,40)"><span class="HOEnZb"><font color="#888888">
<hr style="display:inline-block;width:98%">
<div dir="ltr"><font style="font-size:11pt" color="#000000" face="Calibri, sans-serif"><b>From:</b> <a href="mailto:archivesspace_users_group-bounces@lyralists.lyrasis.org" target="_blank">archivesspace_users_group-bounces@lyralists.lyrasis.org</a> <<a href="mailto:archivesspace_users_group-bounces@lyralists.lyrasis.org" target="_blank">archivesspace_users_group-bounces@lyralists.lyrasis.org</a>> on behalf of Ruderman, Paul
 <<a href="mailto:pruderman@ushmm.org" target="_blank">pruderman@ushmm.org</a>><br>
<b>Sent:</b> Tuesday, May 06, 2014 8:38 PM<br>
<b>To:</b> <a href="mailto:archivesspace_users_group@lyralists.lyrasis.org" target="_blank">archivesspace_users_group@lyralists.lyrasis.org</a><br>
<b>Subject:</b> [Archivesspace_Users_Group] cannot retrieve list of resources in repo</font>
<div> </div>
</div></font></span><div><div class="h5">
<div>
<div dir="ltr">
<div>Hello,</div>
<div><br>
</div>
<div>I am trying to retrieve a list of resources inside my repository using the REST interface.</div>
<div><br>
</div>
<div>I am successfully logging in and using the returned session id to authenticate subsequent requests.  (At least I it seems to be working.)</div>
<div><br>
</div>
<div>I had been previously receiving:</div>
<div><br>
</div>
<div>/repositories/1                       => 200 OK</div>
<div>/repositories/1/resources      => 400 Bad Request</div>
<div>/repositories/1/resources/1     => 403 Forbidden</div>
<div><br>
</div>
<div>Now (after supplying the session id via HTTP header):<br>
</div>
<div><br>
</div>
<div>
<div>/repositories/1                       => 200 OK</div>
<div>/repositories/1/resources      => 400 Bad Request</div>
<div>/repositories/1/resources/1     => 200 OK</div>
<div><br>
</div>
<div>As far as I can tell, this seems to be in accordance with the documentation.  Why am I getting a 400 Bad Request when attempting to get a list of the available resources within the repository?  The documentation says this call only can return 200 OK.</div>


<div><br>
</div>
</div>
<div>Any help would be greatly appreciated.</div>
<br clear="all">
<div>
<div dir="ltr"><b><span style="font-size:9pt;color:rgb(215,81,33)">Paul J. Ruderman</span></b><span style="font-size:9pt">   Digital Collections Developer, Digital Collections<span style="color:rgb(0,127,0)">  </span><a value="+12024886132" style="color:rgb(17,85,204)">202.314.7842</a></span>
<div><span style="font-size:9pt"><b>United States Holocaust Memorial Museum</b><span style="color:rgb(0,127,0)"><br>
</span><span style="color:blue"><a href="http://www.ushmm.org/" style="color:rgb(17,85,204)" target="_blank">www.ushmm.org</a></span></span>
<div><font color="#0000ff"><span style="font-size:12px"><br>
</span></font>
<div style="font-size:12px;font-weight:900">
<div style="font-size:13px;font-weight:normal">
<p dir="ltr" style="line-height:1.15;margin-top:0pt;margin-bottom:0pt"><span style="vertical-align:baseline;font-size:16px;white-space:pre-wrap;background-color:transparent;font-family:Arial;font-weight:bold"><font color="#000000">NEVER AGAIN: WHAT</font></span><span style="color:rgb(80,0,80);vertical-align:baseline;font-size:16px;white-space:pre-wrap;background-color:transparent;font-family:Arial;font-weight:bold">
</span><span style="color:rgb(204,102,0);font-size:16px;font-family:Arial;background-color:transparent;font-weight:bold;vertical-align:baseline;white-space:pre-wrap">YOU</span><span style="vertical-align:baseline;font-size:16px;white-space:pre-wrap;background-color:transparent;font-family:Arial;font-weight:bold"><font color="#500050">
</font><font color="#000000">DO MATTERS</font></span></p>
<font color="#0000ff"><a href="http://www.ushmm.org/campaign/" style="color:rgb(17,85,204);text-decoration:none" target="_blank"><span style="font-family:Arial;background-color:transparent;text-decoration:underline;vertical-align:baseline;white-space:pre-wrap">Support</span></a><span style="background-color:transparent;vertical-align:baseline;white-space:pre-wrap;font-family:Arial">
</span></font><span style="background-color:transparent;vertical-align:baseline;white-space:pre-wrap;font-family:Arial"><font color="#000000">the Campaign for the United States Holocaust Memorial Museum</font></span></div>


</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div></div></div>
</div>
</div>

<br>_______________________________________________<br>
Archivesspace_Users_Group mailing list<br>
<a href="mailto:Archivesspace_Users_Group@lyralists.lyrasis.org">Archivesspace_Users_Group@lyralists.lyrasis.org</a><br>
<a href="http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group" target="_blank">http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group</a><br>
<br></blockquote></div><br></div>