forked from rsdoiel/archivesspace-api-workshop
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path61-ArchivesSpace-API-Workshop.html
More file actions
37 lines (30 loc) · 1.22 KB
/
61-ArchivesSpace-API-Workshop.html
File metadata and controls
37 lines (30 loc) · 1.22 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
<!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="60-ArchivesSpace-API-Workshop.html" title="Previous slide">Prev</a>
<a id="next-slide" rel="nav" href="62-ArchivesSpace-API-Workshop.html" title="Next slide">Next</a>
</nav>
<section><h3>Second attempt</h3>
<pre><code class="language-shell"> curl -H "X-ArchivesSpace-Session: $SESSION" \
http://localhost:8089/agents/people?all_ids=true
</code></pre>
<p>This gives an array of integer ids. I haven’t created any “people” yet
so I’m guessing that is the “Admin” account.</p>
<pre><code class="language-json"> [
1
]
</code></pre>
<p>Trying</p>
<pre><code class="language-shell"> curl -H "X-ArchivesSpace-Session: $SESSION" \
http://localhost:8089/agents/people/1
</code></pre>
<p>I get back a big JSON blob like <a href="model-examples/admin-agent.json">model-examples/admin-agent.json</a>.</p>
</section>
<script type="text/javascript" src="js/keyboard-nav.js"></script>
</body>
</html>