Skip to content

Commit

Permalink
Feature/Add path field in request context struct (#432)
Browse files Browse the repository at this point in the history
* chg: feat: add path field in request context struct

* chg: chore: add path field into request context in apigw jsons
  • Loading branch information
thiagoyeds committed Mar 29, 2022
1 parent d1a6fb3 commit bc1ec47
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions events/apigw.go
Expand Up @@ -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"`
Expand Down
1 change: 1 addition & 0 deletions events/testdata/apigw-request.json
Expand Up @@ -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",
Expand Down
1 change: 1 addition & 0 deletions events/testdata/apigw-restapi-openapi-request.json
Expand Up @@ -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",
Expand Down

0 comments on commit bc1ec47

Please sign in to comment.