diff --git a/events/apigw.go b/events/apigw.go index d0b52844..5b120973 100644 --- a/events/apigw.go +++ b/events/apigw.go @@ -40,6 +40,7 @@ type APIGatewayProxyRequestContext struct { Protocol string `json:"protocol"` Identity APIGatewayRequestIdentity `json:"identity"` ResourcePath string `json:"resourcePath"` + Path string `json:"path"` Authorizer map[string]interface{} `json:"authorizer"` HTTPMethod string `json:"httpMethod"` RequestTime string `json:"requestTime"` diff --git a/events/testdata/apigw-request.json b/events/testdata/apigw-request.json index 833def51..63910bfe 100644 --- a/events/testdata/apigw-request.json +++ b/events/testdata/apigw-request.json @@ -59,6 +59,7 @@ "requestContext": { "accountId": "12345678912", "resourceId": "roq9wj", + "path": "/hello/world", "stage": "testStage", "domainName": "gy415nuibc.execute-api.us-east-2.amazonaws.com", "domainPrefix": "y0ne18dixk", diff --git a/events/testdata/apigw-restapi-openapi-request.json b/events/testdata/apigw-restapi-openapi-request.json index 30e84093..5af5a471 100644 --- a/events/testdata/apigw-restapi-openapi-request.json +++ b/events/testdata/apigw-restapi-openapi-request.json @@ -59,6 +59,7 @@ "requestContext": { "accountId": "12345678912", "resourceId": "roq9wj", + "path": "/hello/world", "operationName": "HelloWorld", "stage": "testStage", "domainName": "gy415nuibc.execute-api.us-east-2.amazonaws.com",