import product catalogue

This commit is contained in:
2026-07-16 17:05:06 +05:30
parent 8a1527cef8
commit 11baf732b7
35 changed files with 2722 additions and 1513 deletions

37
test-api.js Normal file
View File

@@ -0,0 +1,37 @@
const fetch = require('node-fetch');
async function test() {
const res = await fetch('https://queue.workolik.com/live/api/v1/web/orders/getlocationsummary', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ tenantid: 1135, fromdate: '2026-07-13', todate: '2026-07-13' })
});
const text = await res.text();
console.log('Location Summary:', text);
const res2 = await fetch('https://queue.workolik.com/live/api/v1/web/orders/getordersummary', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ tenantid: 1135, locationid: 1170, fromdate: '2026-07-13', todate: '2026-07-13' })
});
const text2 = await res2.text();
console.log('Order Summary Peelamedu (1170):', text2);
const res3 = await fetch('https://queue.workolik.com/live/api/v1/web/orders/getordersummary', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ tenantid: 1135, applocationid: 1170, fromdate: '2026-07-13', todate: '2026-07-13' })
});
const text3 = await res3.text();
console.log('Order Summary Peelamedu (1170) applocationid:', text3);
const res4 = await fetch('https://queue.workolik.com/live/api/v1/web/orders/getordersummary', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ tenantid: 1135, locationid: 1097, fromdate: '2026-07-13', todate: '2026-07-13' })
});
const text4 = await res4.text();
console.log('Order Summary RS Puram (1097):', text4);
}
test();