Search

Result

curl -X GET '<apigw_endpoint>/test/helloworld?greeter=John'
Shell
복사
curl -X GET <apigw_endpoint>/test/helloworld \ -H 'content-type: application/json' \ -H 'greeter: John'
Shell
복사
curl -X POST <apigw_endpoint>/test/helloworld \ -H 'content-type: application/json' \ -d '{ "greeter": "John" }'
Shell
복사
{ "resource":"/helloworld", "path":"/helloworld", "httpMethod":"POST", "headers":{ "Accept":"*/*", "content-type":"application/json", "Host":"ff64259w96.execute-api.ap-northeast-2.amazonaws.com", "User-Agent":"curl/8.14.1", "X-Amzn-Trace-Id":"Root=1-68a2fc75-5ae6f490281071df53869dad", "X-Forwarded-For":"104.28.209.47", "X-Forwarded-Port":"443", "X-Forwarded-Proto":"https" }, "multiValueHeaders":{ "Accept":[ "*/*" ], "content-type":[ "application/json" ], "Host":[ "ff64259w96.execute-api.ap-northeast-2.amazonaws.com" ], "User-Agent":[ "curl/8.14.1" ], "X-Amzn-Trace-Id":[ "Root=1-68a2fc75-5ae6f490281071df53869dad" ], "X-Forwarded-For":[ "104.28.209.47" ], "X-Forwarded-Port":[ "443" ], "X-Forwarded-Proto":[ "https" ] }, "queryStringParameters":"None", "multiValueQueryStringParameters":"None", "pathParameters":"None", "stageVariables":"None", "requestContext":{ "resourceId":"k4b1n4", "resourcePath":"/helloworld", "httpMethod":"POST", "extendedRequestId":"PfxiWEDpoE0EQjw=", "requestTime":"18/Aug/2025:10:12:05 +0000", "path":"/test/helloworld", "accountId":"362708816803", "protocol":"HTTP/1.1", "stage":"test", "domainPrefix":"ff64259w96", "requestTimeEpoch":1755511925062, "requestId":"75665390-f4a0-409b-b0a7-8a7812fb1136", "identity":{ "cognitoIdentityPoolId":"None", "accountId":"None", "cognitoIdentityId":"None", "caller":"None", "sourceIp":"104.28.209.47", "principalOrgId":"None", "accessKey":"None", "cognitoAuthenticationType":"None", "cognitoAuthenticationProvider":"None", "userArn":"None", "userAgent":"curl/8.14.1", "user":"None" }, "domainName":"ff64259w96.execute-api.ap-northeast-2.amazonaws.com", "deploymentId":"3b660v", "apiId":"ff64259w96" }, "body":"{ \"greeter\": \"John\" }", "isBase64Encoded":false }
JSON
복사