Correct rel and _links for ny-arkiv?

Petter Reinholdtsen pere at hungry.com
Mon Feb 6 13:29:47 CET 2017


[Thomas Sødring]
> Taking a look at this I think I've mixed up the rels for advertising
> arkivstrutur:
>
>  http://rel.kxml.no/noark5/v4/api/arkivstruktur/
>
> with the rel used when creating a new fonds object:
>
>  http://rel.kxml.no/noark5/v4/api/administrasjon/ny-arkiv/
>  http://rel.kxml.no/noark5/v4/api/arkivstruktur/ny-arkiv/
>
> It's an easy fix, but I'll do it as described below.

Right.  I added a test to check all rel links, and found a few that seem
to be missing in the specification.

http://rel.kxml.no/noark5/v4/api/administration/ny-arkiv
http://rel.kxml.no/noark5/v4/api/arkivstruktur/klassifikasjonsystem
http://rel.kxml.no/noark5/v4/api/arkivstrukturbasisregistrering
http://rel.kxml.no/noark5/v4/api/arkivstrukturdokumentbeskrivelse
http://rel.kxml.no/noark5/v4/api/arkivstrukturdokumentobjekt

Typos?  I suspect they should look like this (with or without trailing
slash):

http://rel.kxml.no/noark5/v4/api/arkivstruktur/ny-arkiv
http://rel.kxml.no/noark5/v4/api/arkivstruktur/klassifikasjonssystem
http://rel.kxml.no/noark5/v4/api/arkivstruktur/basisregistrering
http://rel.kxml.no/noark5/v4/api/arkivstruktur/dokumentbeskrivelse
http://rel.kxml.no/noark5/v4/api/arkivstruktur/dokumentobjekt

Should I try to fix them in master?

-- 
Happy hacking
Petter Reinholdtsen


More information about the nikita-noark mailing list