Re: LDPR Interaction Model on Create

Hi John/SteveS,

On Fri, Oct 10, 2014 at 5:50 PM, John Arwe <johnarwe@us.ibm.com> wrote:

> Moving this onto the right list for drafting a consensus response.
>
> > I also have a small comment that I've been meaning to send regarding the
> > interaction model.
> >
> > 5.2.3.4 states that "Clients use the same syntax, that is HTTP Link
> > headers, to specify the desired interaction model when creating a
> > resource as servers use to advertise it on responses."
> >
> > I noticed that in the primer, the POST request to an LDP-BC does not
> > contain a link header expressing the type of the resource to be created.
> > That also seems to be the behaviour of test suite. However, the POST
> > request to an LDP-DC *contains* the Link header Link:
> > <http://www.w3.org/ns/ldp#Resource>; rel="type", while *none* of the
> > examples in the LDP spec show a Link header being sent with POST
> requests.
>
> THAT should be fixed, for sure.
> The only way a LDP client gets predictable behavior is by specifying the
> interaction model.
> That's what the examples should show, period... that which is
> interoperable.
>

I'm a bit confused regarding what is the consensus regarding including the
interaction model header and what to do in the primer examples on
POST/Create.

In a previous email SteveS mentioned "I think requiring the header on
create was not intended and not desirable.  IF the header is present AND
the server can honor the request, then the client overrides whatever the
server would have done based on the content.  So I think that it makes
complete sense for LDP servers to determine the interaction model based on
the content of the creation request, with the Link header being part of
that.". I thought it was more biased towards not including the header in
the primer examples.

But John's reply as well as Issue-91 suggests that we should include the
type Link relation header in the POST creation requests.

So shall we include the interaction model header in all the POST creation
examples?

Best Regards,
Nandana

Received on Monday, 13 October 2014 14:00:14 UTC