Re: Filters as views (ISSUE-45)

February 12 2016 8:46 AM, "Pierre-Antoine Champin" <pierre-antoine.champin@liris.cnrs.fr> wrote: 
> ----
> sent from my mobile, please excuse brevity and typos
> 
> Le 11 févr. 2016 11:04 PM, "Karol Szczepański" <karol.szczepanski@gmail.com> a écrit :
>> 
>> Hi
> (...)
>> > Pierre: That last point being state, I feel sympathy with Ruben's idea that
>> > views could be considered as collections of their own.
>> I'd be careful about this. While I also stated before that view is a
>> collection (or the opposite - collection is a specific view of itself). Only
>> issue I started to have about this is how i.e. deleting a member from a view
>> affects the "owning" collection?
> 
> Oh, I sure won't go down that path!
> Views must be read-only, aren't they?

Isn't that a little too strong statement? After all one can treat views as resources of their own. I don't see why a view wouldn't allow the same operations that the base resource does. It may be a matter of preference and Hydra should not make such assumptions IMO

Regards,
Tom

Received on Friday, 12 February 2016 08:16:40 UTC