forked from rgfindl/serverless-contact-us-form
-
Notifications
You must be signed in to change notification settings - Fork 3
/
sample.test.request.json
92 lines (92 loc) · 3.75 KB
/
sample.test.request.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
{
"resource": "/",
"path": "/",
"httpMethod": "POST",
"headers": {
"Accept": "application/json, text/plain, */*",
"Accept-Encoding": "gzip, deflate, br",
"Accept-Language": "en-US,en;q=0.9,fr;q=0.8",
"cache-control": "no-cache",
"CloudFront-Forwarded-Proto": "https",
"CloudFront-Is-Desktop-Viewer": "true",
"CloudFront-Is-Mobile-Viewer": "false",
"CloudFront-Is-SmartTV-Viewer": "false",
"CloudFront-Is-Tablet-Viewer": "false",
"CloudFront-Viewer-Country": "FR",
"content-type": "application/json",
"Host": "myapiid123.execute-api.eu-west-1.amazonaws.com",
"origin": "http://localhost:3000",
"pragma": "no-cache",
"Referer": "http://localhost:3000/",
"User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/72.0.3626.119 Chrome/72.0.3626.119 Safari/537.36",
"Via": "2.0 000011112222333344445555666677778888.cloudfront.net (CloudFront)",
"X-Amz-Cf-Id": "12345000011112222333344445555666677778888-FOOBARBAZ01==",
"X-Amzn-Trace-Id": "Root=1-11223344-0000111122223333444455556666",
"X-Forwarded-For": "192.168.42.1, 192.168.42.2",
"X-Forwarded-Port": "443",
"X-Forwarded-Proto": "https"
},
"multiValueHeaders": {
"Accept": ["application/json, text/plain, */*"],
"Accept-Encoding": ["gzip, deflate, br"],
"Accept-Language": ["en-US,en;q=0.9,fr;q=0.8"],
"cache-control": ["no-cache"],
"CloudFront-Forwarded-Proto": ["https"],
"CloudFront-Is-Desktop-Viewer": ["true"],
"CloudFront-Is-Mobile-Viewer": ["false"],
"CloudFront-Is-SmartTV-Viewer": ["false"],
"CloudFront-Is-Tablet-Viewer": ["false"],
"CloudFront-Viewer-Country": ["FR"],
"content-type": ["application/json"],
"Host": ["myapiid123.execute-api.eu-west-1.amazonaws.com"],
"origin": ["http://localhost:3000"],
"pragma": ["no-cache"],
"Referer": ["http://localhost:3000/"],
"User-Agent": [
"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/72.0.3626.119 Chrome/72.0.3626.119 Safari/537.36"
],
"Via": [
"2.0 000011112222333344445555666677778888.cloudfront.net (CloudFront)"
],
"X-Amz-Cf-Id": ["12345000011112222333344445555666677778888-FOOBARBAZ01=="],
"X-Amzn-Trace-Id": ["Root=1-11223344-0000111122223333444455556666"],
"X-Forwarded-For": ["192.168.42.1, 192.168.42.2"],
"X-Forwarded-Port": ["443"],
"X-Forwarded-Proto": ["https"]
},
"queryStringParameters": null,
"multiValueQueryStringParameters": null,
"pathParameters": null,
"stageVariables": null,
"requestContext": {
"resourceId": "myresid123",
"resourcePath": "/",
"httpMethod": "POST",
"extendedRequestId": "WEDabEvJjoEFuzA=",
"requestTime": "05/Mar/2019:10:15:30 +0000",
"path": "/Stage",
"accountId": "463781528503",
"protocol": "HTTP/1.1",
"stage": "Stage",
"domainPrefix": "myapiid123",
"requestTimeEpoch": 1551780930774,
"requestId": "11112222-3333-4444-5555-666677778888",
"identity": {
"cognitoIdentityPoolId": null,
"accountId": null,
"cognitoIdentityId": null,
"caller": null,
"sourceIp": "192.168.42.1",
"accessKey": null,
"cognitoAuthenticationType": null,
"cognitoAuthenticationProvider": null,
"userArn": null,
"userAgent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/72.0.3626.119 Chrome/72.0.3626.119 Safari/537.36",
"user": null
},
"domainName": "myapiid123.execute-api.eu-west-1.amazonaws.com",
"apiId": "myapiid123"
},
"body": "{\"name\":\"John\",\"email\":\"Doe\",\"phone\":\"+12345678\",\"message\":\"Hello world!\",\"g-recaptcha-response\":\"XXXX_A_GENERATED_RECAPTCHA_RESPONSE_HERE_XXXX\"}",
"isBase64Encoded": false
}