- Goal: Call a query resource in JS, passing a headers to be used in the REST request
- Details:
I'm very new to ReTool and hoping this is an obvious thing I've just not found the answer to. I have a REST API resource (callMyREST
) which works perfectly fine when I use it with events, etc. But I'd like to call it from some JS code. Like callMyREST
and passing headers through
callyMyREST.trigger(
additionalScope:{
}
)
and have that REST API resource use that value in one of its Headers like
https://apiurl.com{ x-buser-id: "abcd"}
But for some reason, I'm struggling to find how I pass the headers and define it within the resource. Is there a how-to guide I'm overlooking somewhere? Thanks for any guidance here!