# Type of request: 
This is a ...

[ x] bug report
[] feature request

# Detailed explaination

Currently when requesting a lambda through an API Gateway with the integration `AWS_PROXY` to a lambda, the request looks as so once it reaches the lambda:
```
{
  "resource": "/restapis/spxxrfc5pp/local/_user_request_/path/1",
  "path": "/path/1",
  "pathParameters": {
    "parameter "1"
  },
  "stageVariables": {
    "stage": "local"
  },
....
```
This is the wrong behaviour as AWS would return:

```
{
  "resource": "/path/{parameter}",
  "path": "/path/1",
  "pathParameters": {
    "parameter": "1"
  },
  "stageVariables": {
    "stage": "local"
  },
...
```
I think have found the offending line of code
https://github.com/localstack/localstack/blob/a9cefcc7cec6b3b079c701e420fcb61f891b9384/localstack/services/apigateway/apigateway_listener.py#L330

This should be `resource_path=resource_path`

Related to #3524


result = GATEWAY_RESPONSES.get(api_id, [])
    base_path = '/restapis/%s/gatewayresponses' % api_id
    href = 'http://docs.aws.amazon.com/apigateway/latest/developerguide/restapi-gatewayresponse-{rel}.html'
    def item(i):
        i['_links'] = {
            'self': {
                'href': '%s/%s' % (base_path, i['responseType'])
            },
            'gatewayresponse:put': {
                'href': '%s/{response_type}' % base_path,
                'templated': True
            },
            'gatewayresponse:update': {
                'href': '%s/%s' % (base_path, i['responseType'])
            }
        }
        i['responseParameters'] = i.get('responseParameters', {})