So right now, we are migrating from using apim module to context, but I can see we have two issues.
I. What is the alternative of apim.getError()? From what I understand, I think the two context variables error.name and error.message are equivalent to name and message returning from apim.getError(). But what about policyTitle and status?
{
"name": "OperationError",
"message": "This is a thrown Operation Error",
"policyTitle": "Throw Operation Error",
"status": {
"code": "500",
"reason": "Internal Server Error"
}
}
II. If I have a JS script that exists in DataPower API Gateway's local directory, and I only load it in a GatewayScript. The script works perfectly fine with apim module but cannot identify "context" when being used instead. So how to use context in this scenario? (Without passing it to the script)
------------------------------
Mohamed Alkhaligy
------------------------------