mirror of
https://github.com/simonmichael/hledger.git
synced 2024-12-27 04:13:11 +03:00
0ab008ed5e
- api routes (but not /swagger.json) are now under /api/v1 - the api has changed a bit, more to come - files are served from the current directory by default, simplifying naming - the startup message is more informative - added some startup hints for the angular client
30 lines
463 B
HTML
30 lines
463 B
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>
|