#post to lambda function through api and get data back
2 messages · Page 1 of 1 (latest)
took me long enought but i figured it out finally... const restOp = post({
apiName: 'shippoApi',
path: '/shipporates',
options: {
body: input
}
})
const {body} = await restOp.response
const res = await body.json()
return res