# 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


for key, _ in response_template['Item'].items():
                    event_data[key] = data_dict[key]
                table.put_item(Item=event_data)
                response = requests_response(event_data, headers=aws_stack.mock_aws_request_headers())
                return response
        else:
            msg = 'API Gateway action uri "%s", integration type %s not yet implemented' % (uri, integration_type)
            LOGGER.warning(msg)
            return make_error_response(msg, 404)
    elif integration_type in ['HTTP_PROXY', 'HTTP']:
        function = getattr(requests, method.lower())
        
        data = apply_template(integration, 'request', data)
        if isinstance(data, dict):
            data = json.dumps(data)
        result = function(uri, data=data, headers=headers)
        
        data = apply_template(integration, 'response', data)
        return result
    elif integration_type == 'MOCK':
        
        pass
    if method == 'OPTIONS':
        
        return get_cors_response(headers)
    msg = ('API Gateway integration type "%s", method "%s", URI "%s" not yet implemented' %
           (integration_type, method, uri))
    LOGGER.warning(msg)
    return make_error_response(msg, 404)
def get_stage_variables(api_id, stage):