The steps for testing are as follows:
- Sign in to the AWS Management Console and open the API Gateway console at https://console.aws.amazon.com/apigateway/.
- In the Amazon API Gateway navigation pane, choose APIs | lambda-dynamo-data-api | Stages.
- Select GET under Prod/visits/{resourceId}/GET to get the invoke URL, which should look like https://{restapi_id}.execute-api.{region}.amazonaws.com/Prod/visits/{resourceId}.
- Open a new browser tab and enter the https://{restapi_id}.execute-api.{region}.amazonaws.com/Prod/visits/{resourceId} URL. You will get the {"message":"resource_id not a number"} response body. This is because we validated resource_id in the parse_parameters() URL function before ...