Re: Relationship between filter properties and hydra:supportedProperty (was Re: Filters as views (ISSUE-45))

Hi Markus

Just one nitpick :)

> 
> I would find it very surprising if the server would allow to filter by
> foaf:age but then not return it in the result.

As Asbjorn writes, Hydra is mostly about hypermedia. It's perfectly fine as such to have parameters that don't have a direct counterpart in the data (and it's mostly about collections anyway). Another example for example you mention above is to limit to people of age, possibly within some legal jurisdiction:

/people?adultOnly=true&jurisdiction=US

The adultOnly parameter could, arguably, be part of the returned data. But the other parameter would not. Alternatively it could be modelled as:

/people?adultInCountry=US

This is more explicit as to the human-readable meaning. 

Are those designs that you would find surprising?

Best,
Tom

Received on Wednesday, 24 February 2016 14:52:16 UTC