# 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


GATEWAY_RESPONSES[api_id] = GATEWAY_RESPONSES.get(api_id, [])
    data['responseType'] = response_type
    GATEWAY_RESPONSES[api_id].append(data)
    return data
def run_authorizer(api_id, headers, authorizer):
    
    pass
def authorize_invocation(api_id, headers):
    client = aws_stack.connect_to_service('apigateway')
    authorizers = client.get_authorizers(restApiId=api_id, limit=100).get('items', [])
    for authorizer in authorizers:
        run_authorizer(api_id, headers, authorizer)
def validate_api_key(api_key, stage):
    usage_plan_ids = []
    client = aws_stack.connect_to_service('apigateway')
    usage_plans = client.get_usage_plans()
    for item in usage_plans.get('items', []):
        api_stages = item.get('apiStages', [])
        for api_stage in api_stages:
            if api_stage.get('stage') == stage:
                usage_plan_ids.append(item.get('id'))
    for usage_plan_id in usage_plan_ids:
        usage_plan_keys = client.get_usage_plan_keys(usagePlanId=usage_plan_id)
        for key in usage_plan_keys.get('items', []):
            if key.get('value') == api_key:
                return True
    return False
def is_api_key_valid(is_api_key_required, headers, stage):