Im building myself an asp.net mvc 4 web api
I've been through the Microsoft videos and I think they are good. Http Verbs are used. Resources are nouns, it's dandy with repositories, etc.
But one thing really bugs me
I'm under the impression that this GET http://www.myurl.com/api/sellers/{id}/products is restful and GET http://www.myurl.com/api/products?$filter = sellerID eq {id} is not.
All I see in what I've read about the new web api is the former latter.
Is there native support for the latter former? If not, is there a way to do it without routing everything?
Edit-
Im looking for something that will allow GET http://www.myurl.com/api/sellers/{id}/products and GET http://www.myurl.com/api/products etc
Update:
This question didn't make sense for a while, I've fixed that, but that's why the first answer isn't marked as correct.
Update:
After chatting with MilkyWayJoe we talked about converting /Seller/2/Products to /Products?$filter = sellerID eq 2. Has anybody got any idea on how one can go about doing this?