mirror of
https://github.com/alanorth/cgspace-notes.git
synced 2025-01-27 05:49:12 +01:00
Add notes for 2020-10-08
This commit is contained in:
@ -23,7 +23,7 @@ During the FlywayDB migration I got an error:
|
||||
<meta property="og:type" content="article" />
|
||||
<meta property="og:url" content="https://alanorth.github.io/cgspace-notes/2020-10/" />
|
||||
<meta property="article:published_time" content="2020-10-06T16:55:54+03:00" />
|
||||
<meta property="article:modified_time" content="2020-10-07T14:44:39+03:00" />
|
||||
<meta property="article:modified_time" content="2020-10-08T11:15:49+03:00" />
|
||||
|
||||
<meta name="twitter:card" content="summary"/>
|
||||
<meta name="twitter:title" content="October, 2020"/>
|
||||
@ -51,9 +51,9 @@ During the FlywayDB migration I got an error:
|
||||
"@type": "BlogPosting",
|
||||
"headline": "October, 2020",
|
||||
"url": "https://alanorth.github.io/cgspace-notes/2020-10/",
|
||||
"wordCount": "1077",
|
||||
"wordCount": "1195",
|
||||
"datePublished": "2020-10-06T16:55:54+03:00",
|
||||
"dateModified": "2020-10-07T14:44:39+03:00",
|
||||
"dateModified": "2020-10-08T11:15:49+03:00",
|
||||
"author": {
|
||||
"@type": "Person",
|
||||
"name": "Alan Orth"
|
||||
@ -351,6 +351,25 @@ $ http https://dspacetest.cgiar.org/rest/status Cookie:JSESSIONID=EABAC9EFF94202
|
||||
</li>
|
||||
<li>Note that community administrators have no role in item submission other than being able to create/manage collection groups</li>
|
||||
</ul>
|
||||
<h2 id="2020-10-08">2020-10-08</h2>
|
||||
<ul>
|
||||
<li>I did some testing of the DSpace 5 REST API because Salem and I were curious
|
||||
<ul>
|
||||
<li>The authentication is a little different (uses a serialized JSON object instead of a form and the token is an HTTP header instead of a cookie):</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
<pre><code>$ http POST http://localhost:8080/rest/login email=aorth@fuuu.com 'password=ddddd'
|
||||
$ http http://localhost:8080/rest/status rest-dspace-token:d846f138-75d3-47ba-9180-b88789a28099
|
||||
$ http POST http://localhost:8080/rest/collections/1549/items rest-dspace-token:d846f138-75d3-47ba-9180-b88789a28099 < item-object.json
|
||||
</code></pre><ul>
|
||||
<li>The item submission works exactly the same as in DSpace 6:</li>
|
||||
</ul>
|
||||
<ol>
|
||||
<li>The submitting user must be a collection admin</li>
|
||||
<li>If the collection has a workflow the item will enter it and the API returns an item ID</li>
|
||||
<li>If the collection does not have a workflow then the item is committed to the archive and you get a Handle</li>
|
||||
</ol>
|
||||
<!-- raw HTML omitted -->
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user