RE: What can we agree on? (ISSUE-42)

On 25 Feb 2015 at 08:47, Dietrich Schulten wrote:
>> Am 23. Februar 2015 22:50:42 schrieb "Markus Lanthaler"
>>> If JSON-LD is used as the serialization format, the documents should
look as
>>> idiomatic as possible. I.e., they should closely resemble current Web
APIs.
> 
> This can mean many things of course. For me an important aspect is that
> hypermedia clients follow rels by executing http methods on the href
> associated with the rel.
> 
> In our case the attribute of a json-ld is the rel, the @id is the href.
The
> rel says that the current document is related to another one in a
> well-defined way (e.g. next, prev, create-form [1], foaf:knows).
> 
> As it stands right now, that works very elegantly with PUT, PATCH or
DELETE
> as long as a single item is updated or deleted.

Right


> However, when it comes to creating new items with POST or PUT, it turns
out
> that we can't use the @id as elegantly.

Why not? If we are talking about collections, you would need to find the
collection you want to add the item to and look if it supports that
operation.



--
Markus Lanthaler
@markuslanthaler

Received on Wednesday, 4 March 2015 21:43:24 UTC