In this step, we will test the three APIs we deployed — GET, POST, and DELETE — using Postman.
Make sure you have the Invoke URLs saved from the previous steps:
https://<api-id>.execute-api.ap-southeast-1.amazonaws.com/staging/bookshttps://<api-id>.execute-api.ap-southeast-1.amazonaws.com/staging/books/{id}Open Postman. Click + to open a new tab.
The response body returns a JSON array containing all items from the Books DynamoDB table, including book details, image URLs, and comments. The status code is 200 OK.

Click + to open a new tab.
Select the POST method.
Enter the Invoke URL for the writing API saved from section 4.3.
Click the Body tab, then select form-data.
Fill in the following key-value pairs. For the image key, change its type dropdown from Text to File, then select a local image file from your machine.
Download the image aws-logo.png at Link and select this image file.
| Key | Type | Value |
|---|---|---|
| name | Text | Amazon Web Services in Action 2nd Edition |
| author | Text | Andreas Wittig |
| price | Text | 59.99 |
| category | Text | IT |
| description | Text | Amazon Web Services in Action, Second Edition is a comprehensive introduction to computing, storing, and networking in the AWS cloud. |
| image | File | (select a local image file, e.g., aws-logo.png) |
Click Send. The response body returns “Successfully created item!” with status 200 OK.

Open DynamoDB console.

Click + to open a new tab.
{id} with the ID of the book you just created, e.g., 5:https://<api-id>.execute-api.ap-southeast-1.amazonaws.com/staging/books/5

Return to DynamoDB console → Explore items → Books table → click Run again.

Open Amazon S3 console and navigate to the book-image-resize-shop-by-tranvix bucket.
aws-logo.png) has been removed. The bucket should show Objects (0).
The book_delete Lambda function deletes both the item from DynamoDB and the associated image from the S3 resize bucket atomically. This confirms the end-to-end flow is working correctly.