mirror of
https://github.com/swift-server/swift-openapi-lambda.git
synced 2026-05-03 07:22:26 +00:00
add a sample HTTP API Gateway event JSON fiel for local testing
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
{
|
||||
"rawQueryString": "",
|
||||
"headers": {
|
||||
"host": "b2k1t8fon7.execute-api.us-east-1.amazonaws.com",
|
||||
"x-forwarded-port": "443",
|
||||
"content-length": "0",
|
||||
"x-amzn-trace-id": "Root=1-6571d134-63dbe8ee21efa87555d59265",
|
||||
"x-forwarded-for": "191.95.148.219",
|
||||
"x-forwarded-proto": "https",
|
||||
"accept": "*/*",
|
||||
"user-agent": "curl/8.1.2"
|
||||
},
|
||||
"requestContext": {
|
||||
"apiId": "b2k1t8fon7",
|
||||
"http": {
|
||||
"sourceIp": "191.95.148.219",
|
||||
"userAgent": "curl/8.1.2",
|
||||
"method": "GET",
|
||||
"path": "/stocks/AMZN",
|
||||
"protocol": "HTTP/1.1"
|
||||
},
|
||||
"timeEpoch": 1701957940365,
|
||||
"domainPrefix": "b2k1t8fon7",
|
||||
"accountId": "486652066693",
|
||||
"time": "07/Dec/2023:14:05:40 +0000",
|
||||
"stage": "$default",
|
||||
"domainName": "b2k1t8fon7.execute-api.us-east-1.amazonaws.com",
|
||||
"requestId": "Pk2gOia2IAMEPOw="
|
||||
},
|
||||
"isBase64Encoded": false,
|
||||
"version": "2.0",
|
||||
"routeKey": "$default",
|
||||
"rawPath": "/stocks/AMZN"
|
||||
}
|
||||
Reference in New Issue
Block a user