forked from rsdoiel/archivesspace-api-workshop
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path41-ArchivesSpace-API-Workshop.html
More file actions
40 lines (32 loc) · 1.25 KB
/
Copy path41-ArchivesSpace-API-Workshop.html
File metadata and controls
40 lines (32 loc) · 1.25 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<!DOCTYPE html>
<html>
<head>
<link href="css/slides.css" rel="stylesheet" />
</head>
<body>
<nav>
<a id="start-slide" rel="nav" href="00-ArchivesSpace-API-Workshop.html" title="Return to start of presentation">Start</a>
<a id="prev-slide" rel="nav" href="40-ArchivesSpace-API-Workshop.html" title="Previous slide">Prev</a>
<a id="next-slide" rel="nav" href="42-ArchivesSpace-API-Workshop.html" title="Next slide">Next</a>
</nav>
<section><h1>4. Repositories</h1>
<h2>ArchivesSpace API Docs</h2>
<p>The documentation about the API will help us know what to ask.</p>
<ul>
<li>Change to your browser tab with the docs</li>
<li>Using your web browser’s find function search for
<ul>
<li>“Get a list of Repositories”</li>
</ul></li>
</ul>
<p>The <strong>curl</strong> statement suggested looks like</p>
<pre><code class="language-shell"> curl -H "X-ArchivesSpace-Session: $SESSION" \
'http://localhost:8089/repositories'
</code></pre>
<p>Notice there is no “-d” listed. We only need to know the
API URL and then add “/repositories” to it. We still need
to send along our auth token in the header as normal.</p>
</section>
<script type="text/javascript" src="js/keyboard-nav.js"></script>
</body>
</html>