The ability to use V3 Create Nested works.

This commit is contained in:
Scott Idem
2026-01-05 19:10:07 -05:00
parent 45f7393ee3
commit d066da9047
4 changed files with 237 additions and 6 deletions

View File

@@ -21,7 +21,7 @@
async function test_v3_get_id() {
console.log('*** test_v3_get_id() ***');
v3_test_result = 'loading...';
// Test standard V3 GET ID
const result = await api.get_ae_obj_v3({
api_cfg: $ae_api,
@@ -30,7 +30,7 @@
view: 'base',
log_lvl: 1
});
v3_test_result = result;
console.log('V3 GET ID Result:', result);
}
@@ -38,7 +38,7 @@
async function test_v3_get_nested_id() {
console.log('*** test_v3_get_nested_id() ***');
v3_test_result = 'loading...';
// Test nested V3 GET ID
const result = await api.get_nested_ae_obj_v3({
api_cfg: $ae_api,
@@ -49,23 +49,49 @@
view: 'base',
log_lvl: 1
});
v3_test_result = result;
console.log('V3 GET Nested ID Result:', result);
}
async function test_v3_create_nested() {
console.log('*** test_v3_create_nested() ***');
v3_test_result = 'loading...';
// Test creating a journal entry under the test journal
const result = await api.create_nested_obj_v3({
api_cfg: $ae_api,
parent_type: 'journal',
parent_id: 'JGEB-80-92-50',
child_type: 'journal_entry',
fields: {
account_id_random: 'nqOzejLCDXM',
name: 'Test V3 Nested Create',
content: 'This was created using the new V3 nested create wrapper!',
enable: true
},
log_lvl: 1
});
v3_test_result = result;
console.log('V3 Create Nested Result:', result);
}
</script>
<div class="container h-full mx-auto flex flex-col justify-center items-center p-4 gap-4">
<div class="space-y-10 text-center flex flex-col items-center">
<h1 class="h1">Aether - V3 API Testing</h1>
<div class="flex justify-center space-x-2">
<div class="flex justify-center flex-wrap gap-2">
<button class="btn variant-filled-primary" onclick={test_v3_get_id}>
Test V3 GET ID
</button>
<button class="btn variant-filled-secondary" onclick={test_v3_get_nested_id}>
Test V3 GET Nested ID
</button>
<button class="btn variant-filled-tertiary" onclick={test_v3_create_nested}>
Test V3 Create Nested
</button>
</div>
</div>