Trong bước này, chúng ta sẽ kiểm tra hoạt động của các API bằng công cụ Postman
Tương tự tạo một tab mới
{
"id": "5",
"rv_id": 0,
"name": "Amazon Web Services in Action 2nd Edition",
"author": "Andreas Wittig",
"price": "59.99",
"category": "IT",
"description": "Amazon Web Services in Action, Second Edition is a comprehensive introduction to computing, storing, and networking in the AWS cloud. You'll find clear, relevant coverage of all the essential AWS services you to know, emphasizing best practices for security, high availability and scalability.",
"image": "https://book-image-resize-store.s3.ap-southeast-2.amazonaws.com/aws.jpg"
}
Mở bảng Books trong bảng điều khiển của DynamoDB kiểm tra dữ liệu
Trước khi gọi API ghi
Sau khi gọi API ghi
Vì Lambda function xoá khi thực hiện sẽ xoá ảnh được tải lên bởi người dùng, nên chúng ta tải thủ công ảnh lên S3 bucket để API có thể chạy đúng.
Mở bảng điều khiển của Amazon S3
Ấn vào bucket book-image-store, sau đó nhấn nút Upload
Ấn nút Add files
Tải ảnh sau về máy của bạn và chọn nó để tải lên bucket