1
00:00:00,360 --> 00:00:03,150
Now, let's our test them out.

2
00:00:03,450 --> 00:00:05,340
So let's go back to the postman.

3
00:00:06,180 --> 00:00:08,760
I think I can close this one.

4
00:00:09,390 --> 00:00:13,020
Maybe if I need to set it up, I'll set up from scratch for time being.

5
00:00:13,770 --> 00:00:21,360
It's just annoying, so I'll say, don't save or close these rooms and then in the e-commerce or create

6
00:00:21,360 --> 00:00:24,390
another folder, and I'm going to call this one user.

7
00:00:25,170 --> 00:00:28,230
And again, we're looking for five routes.

8
00:00:29,170 --> 00:00:29,950
So first.

9
00:00:30,950 --> 00:00:34,030
I want to go here and I want to say, get all users.

10
00:00:34,060 --> 00:00:44,740
It's going to be a get round look for Earl Cifuentes users and then this is going to go root so it can

11
00:00:44,740 --> 00:00:48,190
just send and we should get get all users around.

12
00:00:48,430 --> 00:00:49,990
Now we want to save this one.

13
00:00:50,650 --> 00:00:53,860
And again, I just need to be careful since I have all these drives and all that.

14
00:00:53,860 --> 00:00:54,760
So I'm going to go here.

15
00:00:55,270 --> 00:00:56,230
Let me go to the user.

16
00:00:56,750 --> 00:01:00,190
I'm just going to say that that all users.

17
00:01:00,530 --> 00:01:01,840
All right, awesome.

18
00:01:02,380 --> 00:01:08,680
Van, we want to do the same thing for us to get around so I can close this one and go with get.

19
00:01:09,040 --> 00:01:11,770
And in this case, I'm going to be getting a single user.

20
00:01:11,890 --> 00:01:13,750
So want to go with that URL?

21
00:01:14,320 --> 00:01:21,010
And then if I'm going to go with users and then some kind of I.D. again, this point, we don't have

22
00:01:21,010 --> 00:01:23,980
the ID, but I'm just going to say one, two three.

23
00:01:24,010 --> 00:01:32,650
That's going to be my I.D. once I send notice here, how we're getting a single user grasim, get single

24
00:01:33,130 --> 00:01:35,980
user running, we want to go with Show Me.

25
00:01:36,400 --> 00:01:45,760
So this will display info about the current user scores this one and then just go here and I'm going

26
00:01:45,760 --> 00:01:46,990
to set your URL.

27
00:01:48,260 --> 00:01:59,300
And users and show me once Sun show current user and I know that you're probably sick of hearing this.

28
00:02:00,000 --> 00:02:06,000
But let me just showcase what happens if you move it below in the router.

29
00:02:06,020 --> 00:02:08,240
So let me go back in the.

30
00:02:09,090 --> 00:02:10,440
Sorry off or I'm sorry.

31
00:02:10,470 --> 00:02:18,060
User wrote, If I'll move this sucker or any of the update user, and I'm that user password below.

32
00:02:19,040 --> 00:02:27,290
And if we're going to go back here to the United Nations user controller, I'm not I'm looking for that

33
00:02:27,290 --> 00:02:27,680
idea.

34
00:02:27,680 --> 00:02:30,420
Remember that it is in params.

35
00:02:30,920 --> 00:02:31,370
Correct.

36
00:02:31,790 --> 00:02:36,260
So why don't we send back what we're getting back in the red dot primes?

37
00:02:36,920 --> 00:02:38,450
So go here, Rick.

38
00:02:39,660 --> 00:02:40,950
And arms.

39
00:02:41,400 --> 00:02:43,650
So that's the object that we're getting back over here.

40
00:02:44,340 --> 00:02:46,350
And then let's go back to the single user.

41
00:02:46,590 --> 00:02:49,230
Sorry, if I send it here, it's going to be it.

42
00:02:49,860 --> 00:02:50,580
One, two three.

43
00:02:50,910 --> 00:02:51,300
Correct.

44
00:02:51,690 --> 00:02:59,130
Now, if you're going to go with users and then show me, and if it's going to be below the colon ID,

45
00:02:59,610 --> 00:03:02,760
then this show me will be treated as that ID.

46
00:03:03,120 --> 00:03:03,450
All right.

47
00:03:03,780 --> 00:03:04,260
Show me.

48
00:03:04,620 --> 00:03:06,000
And that's not what we want.

49
00:03:06,240 --> 00:03:08,160
Basically, we want to set this up as separate.

50
00:03:08,310 --> 00:03:10,530
And yes, there's multiple ways how we can do that.

51
00:03:10,530 --> 00:03:19,470
But one of the ways I want to show here is by essentially just keeping track of which route is in which

52
00:03:19,470 --> 00:03:19,860
order.

53
00:03:20,010 --> 00:03:23,600
Now, these ones doesn't really matter because the names are different here.

54
00:03:23,670 --> 00:03:29,430
So I'm that user a bit user password and all that is different than show me, but this one is treated

55
00:03:29,430 --> 00:03:30,300
as a prime.

56
00:03:30,720 --> 00:03:36,960
So essentially expresses like, well, whatever value passing that, hopefully third time's the charm.

57
00:03:37,200 --> 00:03:42,090
So now it's definitely clear why we're doing that, and now it's set up to more root.

58
00:03:42,870 --> 00:03:46,380
So we have one for update, one to go here.

59
00:03:46,410 --> 00:03:48,600
Or, you know, it's actually I'm going to be posted.

60
00:03:48,600 --> 00:03:49,740
It's going to be a patch.

61
00:03:50,250 --> 00:03:50,900
My apologies.

62
00:03:50,910 --> 00:03:53,280
Actually, I've been setting up everything correctly.

63
00:03:53,720 --> 00:03:58,430
Remember, we're here with your URL and we're going for it users.

64
00:03:58,950 --> 00:04:01,560
And then we want to go with update.

65
00:04:02,950 --> 00:04:09,670
User, and let's try to set up something in a body and to set it up there so we can get it back.

66
00:04:10,270 --> 00:04:12,370
So let's say we're going to go with a name.

67
00:04:13,200 --> 00:04:15,580
No one will be equal to a bobble.

68
00:04:16,760 --> 00:04:24,500
Well, let's say here, say update user, and actually, let's go back here and let's fix it.

69
00:04:24,830 --> 00:04:25,970
This is not post-truth.

70
00:04:26,330 --> 00:04:28,740
We're going to go with Patch as we're updating there.

71
00:04:29,120 --> 00:04:29,840
My apologies.

72
00:04:30,350 --> 00:04:31,670
I out of these rights later.

73
00:04:31,680 --> 00:04:35,060
So yeah, I'm kind of working on them on the fly.

74
00:04:35,240 --> 00:04:35,930
My apologies.

75
00:04:36,260 --> 00:04:38,510
So let's send it here when I'm update user.

76
00:04:38,510 --> 00:04:45,110
And if we take a look at the controller, if I simply go with the red that body, I should see the name

77
00:04:45,110 --> 00:04:45,320
there.

78
00:04:45,720 --> 00:04:50,660
And yep, I have named Bubble, and now it's do the same thing for a password.

79
00:04:50,840 --> 00:04:52,070
Let me remove this one.

80
00:04:52,700 --> 00:04:54,950
Let me go with batch here.

81
00:04:55,900 --> 00:05:03,790
And we'll go with Earl Ranford slash users online, we're looking for update user.

82
00:05:04,620 --> 00:05:06,510
Password like so.

83
00:05:06,840 --> 00:05:09,990
And as a sign up, this is different than forgetting the password.

84
00:05:10,400 --> 00:05:14,640
Round one rules set up over here and next project in the user work pool.

85
00:05:14,910 --> 00:05:18,060
That's where we'll deal with emails and all that cool stuff.

86
00:05:18,390 --> 00:05:25,080
This is just imagine the gooey biographical interface where you have the current password.

87
00:05:25,080 --> 00:05:29,650
You basically need to provide current password and then you provide the new password.

88
00:05:29,670 --> 00:05:30,090
That's it.

89
00:05:30,470 --> 00:05:35,550
So this is not forgetting the password where you're getting the email will cover that one in the next

90
00:05:35,550 --> 00:05:36,030
project.

91
00:05:36,090 --> 00:05:41,730
And on this one, say I'm the update user and password.

92
00:05:42,090 --> 00:05:46,050
Let's say this, and we're just passing some kind of gibberish.

93
00:05:46,680 --> 00:05:54,300
Sarah Jess on set password and that will be equal to a secret.

94
00:05:55,010 --> 00:05:59,310
I've do the same thing just so we know that everything works or is not signed.

95
00:05:59,940 --> 00:06:05,430
We're going to send the body, and if you're going to see password is equal to whatever value you set

96
00:06:05,430 --> 00:06:05,760
it up.

97
00:06:06,450 --> 00:06:07,500
Congratulations.

98
00:06:07,620 --> 00:06:11,310
We have the user root structure in place.

