From 3900a351b7ebe9372a51a80121f8e7fe2d946b8e Mon Sep 17 00:00:00 2001 From: Alan Orth Date: Thu, 8 Oct 2020 15:54:02 +0300 Subject: [PATCH] Add notes for 2020-10-08 --- content/posts/2020-10.md | 17 +++++++++++++++++ docs/2020-10/index.html | 25 ++++++++++++++++++++++--- docs/categories/index.html | 2 +- docs/categories/notes/index.html | 2 +- docs/categories/notes/page/2/index.html | 2 +- docs/categories/notes/page/3/index.html | 2 +- docs/categories/notes/page/4/index.html | 2 +- docs/index.html | 2 +- docs/page/2/index.html | 2 +- docs/page/3/index.html | 2 +- docs/page/4/index.html | 2 +- docs/page/5/index.html | 2 +- docs/page/6/index.html | 2 +- docs/page/7/index.html | 2 +- docs/posts/index.html | 2 +- docs/posts/page/2/index.html | 2 +- docs/posts/page/3/index.html | 2 +- docs/posts/page/4/index.html | 2 +- docs/posts/page/5/index.html | 2 +- docs/posts/page/6/index.html | 2 +- docs/posts/page/7/index.html | 2 +- docs/sitemap.xml | 10 +++++----- 22 files changed, 63 insertions(+), 27 deletions(-) diff --git a/content/posts/2020-10.md b/content/posts/2020-10.md index a74d10b36..307c2bc6f 100644 --- a/content/posts/2020-10.md +++ b/content/posts/2020-10.md @@ -198,4 +198,21 @@ $ http POST https://dspacetest.cgiar.org/rest/collections/f10ad667-2746-4705-8b1 - Does *not* post straight to archive, goes to workflow - Note that community administrators have no role in item submission other than being able to create/manage collection groups +## 2020-10-08 + +- I did some testing of the DSpace 5 REST API because Salem and I were curious + - 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): + +``` +$ 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 +``` + +- The item submission works exactly the same as in DSpace 6: + +1. The submitting user must be a collection admin +2. If the collection has a workflow the item will enter it and the API returns an item ID +3. If the collection does not have a workflow then the item is committed to the archive and you get a Handle + diff --git a/docs/2020-10/index.html b/docs/2020-10/index.html index d85e60394..df93ac062 100644 --- a/docs/2020-10/index.html +++ b/docs/2020-10/index.html @@ -23,7 +23,7 @@ During the FlywayDB migration I got an error: - + @@ -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
  • Note that community administrators have no role in item submission other than being able to create/manage collection groups
  • +

    2020-10-08

    + +
    $ 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
    +
    +
      +
    1. The submitting user must be a collection admin
    2. +
    3. If the collection has a workflow the item will enter it and the API returns an item ID
    4. +
    5. If the collection does not have a workflow then the item is committed to the archive and you get a Handle
    6. +
    diff --git a/docs/categories/index.html b/docs/categories/index.html index 3cedc4cd7..661b7097c 100644 --- a/docs/categories/index.html +++ b/docs/categories/index.html @@ -9,7 +9,7 @@ - + diff --git a/docs/categories/notes/index.html b/docs/categories/notes/index.html index 253470add..c776a3d82 100644 --- a/docs/categories/notes/index.html +++ b/docs/categories/notes/index.html @@ -9,7 +9,7 @@ - + diff --git a/docs/categories/notes/page/2/index.html b/docs/categories/notes/page/2/index.html index f7c3aaead..8f3dcc458 100644 --- a/docs/categories/notes/page/2/index.html +++ b/docs/categories/notes/page/2/index.html @@ -9,7 +9,7 @@ - + diff --git a/docs/categories/notes/page/3/index.html b/docs/categories/notes/page/3/index.html index b973828ad..1063b21cc 100644 --- a/docs/categories/notes/page/3/index.html +++ b/docs/categories/notes/page/3/index.html @@ -9,7 +9,7 @@ - + diff --git a/docs/categories/notes/page/4/index.html b/docs/categories/notes/page/4/index.html index af4db19de..2165d6505 100644 --- a/docs/categories/notes/page/4/index.html +++ b/docs/categories/notes/page/4/index.html @@ -9,7 +9,7 @@ - + diff --git a/docs/index.html b/docs/index.html index 59ef1e40f..88387441a 100644 --- a/docs/index.html +++ b/docs/index.html @@ -9,7 +9,7 @@ - + diff --git a/docs/page/2/index.html b/docs/page/2/index.html index d3cb736a1..eb5642203 100644 --- a/docs/page/2/index.html +++ b/docs/page/2/index.html @@ -9,7 +9,7 @@ - + diff --git a/docs/page/3/index.html b/docs/page/3/index.html index dba912cfc..7f4087b7d 100644 --- a/docs/page/3/index.html +++ b/docs/page/3/index.html @@ -9,7 +9,7 @@ - + diff --git a/docs/page/4/index.html b/docs/page/4/index.html index dde981316..a2b1f2bfc 100644 --- a/docs/page/4/index.html +++ b/docs/page/4/index.html @@ -9,7 +9,7 @@ - + diff --git a/docs/page/5/index.html b/docs/page/5/index.html index c68bbb9b9..57c354a68 100644 --- a/docs/page/5/index.html +++ b/docs/page/5/index.html @@ -9,7 +9,7 @@ - + diff --git a/docs/page/6/index.html b/docs/page/6/index.html index 3e1a52bc1..95eb8ec23 100644 --- a/docs/page/6/index.html +++ b/docs/page/6/index.html @@ -9,7 +9,7 @@ - + diff --git a/docs/page/7/index.html b/docs/page/7/index.html index 5d5fbcc33..6535b4eb8 100644 --- a/docs/page/7/index.html +++ b/docs/page/7/index.html @@ -9,7 +9,7 @@ - + diff --git a/docs/posts/index.html b/docs/posts/index.html index 7054b2889..ca4b8cbe3 100644 --- a/docs/posts/index.html +++ b/docs/posts/index.html @@ -9,7 +9,7 @@ - + diff --git a/docs/posts/page/2/index.html b/docs/posts/page/2/index.html index 97a79ddb3..dbec73226 100644 --- a/docs/posts/page/2/index.html +++ b/docs/posts/page/2/index.html @@ -9,7 +9,7 @@ - + diff --git a/docs/posts/page/3/index.html b/docs/posts/page/3/index.html index 980a82141..cc86d7ce4 100644 --- a/docs/posts/page/3/index.html +++ b/docs/posts/page/3/index.html @@ -9,7 +9,7 @@ - + diff --git a/docs/posts/page/4/index.html b/docs/posts/page/4/index.html index 803f990bd..4be82b73f 100644 --- a/docs/posts/page/4/index.html +++ b/docs/posts/page/4/index.html @@ -9,7 +9,7 @@ - + diff --git a/docs/posts/page/5/index.html b/docs/posts/page/5/index.html index dd0c7bc4a..8c4d5157d 100644 --- a/docs/posts/page/5/index.html +++ b/docs/posts/page/5/index.html @@ -9,7 +9,7 @@ - + diff --git a/docs/posts/page/6/index.html b/docs/posts/page/6/index.html index be3271f4c..ea5e9837d 100644 --- a/docs/posts/page/6/index.html +++ b/docs/posts/page/6/index.html @@ -9,7 +9,7 @@ - + diff --git a/docs/posts/page/7/index.html b/docs/posts/page/7/index.html index a494674df..1d2a5852e 100644 --- a/docs/posts/page/7/index.html +++ b/docs/posts/page/7/index.html @@ -9,7 +9,7 @@ - + diff --git a/docs/sitemap.xml b/docs/sitemap.xml index 08c14ea14..cfd2a9626 100644 --- a/docs/sitemap.xml +++ b/docs/sitemap.xml @@ -4,27 +4,27 @@ https://alanorth.github.io/cgspace-notes/categories/ - 2020-10-07T14:44:39+03:00 + 2020-10-08T11:15:49+03:00 https://alanorth.github.io/cgspace-notes/ - 2020-10-07T14:44:39+03:00 + 2020-10-08T11:15:49+03:00 https://alanorth.github.io/cgspace-notes/categories/notes/ - 2020-10-07T14:44:39+03:00 + 2020-10-08T11:15:49+03:00 https://alanorth.github.io/cgspace-notes/2020-10/ - 2020-10-07T14:44:39+03:00 + 2020-10-08T11:15:49+03:00 https://alanorth.github.io/cgspace-notes/posts/ - 2020-10-07T14:44:39+03:00 + 2020-10-08T11:15:49+03:00