From 2428a2a7c54b116f96b93c9b9858d86f3b2f1539 Mon Sep 17 00:00:00 2001 From: James Cole Date: Wed, 6 Aug 2025 20:27:59 +0200 Subject: [PATCH] Expand API test code. --- resources/views/test/api-test.twig | 32 ++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/resources/views/test/api-test.twig b/resources/views/test/api-test.twig index 3de602996e..3c780d57f5 100644 --- a/resources/views/test/api-test.twig +++ b/resources/views/test/api-test.twig @@ -34,6 +34,38 @@ 'X-CSRF-Token': $('meta[name="csrf-token"]').attr('content'), }, }); + $.ajax({ + url: 'api/v1/budgets?size=50&date=2025-08-06&start=2025-08-01&end=2025-08-31', + type: 'GET', + headers: { + 'Content-Type': 'application/json', + 'X-CSRF-Token': $('meta[name="csrf-token"]').attr('content'), + }, + }); + $.ajax({ + url: 'api/v1/budgets/1/limits?size=50&date=2025-08-06&start=2025-08-01&end=2025-08-31', + type: 'GET', + headers: { + 'Content-Type': 'application/json', + 'X-CSRF-Token': $('meta[name="csrf-token"]').attr('content'), + }, + }); + $.ajax({ + url: 'api/v1/categories?size=50&date=2025-08-06&start=2025-08-01&end=2025-08-31', + type: 'GET', + headers: { + 'Content-Type': 'application/json', + 'X-CSRF-Token': $('meta[name="csrf-token"]').attr('content'), + }, + }); + $.ajax({ + url: 'api/v1/bills?size=50&date=2025-08-06&start=2025-08-01&end=2025-08-31', + type: 'GET', + headers: { + 'Content-Type': 'application/json', + 'X-CSRF-Token': $('meta[name="csrf-token"]').attr('content'), + }, + }); });