1
00:00:01,050 --> 00:00:01,740
Welcome back.

2
00:00:02,280 --> 00:00:10,530
Now, whenever we are updating a movie, it's better to move to pass the movie I.D. with the with the

3
00:00:10,530 --> 00:00:12,720
dictionary that the audio that we already have.

4
00:00:13,170 --> 00:00:19,740
And instead of passing two different types of data, we can pass the idea with the dictionary.

5
00:00:20,340 --> 00:00:22,410
And it's actually a better practice.

6
00:00:23,040 --> 00:00:27,030
So this way, this is not wrong, but it's better to say here.

7
00:00:27,540 --> 00:00:32,260
It's better to say, move the dictionary and then get the ID from the dictionary.

8
00:00:32,280 --> 00:00:34,830
So here we need to see a movie.

9
00:00:35,550 --> 00:00:37,110
And then I'd.

10
00:00:39,080 --> 00:00:44,180
Because now we are dealing with a dictionary and we can use the dictionary to pass, to insert it in

11
00:00:44,180 --> 00:00:47,900
the dictionary, and then we can fetch that idea from the dictionary.

12
00:00:48,230 --> 00:00:50,420
So there is no need to pass two different parameters.

13
00:00:50,930 --> 00:01:00,800
So the user now would have to pass title year storyline and ID exactly as if the user is if the user

14
00:01:01,550 --> 00:01:04,190
was deleting a movie.

15
00:01:04,880 --> 00:01:11,840
But the only difference is that in the end, creating a movie, we don't pass and we pass the title.

16
00:01:11,900 --> 00:01:19,190
The we we supplied the title, the user supplies the title, the title, the year and the storyline.

17
00:01:20,240 --> 00:01:26,960
However, in updating a movie, resupplying the the endpoint with title, with the year and storyline

18
00:01:26,960 --> 00:01:28,580
and the idea as well.

19
00:01:29,210 --> 00:01:31,100
So let's now test when you say about this.

20
00:01:32,330 --> 00:01:33,860
Now let me here refresh.

21
00:01:37,350 --> 00:01:43,980
Now, instead of passing Lane, we show you this now instead of passing this upbeat movie, if you click

22
00:01:43,980 --> 00:01:48,690
on try it out, you will not have two different types of data.

23
00:01:49,120 --> 00:01:53,400
Instead, you will have only one type, which is the dictionary.

24
00:01:53,430 --> 00:01:58,220
Now in the dictionary, we need to supply the dictionary with four rounders.

25
00:01:58,290 --> 00:02:00,930
We need the ID of the title of the year and the story.

26
00:02:01,590 --> 00:02:04,040
So let's edit, for example, the Ice Age here.

27
00:02:04,620 --> 00:02:05,640
I'm going to say it.

28
00:02:06,480 --> 00:02:08,760
The idea is nine ninety.

29
00:02:09,790 --> 00:02:12,970
And then, by the way, I should say it.

30
00:02:14,650 --> 00:02:15,310
And then.

31
00:02:17,000 --> 00:02:17,510
Title.

32
00:02:19,760 --> 00:02:22,730
So the title is going to be Ice Age.

33
00:02:24,630 --> 00:02:29,610
And then year, so I'm going to change the I'm going to change the year.

34
00:02:36,560 --> 00:02:43,250
Again, I'm going to say twenty five, and then finally, we have the.

35
00:02:45,580 --> 00:02:46,090
20.

36
00:02:47,200 --> 00:02:47,680
Like.

37
00:02:51,640 --> 00:02:54,130
I'm going to say new or updated Modi.

38
00:02:56,100 --> 00:02:59,880
Just for the sake of this thing, now, let me click on.

39
00:03:00,960 --> 00:03:01,480
Excuse.

40
00:03:01,800 --> 00:03:07,530
And if you click on excuse, as you can see here, it's going to return the movie now in the database,

41
00:03:07,530 --> 00:03:10,770
we should have the new updated data linear refresh.

42
00:03:12,770 --> 00:03:14,840
And as you can see, the movie has been updated.

43
00:03:15,350 --> 00:03:19,070
Now we have the Ice Age and the year is 2025.

44
00:03:19,610 --> 00:03:22,100
The story line is updated.

45
00:03:23,240 --> 00:03:25,070
So this is how you can.

46
00:03:25,490 --> 00:03:31,880
And instead of passing two different types of data, you can pass only one type and then you can use

47
00:03:31,880 --> 00:03:33,980
that to update the.
