I'm new to WebApi and I don't quite get it.
I do get that all the verbs are focused on Get, Put, Post and Delete. But Coming from a heavy DDD and MVC background, I need some pointers.
I'm used to expose services/resources/actions whatever you want to call it that does some internal filtering. e.g. for an SalesOrder service I might have operations like GetTodaysOrders , GetUnapprovedOrders etc. Operations that applies some filtering on the "SalesOrder set"
So, In WebApi and rest in general I suppose, I'm not supposed to do this? I'm supposed to expose the entire SalesOrder set?
And filtering could be done with OData but that moves the responisbillity of knowing what to filter to the consumer, the consumer must know what to ask for, e.g. any domain/business rule must be known by the consumer. That part seems totally alien to me.
How do you deal with this sort of things? Can this be handled in some way, and I don't mean in a hacky way like creating a new web api controller for each and every way you can filter some data.