packages feed

hledger-api-1.0: examples/01.html

<html>
<head>
  <meta charset="utf-8">
  <title>hledger-api example 01</title>
  <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>
</head
<body>

<p>
Account names:

<pre></pre>

<script>
$(document).ready(
function() {
  $.ajax({
    url: "http://localhost:8001/api/v1/accountnames",
    context: document.body,
    success: function(data){
      $('pre').text(data.join('\n'));
    }
  });
}
);
</script>

</body>
</html>