File tree Expand file tree Collapse file tree 6 files changed +6
-6
lines changed
Expand file tree Collapse file tree 6 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ The output will be:
5656
5757``` bash
5858CloudFront URL: https://1e372b81.cloudfront.localhost.localstack.cloud
59- API Gateway Endpoint: http://localhost:4566/restapis /4xu5emxibf/test/_user_request_
59+ API Gateway Endpoint: http://localhost:4566/_aws/execute-api /4xu5emxibf/test/_user_request_
6060```
6161
6262Navigate to the CloudFront URL to check out the app. The script would also seed some quiz data and user data to make local testing easier.
Original file line number Diff line number Diff line change @@ -220,7 +220,7 @@ log "Deploying API..."
220220awslocal apigateway create-deployment \
221221 --rest-api-id $API_ID \
222222 --stage-name test > /dev/null
223- API_ENDPOINT=" http://localhost:4566/restapis /$API_ID /test/_user_request_"
223+ API_ENDPOINT=" http://localhost:4566/_aws/execute-api /$API_ID /test/_user_request_"
224224log " API deployed. Endpoint: $API_ENDPOINT "
225225
226226# SQS DLQ -> EventBridge Pipes -> SNS
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ if [ -z "$API_ID" ]; then
2525 exit 1
2626fi
2727
28- API_ENDPOINT=" $AWS_ENDPOINT_URL /restapis /$API_ID /test/_user_request_"
28+ API_ENDPOINT=" $AWS_ENDPOINT_URL /_aws/execute-api /$API_ID /test/_user_request_"
2929
3030create_quiz () {
3131 local quiz_data=$1
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ if [ -z "$API_ID" ]; then
1414 exit 1
1515fi
1616
17- API_ENDPOINT=" $AWS_ENDPOINT_URL /restapis /$API_ID /test/_user_request_"
17+ API_ENDPOINT=" $AWS_ENDPOINT_URL /_aws/execute-api /$API_ID /test/_user_request_"
1818
1919echo " REACT_APP_API_ENDPOINT=$API_ENDPOINT " > .env.local
2020
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ def api_endpoint():
1919 raise Exception (f"API { API_NAME } not found." )
2020
2121 API_ID = api ['id' ]
22- API_ENDPOINT = f"http://localhost:4566/restapis /{ API_ID } /test/_user_request_"
22+ API_ENDPOINT = f"http://localhost:4566/_aws/execute-api /{ API_ID } /test/_user_request_"
2323
2424 print (f"API Endpoint: { API_ENDPOINT } " )
2525
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ def api_endpoint(apigateway_client):
2828 raise Exception (f"API { API_NAME } not found." )
2929
3030 API_ID = api ['id' ]
31- API_ENDPOINT = f"{ LOCALSTACK_ENDPOINT } /restapis /{ API_ID } /test/_user_request_"
31+ API_ENDPOINT = f"{ LOCALSTACK_ENDPOINT } /_aws/execute-api /{ API_ID } /test/_user_request_"
3232
3333 print (f"API Endpoint: { API_ENDPOINT } " )
3434
You can’t perform that action at this time.
0 commit comments