Updated version 0.1 of Nikita - interface update

Thomas Sødring thomas.sodring at hioa.no
Thu Feb 2 13:39:12 CET 2017


On 02/02/2017 01:28 PM, Petter Reinholdtsen wrote:
> [Thomas Sødring]
>> I am happy to hear that. Maybe your script can accept a 501 from the
>> import-api as a sucess rather than a failure as the import-api is not
>> part of standard? I will not look at the gui at the moment. KDRS might
>> be doing a job on the gui so I want to concentrate all my efforts on
>> moving forward with things that are part of the standard.
> Perhaps eventually.  This part of the script is simply starting from the
> top, fetching the _links array and visiting all the URLs listed there,
> recursively.  It do not really know what it is looking at, just
> verifying that everything announced it also GET-able. :)
>
> Btw, on the second run, after creating something in the document, the
> http://localhost:8092/noark5v4/hateoas-api/arkivstruktur/dokumentobjekt/
> page seem to be empty.  Is this according to the plan?
Could the cookie have been  invalidated for some reason?

I run the run_curl and test, but it seems ok. Could you the curl with -v
and post here to see if there is any more information available?

curl -v  --header Accept:application/vnd.noark5-v4+json -X GET -b
cookie.txt
http://localhost:8092/noark5v4/hateoas-api/arkivstruktur/dokumentobjekt/

* Hostname was NOT found in DNS cache
*   Trying 127.0.0.1...
* Connected to localhost (127.0.0.1) port 8092 (#0)
> GET /noark5v4/hateoas-api/arkivstruktur/dokumentobjekt/ HTTP/1.1
> User-Agent: curl/7.35.0
> Host: localhost:8092
> Cookie: JSESSIONID=DC76262F6C60CEEDC7F75EBC9D937642
> Accept:application/vnd.noark5-v4+json
>
< HTTP/1.1 200 OK
* Server Apache-Coyote/1.1 is not blacklisted
< Server: Apache-Coyote/1.1
< X-Content-Type-Options: nosniff
< X-XSS-Protection: 1; mode=block
< Cache-Control: no-cache, no-store, max-age=0, must-revalidate
< Pragma: no-cache
< Expires: 0
< X-Frame-Options: DENY
< X-Application-Context: HiOA Noark 5 Core (Demo mode):demo:8092
< Content-Type: application/vnd.noark5-v4+json;charset=UTF-8
< Transfer-Encoding: chunked
< Date: Thu, 02 Feb 2017 12:35:10 GMT
<
{
  "dokumentobjekt" : [ {
    "systemID" : "3ad82dfe-f7af-4494-bda5-5b60bcdcdce2",
    "versjonsnummer" : "1",
    "variantformat" : "Arkivformat",
    "format" : "PDF",
    "formatDetaljer" : "PDF/A PDFv1.4"
  }, {
    "systemID" : "fe5c2d41-d6c9-44fa-8dfa-ac65ea2096c2",
    "versjonsnummer" : "1",
    "variantformat" : "Arkivformat",
    "format" : "PDF",
    "formatDetaljer" : "PDF/A PDFv1.4"
  }, {
    "systemID" : "70338f42-5995-42ff-bddc-d7aaa21d693f",
    "versjonsnummer" : "1",
    "variantformat" : "Arkivformat",
    "format" : "PDF",
    "formatDetaljer" : "PDF/A PDFv1.4"
  }, {
    "systemID" : "63bf8398-2945-44d6-86a4-858863a928e5",
    "versjonsnummer" : "1",
    "variantformat" : "Arkivformat",
    "format" : "PDF",
    "formatDetaljer" : "PDF/A PDFv1.4"
  }
}



More information about the nikita-noark mailing list