[Archivesspace_Users_Group] Help with REST API

KNOWLES Claire Claire.Knowles at ed.ac.uk
Tue May 6 12:40:49 EDT 2014


Hi

It tells you how to store the session id for reuse over the command line in the Archives Space Developer You Tube videos: https://www.youtube.com/playlist?list=PLJFitFaE9AY_DDlhl3Kq_vFeX27F1yt6I.  They are really useful to watch if you are using the API.

Claire Knowles
University of Edinburgh



From: <Levy>, Michael <mlevy at ushmm.org<mailto:mlevy at ushmm.org>>
Reply-To: Archivesspace Users Group <archivesspace_users_group at lyralists.lyrasis.org<mailto:archivesspace_users_group at lyralists.lyrasis.org>>
Date: Tuesday, 6 May 2014 16:48
To: Archivesspace Users Group <archivesspace_users_group at lyralists.lyrasis.org<mailto:archivesspace_users_group at lyralists.lyrasis.org>>
Subject: Re: [Archivesspace_Users_Group] Help with REST API

PS, using AS version 1.0.7.1



On Tue, May 6, 2014 at 11:46 AM, Levy, Michael <mlevy at ushmm.org<mailto:mlevy at ushmm.org>> wrote:
Hello,

We're attempting to retrieve the data for a resource in using the REST API.

The request is:
GET /repositories/1/resources/1

We're receiving receiving a 403 Forbidden HTTP response.  I assume I must authenticate.

We're able to "log in" using:
POST /users/admin/login (supplying Username and Password as parameters.)

The log in appears to work.  Among other values, we're receiving back a "session" string.

Maybe the session string is required on subsequent requests to show authentication, but are unsure of the correct way to pass it.

Is this documented; are there examples we're not finding yet?

TIA

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lyralists.lyrasis.org/pipermail/archivesspace_users_group/attachments/20140506/edea96c4/attachment.html>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: not available
URL: <http://lyralists.lyrasis.org/pipermail/archivesspace_users_group/attachments/20140506/edea96c4/attachment.ksh>


More information about the Archivesspace_Users_Group mailing list