is there a way to pass an object as a parameter in a Get method in Web API? I have the following case:
In my Web.API project the Get method looks like that:
I think that
public IEnumerable GetComponentXMLByDate([FromUri]ComponentRequest request) { // Some logic here return articleMeta; }
should work.
Mike Stall has a good article on how-webapi-does-parameter-binding