In this video we are going to test wrestle microservices with using a Lambda API Gateway and Dynamo
DB.
So in the last video we can see the invocation URL from the or API gateway.
Please open the API gateway and come to post request and copy this inaugural and open the postman.
So we will send a post request in order to create a new item into the DB table.
For that purpose, give the provide the invocation URL, set the post and we should get a body information
in the body.
Select the row and select the JSON format and give this JSON object, which is the creating any font
object into our dynamic DB table, product table.
As you remember that ID is a partition and primary.
Okay.
So that's why the other attributes are is dynamically change.
So after providing this information, click the send button to invoke our HTTP rest API and this API
goes to lambda function and lambda function, interact with the dynamic DB and added any item which
is the product ID one to verify that you can go to Dynamic DB, go to Dynamic DB and see the tables,
explore items and scan command.
We can see that we have successfully create a new item with using the postman and sending API gateway
request and also we can verify from the postman.
If you create a new request we can copy and come here.
We will send the ID.
We get request with a pat parameter, which is the idea of the product.
So we have created product ID one.
So that's why I'm adding this one.
Send the HTP gate method and get this item object in dynamic DB and we have successfully get item and
the last request can be the delete by ID come here and select the delete method and provide to slash
one.
So if you send request to http delete, this would be the delete product one.
And if you come back to items and run, you can see that we have delete successfully.
So as you can see that we have learned about the creating serverless cloud API using a alias API gateway
and a lambda and Dynamo DB.