Closed rerouj closed 7 months ago
@rerouj I think this is part of the thing that have been rewritten during last week workshop. Link headers have been mostly dropped in the Document endpoint, except for a single link towards the Collection
endpoint.
See #238
Thank you @PonteIneptique for the quick answer !
Link headers are a should
now, because of our level 0 static implementation compatibility layer. See https://github.com/distributed-text-services/specifications/blob/1bd713b1ddb097ed952315667b1edab0efef692a/Document-Endpoint.md#header
(If you are implementing, I'd recommend to have a look primarily to the state of this branch of @monotasker repository ;) )
And welcome to the band !
(If you are implementing, I'd recommend to have a look primarily to the state of this branch of @monotasker repository ;) )
Really good job from @monostaker ! I'll add these changes in the next version of my own implementation.
The technical committee had a three days long workshop to iron out the specs. Lots of things are gonna be better and clearer, both for client and server providers.
We published the resolution of this issue during the tech committee meeting on 2024-03-08 commit https://github.com/distributed-text-services/specifications/commit/a0db8ca0f5b9ef2e208baae7cacd8e2b6108685b release https://github.com/distributed-text-services/specifications/releases/tag/1-alpha1
the document endpoint documentation at example 3 shows the navigation's links in the response header after requesting a milestone reference (start=1.1.1 end=1.1.2). When reading the response header, it looks like the provided links does not imply a specific slicing strategy.
Indeed, the next link is showing the same milestone range on the next parent reference (start: 1.2.1, end: 1.2.2).
On the other hand, the last link is showing the same milestone gap but on the last items of the last parent which is on the last reference of the root element (start : 5.5.6, end 5.5.7)
The next link is traversing the document horizontally - if I can say - through the first parent reference, where the last link seem to follow the natural path of the text. Could you clarify if the different links are supposed to cover the same slicing and navigation strategy ? Is the client supposed to hit the "first/last" reference when following the "prec/next" link ?