Updated version 0.1 of Nikita - interface update
Thomas Sødring
thomas.sodring at hioa.no
Wed Feb 1 16:09:40 CET 2017
Hi,
I just pushed an update that changes all empty lists to
{
"_links" : [ ]
}
Although it would be nice to have this specified in the standard in some
way, so there is no need to make educated guesses.
- Thomas
On 02/01/2017 11:23 AM, Petter Reinholdtsen wrote:
> [Thomas Sødring]
>>> 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?
> Not sure. Perhaps '_links = []' ? I just need to know, then I will
> adjust the test to do the right thing.
>
More information about the nikita-noark
mailing list