I am new in using open LCA tool. I am trying to fetch data from open LCA using JSON-RPC via Fetch API. I have imported the free database name "elcd_3_2_greendelta_v2_18_correction_20220908" and I am following the documentation from here Link . Below is my code
let resp = await fetch('http://localhost:8080', {
method: 'POST',
body: JSON.stringify({
jsonrpc: '2.0',
id: 1,
method: 'data/get/descriptors',
params: {
'@type': 'FlowProperty'
}
})
});
let descriptors = await resp.json();
console.log(descriptors);
Error which is coming:
{code: -32601, message: 'Does not understand: data/get/descriptors'}
I want to fetch data like impact assessment result and impact categories to show it on frontend.