Hello Community
I want to invoke some flow service in ResponseProcessing policy of API in API Gateway (version 10.11) in order to perform some transformation on response payload.
As part of this transformation logic, I need to capture & use resource name (REST resource name)
For example: suppose my complete request url = /[SomeAPIName]/[SomeVersion]/[SomeResourceName] then in this case I need only the [ResourceName] part of request url inside the flow service (that will be taking care of response tranformation)
However I am unable to get/extract this value inside flow service. I don’t know how I can get this value inside flow service
Below is the screenshot of pub.apigateway.invokeISService.specifications doc.
The service specification shown is the RequestSpec, used in request processing policy. For response processing policies, the specification is pub.apigateway.invokeISService.specifications:ResponseSpec.
@mubarik, if you are using the invokeISService.specification you can get the information from the $path variable and of you not using the invokeISService.specification. You can get this upon reaching the Integration server by using pub.flow:getTransportInfo http/requestUrl