Updated version 0.1 of Nikita - interface update
Thomas Sødring
thomas.sodring at hioa.no
Wed Feb 1 10:28:38 CET 2017
On 02/01/2017 10:14 AM, Petter Reinholdtsen wrote:
> [Thomas Sødring]
>>>> Doing the same for
>>>> <URL: http://localhost:8092/noark5v4/hateoas-api/arkivstruktur/arkiv/ >
>>>> return this json document:
>>>>
>>>> {
>>>> "arkiv" : [ ]
>>>> }
>> Don't forget to populate the database!
> Is it not required to have the _links attribute if the database isn't
> populated? I assumed it and my test fail if it isn't there.
>
Good question. I don't think the standard says anything about how to
deal with an empty list. Looking at:
http://rel.kxml.no/noark5/v4/api/arkivstruktur/arkiv/
The above page is returning a single object rather than a list of
objects and that object is not null. I am not sure what links you would
like to have associated with an empty list, a link back to itself?
- Tom
More information about the nikita-noark
mailing list