title: Web API passing Object to a Get method
body: <p>is there a way to pass an object as a parameter in a Get method in Web API? I have the following case:</p>
  
  <p>In my Web.API project the Get method looks like that:</p>
  
  <pre><code>public IEnumerable&lt;ArticleMetaData&gt; GetComponentXMLByDate(ComponentRequest request)
          {
             // Some logic here
              return articleMeta;
          }
  </code></pre>
  
  <p>My ComponentRequest object looks like:</p>
  
  <pre><code>public class ComponentRequest
      {        
          public string startdate { get; set; }
          public string enddate { get; set; }       
          public string pagenumber { get; set; }
          public string pagesize { get; set; }
      }
  </code></pre>
  
  <p>I am trying to call it this way: </p>
  
  <blockquote>
    <p><a href="http://mydomain.com/api/values/?startdate=121922&amp;enddate=063020&amp;pagenumber=2&amp;pagesize=100">http://mydomain.com/api/values/?startdate=121922&amp;enddate=063020&amp;pagenumber=2&amp;pagesize=100</a></p>
  </blockquote>
  
  <p>In the method ComponentRequest request is coming as null. If I change the method to accept multiple string parameters instead of the object it works fine.</p>
  
  <p>Am I missing something in my setup?</p>