Re: [Specifications] Question about HATEOAS shortcuts (#189)

> I don't remember writing that the client knows that 123 is an identifier. All the client knows that the URI is build with {productId: 123} and with an URI template

Yes, that is precisely the point I was referring to. How is that `123` ever relevant going forward? The client best only remembers the URI and should not car about the template and its parameters any more.

> I mean in both cases it would be nice to notify somehow the client that the link is deprecated. Is there any option for that?

Indeed I think that the [`sunset` header](https://tools.ietf.org/id/draft-wilde-sunset-header-03.html) which @dret proposes is the solution you're looking for.

-- 
GitHub Notification of comment by tpluscode
Please view or discuss this issue at https://github.com/HydraCG/Specifications/issues/189#issuecomment-484646131 using your GitHub account

Received on Thursday, 18 April 2019 19:07:42 UTC