Python API Proxy
python
Description
This can be attached as a post-process script to intercept the parameters being passed to the API call. The script then takes those parameters and passes it to the second API call. The data from the second API call is then returned.
Code
# Retrieve the parameters that are being filtered from original API call
params = event.request.parameters.filter;
# Call second API and attach the same parameters to the API call
result = platform.api.get('<service_name>/_table/customer?filter'+params);
# Set the data to be returned
data = result.read();
event.response.content = data;