1
00:00:00,180 --> 00:00:06,660
In this video we are going to test wrestle microservices with using a Lambda API Gateway and Dynamo

2
00:00:06,660 --> 00:00:07,200
DB.

3
00:00:07,470 --> 00:00:13,050
So in the last video we can see the invocation URL from the or API gateway.

4
00:00:13,080 --> 00:00:20,610
Please open the API gateway and come to post request and copy this inaugural and open the postman.

5
00:00:21,740 --> 00:00:27,970
So we will send a post request in order to create a new item into the DB table.

6
00:00:27,980 --> 00:00:36,350
For that purpose, give the provide the invocation URL, set the post and we should get a body information

7
00:00:36,470 --> 00:00:37,250
in the body.

8
00:00:37,250 --> 00:00:45,460
Select the row and select the JSON format and give this JSON object, which is the creating any font

9
00:00:45,470 --> 00:00:48,290
object into our dynamic DB table, product table.

10
00:00:48,350 --> 00:00:51,120
As you remember that ID is a partition and primary.

11
00:00:51,120 --> 00:00:51,590
Okay.

12
00:00:51,590 --> 00:00:55,820
So that's why the other attributes are is dynamically change.

13
00:00:55,820 --> 00:01:05,540
So after providing this information, click the send button to invoke our HTTP rest API and this API

14
00:01:05,570 --> 00:01:10,970
goes to lambda function and lambda function, interact with the dynamic DB and added any item which

15
00:01:10,970 --> 00:01:20,690
is the product ID one to verify that you can go to Dynamic DB, go to Dynamic DB and see the tables,

16
00:01:21,320 --> 00:01:23,500
explore items and scan command.

17
00:01:23,510 --> 00:01:30,470
We can see that we have successfully create a new item with using the postman and sending API gateway

18
00:01:30,470 --> 00:01:34,550
request and also we can verify from the postman.

19
00:01:34,550 --> 00:01:39,050
If you create a new request we can copy and come here.

20
00:01:39,080 --> 00:01:40,190
We will send the ID.

21
00:01:40,190 --> 00:01:44,030
We get request with a pat parameter, which is the idea of the product.

22
00:01:44,030 --> 00:01:46,310
So we have created product ID one.

23
00:01:46,310 --> 00:01:48,260
So that's why I'm adding this one.

24
00:01:48,260 --> 00:01:56,240
Send the HTP gate method and get this item object in dynamic DB and we have successfully get item and

25
00:01:56,240 --> 00:02:03,770
the last request can be the delete by ID come here and select the delete method and provide to slash

26
00:02:03,770 --> 00:02:04,280
one.

27
00:02:04,550 --> 00:02:09,500
So if you send request to http delete, this would be the delete product one.

28
00:02:09,500 --> 00:02:14,480
And if you come back to items and run, you can see that we have delete successfully.

29
00:02:14,630 --> 00:02:22,910
So as you can see that we have learned about the creating serverless cloud API using a alias API gateway

30
00:02:22,910 --> 00:02:25,430
and a lambda and Dynamo DB.
