Test the API Gateway REST endpoint integrated with the Lambda Function to verify the data operations performed on DynamoDB.
Download and install Postman before starting this section.








Open Postman
Choose GET
Enter URL:https://<api_id>.execute-api.ap-southeast-1.amazonaws.com/dev/api/v1/reviews/product/1
Headers tab:
Content-Type | Value: application/jsonAuthorization tab:
ap-southeast-1execute-apiClick Send
Result: Returns the list of Items from the reviews table.

Choose POST
URL:https://<api_id>.execute-api.ap-southeast-1.amazonaws.com/dev/api/v1/reviews/submit
Body → raw → JSON
{
"customerId": 2,
"rating": 4,
"comment": "Chim ăn ngon và vui vẻ!",
"customerName": "Nguyễn Văn B"
}
Click Send
Result: Inserts a new Item into the Review table.