W3C home > Mailing lists > Public > public-hydra@w3.org > June 2014

Re: My opinion about hydra vocabulary

From: László Lajos Jánszky <laszlo.janszky@gmail.com>
Date: Thu, 5 Jun 2014 23:20:41 +0200
To: <public-hydra@w3.org>
Message-ID: <019201cf8104$0206b500$06141f00$@gmail.com>
> For example should a Hydra REST service accept all of these requests
> or just a single one of them?
>  - PATCH "/users/123" {firstName: "John", secondName: "Smith"}
>  - PATCH "/users/123" {name: "John Smith"}
>  - PATCH "/users/123" {givenName: "John", familyName: "Smith"}
>  - PATCH "/users/123" {name: {first: "John", second: "Smith"}}

How could I answer this question? I know nothing about the service. Hydra just describes what can be done how. It doesn't prescribe what must/must not be done.

 

Okay, then I ask otherwise. Is it possible to have a Hydra REST API which can accept all of those PATCH requests and do the same operation using the request body?

 

2014-06-04 23:05 GMT+02:00 Markus Lanthaler <markus.lanthaler@gmx.net <mailto:markus.lanthaler@gmx.net> >:

On Wednesday, June 04, 2014 10:43 AM, László Lajos Jánszky wrote:
> Do you intend to describe every REST service with Hydra, or just a
> specific implementation of REST services?

Not sure what you mean by "describe every REST service". How could it? It would need to know about "every REST service", right? Hydra describes a specific implementation.



> For example should a Hydra REST service accept all of these requests
> or just a single one of them?
>  - PATCH "/users/123" {firstName: "John", secondName: "Smith"}
>  - PATCH "/users/123" {name: "John Smith"}
>  - PATCH "/users/123" {givenName: "John", familyName: "Smith"}
>  - PATCH "/users/123" {name: {first: "John", second: "Smith"}}

How could I answer this question? I know nothing about the service. Hydra just describes what can be done how. It doesn't prescribe what must/must not be done.



--
Markus Lanthaler
@markuslanthaler

 
Received on Thursday, 5 June 2014 21:21:14 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 15:53:59 UTC