Collect account balances, optimized.

This commit is contained in:
James Cole
2025-08-06 20:15:02 +02:00
parent 0ad6beb66c
commit 70071767ab
7 changed files with 276 additions and 144 deletions

View File

@@ -0,0 +1,33 @@
<html>
<head>
<title>Firefly III API test</title>
<base href="{{ route('index', null, true) }}/">
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="csrf-token" content="{{ csrf_token() }}">
</head>
<body>
<p>
Hi there,
</p>
<p>
This page is created to do some basic API testing. It's not very exciting, is it?
</p>
<script src="v1/js/app.js?v={{ FF_VERSION }}" type="text/javascript" nonce="{{ JS_NONCE }}"></script>
<script type="text/javascript" nonce="{{ JS_NONCE }}">
$(function () {
"use strict";
console.log('Hello from the API test page!');
$.ajax({
url: 'api/v1/accounts?size=50&date=2025-08-06',
type: 'GET',
headers: {
'Content-Type': 'application/json',
'X-CSRF-Token': $('meta[name="csrf-token"]').attr('content'),
},
});
});
</script>
</body>
</html>

View File

@@ -1,2 +0,0 @@
list-length: {{ listLength }}
user-email: {{ Auth.user.email }}