title: Web API GET vs POST
body: <p>I initially setup a Web API (not any expert with web api) and followed someone's tutorial online for passing in parameters to a simple get API call.</p>
  
  <p>I had originally created a GET with query strings but as the tutorial showed how using POST allows me to pass JSON to an class object in POST API parameter, it seemed a good idea.</p>
  
  <p>Later on one developer said this was bad practice? Is it? Should I always use GET instead of POST which in essence is what it should be anyway... a GET call, but I like the idea of passing parameters via an object and avoiding a long API call with query strings.</p>
  
  <p>So:</p>
  
  <pre><code>$.ajax({
      url: '\api\getlist\1?param2=yyyy&amp;param3=kikkkk&amp;param4=88' etc   
  })
  </code></pre>
  
  <p>or</p>
  
  <pre><code>var params = ....
  
  $.ajax({
      url: '\api\getlist\',
      data: params
  })
  </code></pre>
  
  <p>What should I do, change the code back to using GET? What about caching?</p>