I set rules to trigger http server by passing payload from SQL below
select
payload.direction as d
from testapi/liveness
and set body to
{
"result": {$d}
}
but inside API is shown as undefined. what am I missing?
BTW, I try to pass parameter into the URL too but can get only hard code like www.mockurl.com/api/{$d}
the value from console.log is “{$d}”, not direction value inside payload