title: What are good examples of REST API client libraries in JavaScript
body: <p>I'm looking for best-practise styles for wrapping a REST API in a light-weight JavaScript client.</p>
  
  <p>In the past I've seen libraries which are implemented in a style like:</p>
  
  <pre><code>var request = new SearchRequest(apikey);
  request.query = "search term";
  request.send(function(results) {
      console.log(results);
  });
  </code></pre>
  
  <p>Or that embrace HTTP more explicitly like:</p>
  
  <pre><code>api.get("search", "search term", function(results) {
      console.log(results);
  });
  api.post("comment", comment, function(results) {
      console.log(results);
  });
  </code></pre>
  
  <p>Or that wrap at an even higher level:</p>
  
  <pre><code>api.search("search term", function(results) {
      console.log(results);
  });
  api.createComment(comment, function(results) {
      console.log(results);
  });
  </code></pre>
  
  <p>What good examples of modern JavaScript client libraries wrapping REST APIs have you seen recently. Not worried about implementation details, just the API design.</p>
  
  <p>Thanks!</p>