<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<style type="text/css" style="display:none"><!--P{margin-top:0;margin-bottom:0;} .ms-cui-menu {background-color:#ffffff;border:1px rgb(171, 171, 171) solid;font-family:'Segoe UI WPC','Segoe UI',Tahoma,'Microsoft Sans Serif',Verdana,sans-serif;font-size:10pt;color:rgb(51, 51, 51);} .ms-cui-menusection-title {display:none;} .ms-cui-ctl {vertical-align:text-top;text-decoration:none;color:rgb(51, 51, 51);} .ms-cui-ctl-on {background-color:rgb(223, 237, 250);opacity: 0.8;} .ms-cui-img-cont-float {display:inline-block;margin-top:2px} .ms-cui-smenu-inner {padding-top:0px;} .ms-owa-paste-option-icon {margin: 0px 6px 0px 6px;vertical-align:middle!important;padding-bottom: 2px;display:inline-block;} .ms-rtePasteFlyout-option:hover {background-color:rgb(223, 237, 250) !important;opacity:1 !important;} .ms-rtePasteFlyout-option {padding:8px 4px 8px 4px;outline:none;} .ms-cui-menusection {float:left; width:85px;height:24px;overflow:hidden}.wf {speak:none; font-weight:normal; font-variant:normal; text-transform:none; -webkit-font-smoothing:antialiased; vertical-align:middle; display:inline-block;}.wf-family-owa {font-family:'o365Icons'}@font-face {  font-family:'o365IconsIE8';  src:url('https://r4.res.outlook.com/owa/prem/15.0.934.17/resources/styles/office365icons.ie8.eot?#iefix') format('embedded-opentype'),         url('https://r4.res.outlook.com/owa/prem/15.0.934.17/resources/styles/office365icons.ie8.woff') format('woff'),         url('https://r4.res.outlook.com/owa/prem/15.0.934.17/resources/styles/office365icons.ie8.ttf') format('truetype');  font-weight:normal;  font-style:normal;}@font-face {  font-family:'o365IconsMouse';  src:url('https://r4.res.outlook.com/owa/prem/15.0.934.17/resources/styles/office365icons.mouse.eot?#iefix') format('embedded-opentype'),         url('https://r4.res.outlook.com/owa/prem/15.0.934.17/resources/styles/office365icons.mouse.woff') format('woff'),         url('https://r4.res.outlook.com/owa/prem/15.0.934.17/resources/styles/office365icons.mouse.ttf') format('truetype');  font-weight:normal;  font-style:normal;}.wf-family-owa {font-family:'o365IconsMouse'}.ie8 .wf-family-owa {font-family:'o365IconsIE8'}.ie8 .wf-owa-play-large:before {content:'\e254';}.notIE8 .wf-owa-play-large:before {content:'\e054';}.ie8 .wf-owa-play-large {color:#FFFFFF/*$WFWhiteColor*/;}.notIE8 .wf-owa-play-large {border-color:#FFFFFF/*$WFWhiteColor*/; width:1.4em; height:1.4em; border-width:.1em; border-style:solid; border-radius:.8em; text-align:center; box-sizing:border-box; -moz-box-sizing:border-box; padding:0.1em; color:#FFFFFF/*$WFWhiteColor*/;}.ie8 .wf-size-play-large {width:40px; height:40px; font-size:30px}.notIE8 .wf-size-play-large {width:40px; height:40px; font-size:30px}.notIE8 .wf-owa-triangle-down-small:before {content:'\e052';}.ie8 .wf-owa-triangle-down-small:before { content:'\e052';}.ie8 .wf-owa-triangle-down-small {color:#666666/*$WFGreyColor*/;}.wf-size-x20 {font-size: 20px!important;}--></style>
</head>
<body dir="ltr">
<div id="OWAFontStyleDivID" 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" "http://localhost:8089/repositories/2/resources"<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" "http://localhost:8089/repositories/2/resources?page=1"<br>
</p>
<p><br>
</p>
<p>I will update the documentation there...</p>
<p>b,chris. <br>
</p>
<p><br>
</p>
<div class="BodyFragment"><font size="2">
<div class="PlainText">Chris Fitzpatrick | chris.fitzpatrick@lyrasis.org<br>
Developer, ArchivesSpace<br>
http://archivesspace.org/<br>
</div>
</font></div>
</div>
<div style="color: rgb(40, 40, 40);">
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font style="font-size:11pt" color="#000000" face="Calibri, sans-serif"><b>From:</b> archivesspace_users_group-bounces@lyralists.lyrasis.org <archivesspace_users_group-bounces@lyralists.lyrasis.org> on behalf of Ruderman, Paul
 <pruderman@ushmm.org><br>
<b>Sent:</b> Tuesday, May 06, 2014 8:38 PM<br>
<b>To:</b> archivesspace_users_group@lyralists.lyrasis.org<br>
<b>Subject:</b> [Archivesspace_Users_Group] cannot retrieve list of resources in repo</font>
<div> </div>
</div>
<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/" target="_blank" style="color:rgb(17,85,204)">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/" target="_blank" style="color:rgb(17,85,204); text-decoration:none"><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>
</body>
</html>