Skip to content

Commit df78a40

Browse files
author
Andrea Scuderi
committed
Fix local_invoke_demo_app in Makefile
1 parent 8ed8608 commit df78a40

2 files changed

Lines changed: 40 additions & 1 deletion

File tree

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ local_setup_dynamo_db:
2929
--region us-east-1
3030

3131
local_invoke_demo_app:
32-
curl -X POST 127.0.0.1:7000/invoke -H "Content-Type: application/json" -d @Tests/BreezeLambdaAPITests/Fixtures/post_products_api_gtw.json
32+
curl -X POST 127.0.0.1:7000/invoke -H "Content-Type: application/json" -d @Sources/BreezeLambdaItemAPI/Resources/post_items_api_gtw.json
3333

3434
test:
3535
swift test --sanitize=thread --enable-code-coverage
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
{
2+
"body": "{\n \"itemKey\": \"2023\",\n \"name\": \"Swift Serverless API with async/await! 🚀🥳\",\n \"description\": \"BreezeLambaAPI is magic 🪄!\"\n} ",
3+
"headers": {
4+
"accept": "*/*",
5+
"accept-encoding": "gzip, deflate, br",
6+
"cache-control": "no-cache",
7+
"content-length": "137",
8+
"content-type": "application/json",
9+
"host": "br33z3ap10.execute-api.eu-west-1.amazonaws.com",
10+
"postman-token": "7005b89f-915e-4c30-9237-8832e7842f91",
11+
"user-agent": "PostmanRuntime/7.31.0",
12+
"x-amzn-trace-id": "Root=1-63f7d7e5-0381fae826a3075e05564773",
13+
"x-forwarded-for": "140.228.54.79",
14+
"x-forwarded-port": "443",
15+
"x-forwarded-proto": "https"
16+
},
17+
"isBase64Encoded": false,
18+
"rawPath": "/products",
19+
"rawQueryString": "",
20+
"requestContext": {
21+
"accountId": "00000000000",
22+
"apiId": "br33z3ap10",
23+
"domainName": "br33z3ap10.execute-api.eu-west-1.amazonaws.com",
24+
"domainPrefix": "br33z3ap10",
25+
"http": {
26+
"method": "POST",
27+
"path": "/products",
28+
"protocol": "HTTP/1.1",
29+
"sourceIp": "140.228.54.79",
30+
"userAgent": "PostmanRuntime/7.31.0"
31+
},
32+
"requestId": "Az6r9ijSDoEEJdQ=",
33+
"stage": "$default",
34+
"time": "23/Feb/2023:21:17:25 +0000",
35+
"timeEpoch": 1677187045849
36+
},
37+
"routeKey": "POST /products",
38+
"version": "2.0"
39+
}

0 commit comments

Comments
 (0)