Initial commit: API Debug Tool
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
16
server/test_debug.js
Normal file
16
server/test_debug.js
Normal 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();
|
||||
Reference in New Issue
Block a user