Initial commit: API Debug Tool

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
jason
2026-03-12 04:32:35 +08:00
commit 96bdc292bb
42 changed files with 8577 additions and 0 deletions

16
server/test_debug.js Normal file
View File

@@ -0,0 +1,16 @@
const axios = require('axios');
async function test() {
try {
const res = await axios.post('http://localhost:5001/api/debug/execute-pp', {
tenantId: 1, // Assume 1 is a valid tenant
endpointId: 1, // Assume 1 is a valid endpoint
body: { "test": "data" },
queryParams: { "hello": "world" }
});
console.log("Success:", res.data);
} catch (e) {
console.error("Error:", e.response ? e.response.data : e.message);
}
}
test();