title: How to do a jquery http post request to an API?
body: <p>I have some problems to understand how I have to do to save a new user  with myKeyVals  username : "bruno", password : "login" to the API.
  I have tried to use the code bellow, and It is displaying an alert"Save Compplete", but where have I saved  username : "bruno", password : "login"?
  How can I do a jquery post request to an API, with url: <code>http://192.168.8.143/api/v11/login/?username=ith&amp;password=ithith</code> (I can open the file url local)?
  Can somebody gice me a hint?</p>
  
  <pre><code>var myKeyVals = { username : "bruno", password : "login"}
  
  var saveData = $.ajax({
  
      type: 'POST',
      url: "http://192.168.8.143/api/v11/login/?username=ith&amp;password=ithith",
      data: myKeyVals.toString(),
      dataType: "text",
      success: function(resultData) { alert("Save Complete") }
  });
  saveData.error(function() { alert("Something went wrong"); });
  </code></pre>