1
00:00:00,150 --> 00:00:00,550
All right.

2
00:00:00,570 --> 00:00:08,460
And once we have the structure for both, for us as well as jobs, now what we can do the market.

3
00:00:08,730 --> 00:00:16,129
I'm going to close all the tabs just so it's less busy here and I'm going to navigate to a postman and

4
00:00:16,170 --> 00:00:20,850
test that out, whether we're getting back all those dummy strings.

5
00:00:21,480 --> 00:00:26,850
Because if everything's in place, if everything works fine, like I said, start setting up the model

6
00:00:26,850 --> 00:00:30,960
and one by one, we'll start working in the controllers.

7
00:00:31,290 --> 00:00:36,180
So I'm going to navigate back to the as you can see, I have a clear workspace.

8
00:00:36,720 --> 00:00:37,710
I have no collections.

9
00:00:38,190 --> 00:00:41,850
And in this case, I don't think I'm going to use the environment.

10
00:00:42,090 --> 00:00:46,560
I'm just going to set up everything globally again, if you know how to set up an environment.

11
00:00:46,890 --> 00:00:47,880
You can definitely do so.

12
00:00:47,880 --> 00:00:49,590
But that's not going to be my case.

13
00:00:49,620 --> 00:00:59,130
Just keep in mind that eventually, once we save the token here in the postman, I'm going to use the

14
00:00:59,130 --> 00:01:00,060
global approach.

15
00:01:00,480 --> 00:01:02,280
So I'm going to save it as a global variable.

16
00:01:02,490 --> 00:01:06,900
So if you are going with environment, your code is going to be a little bit different.

17
00:01:06,900 --> 00:01:10,260
But of course, I'm going to cover once we get there.

18
00:01:10,740 --> 00:01:13,470
And for starters, I want to create a collection.

19
00:01:14,460 --> 00:01:16,560
I'm going to give it some kind of name.

20
00:01:17,310 --> 00:01:21,840
My gosh, I'm going to go with geography and let me go with all uppercase.

21
00:01:22,290 --> 00:01:29,730
Just because one, we want to set up two more folders here, so we want to go with our folder and in

22
00:01:29,730 --> 00:01:31,920
this case, I'm going to go with jobs.

23
00:01:32,430 --> 00:01:35,130
And then the second one will be the fourth one.

24
00:01:35,640 --> 00:01:36,930
So one more folder.

25
00:01:38,080 --> 00:01:41,350
And a folder, and let's go with us.

26
00:01:41,620 --> 00:01:48,760
So I'm going to go with rename and then off and let's actually start working in the office because I

27
00:01:48,760 --> 00:01:50,800
think it's going to be a little bit faster.

28
00:01:51,360 --> 00:01:51,880
I'm here.

29
00:01:51,880 --> 00:01:52,900
Let's add a request.

30
00:01:54,100 --> 00:01:57,400
So it's not going to be a good request right from the get go.

31
00:01:57,760 --> 00:02:01,420
We want to give a different name, so say register.

32
00:02:02,600 --> 00:02:09,050
User, and it's not going to be a greater focus, like I said, it's going to be a post request and

33
00:02:09,169 --> 00:02:16,700
since we're pretty much going to be repeating the localhost 5000 and the API version one and all that.

34
00:02:17,060 --> 00:02:20,630
Why don't we set it up as a global variable right from the get go?

35
00:02:20,840 --> 00:02:26,210
And you can do that by clicking on the sign and where we have the globals when just go with add and

36
00:02:26,210 --> 00:02:31,880
I'm going to go with your URL and the initial value you're going to be following where I'm going to

37
00:02:31,880 --> 00:02:36,590
navigate to my local host 5000, I should see the welcome I do.

38
00:02:37,040 --> 00:02:38,240
So that's an awesome start.

39
00:02:38,600 --> 00:02:39,980
And then let's copy and paste in.

40
00:02:39,990 --> 00:02:46,940
Like I said, we're going to go with API and then a version one and then we'll go forward slash off

41
00:02:46,940 --> 00:02:49,670
for its nice jobs and hopefully you get the gist.

42
00:02:50,120 --> 00:02:51,350
I'll save this one.

43
00:02:52,220 --> 00:02:56,150
Back in the register user, I have the post request, which is awesome.

44
00:02:56,150 --> 00:03:01,940
And then if I want to access the URL, I'm going to go with double curlies and then I'm going to close

45
00:03:01,940 --> 00:03:06,170
this one and then I'll go with forward slash and burn off.

46
00:03:06,680 --> 00:03:12,260
And then more specifically, looking for the register one now, and surely I'll pass in some values,

47
00:03:12,260 --> 00:03:13,040
but not for now.

48
00:03:13,250 --> 00:03:14,270
So I'm just going to send it.

49
00:03:14,660 --> 00:03:19,310
And if I can see right through user, we are already on the right path.

50
00:03:19,790 --> 00:03:21,990
That means that you are always working well.

51
00:03:22,010 --> 00:03:26,360
That means that the register function is going to work eventually.

52
00:03:26,660 --> 00:03:32,510
And if I'm not going to make some egregious errors, that also means that pretty much the rest of the

53
00:03:32,510 --> 00:03:34,700
rules are going to be good to go as well.

54
00:03:35,450 --> 00:03:40,190
So now in this case, I just want to copy this one and then I'll rename this one.

55
00:03:41,000 --> 00:03:46,580
And by the way, instead of renaming actually went with copy one more time here.

56
00:03:46,610 --> 00:03:51,020
Let's go with your name, and then let's call this log in.

57
00:03:51,380 --> 00:03:55,040
Still going to be a post request, so that stays the same.

58
00:03:55,690 --> 00:03:55,810
Me.

59
00:03:55,910 --> 00:03:57,470
Read more These types there so.

60
00:03:58,160 --> 00:04:01,940
Well, memorial state and log in post request.

61
00:04:02,390 --> 00:04:06,560
Start off the register or welcome for login again or send.

62
00:04:06,710 --> 00:04:08,270
Yep, we have logging in user.

63
00:04:08,870 --> 00:04:09,530
That's awesome.

64
00:04:09,890 --> 00:04:12,290
And then let's copy this one more time.

65
00:04:12,770 --> 00:04:18,110
Let's rename it right away and say Update Update user.

66
00:04:18,320 --> 00:04:19,880
Now this one will be patch.

67
00:04:20,180 --> 00:04:23,850
So let me make sure that I show and navigate to this one.

68
00:04:24,650 --> 00:04:32,080
And then I'll close the log in one patch right here, and then let's go and update the user update.

69
00:04:32,520 --> 00:04:39,380
Here's there, and then I'll mess up some things on a purpose just so we can see whether our error handling,

70
00:04:39,380 --> 00:04:41,510
meaning the URL does not exist, works.

71
00:04:41,900 --> 00:04:47,630
And as you can see right away, even without doing anything, actually have a rule does not exist.

72
00:04:48,050 --> 00:04:51,820
So this is the case where I need to go back and check it out.

73
00:04:51,830 --> 00:04:52,970
What was my actual root?

74
00:04:53,840 --> 00:05:02,810
So back in the Arthur outs, I have update user or it's lush and this should be update user.

75
00:05:03,830 --> 00:05:09,440
And for some reason and off and an update user, I have doesn't exist.

76
00:05:09,740 --> 00:05:13,160
And the reason for that is following where I didn't set up a patch.

77
00:05:13,400 --> 00:05:14,030
My apologies.

78
00:05:14,060 --> 00:05:16,420
You see how easy it is to make a mistake.

79
00:05:16,430 --> 00:05:19,070
So I was going to mess with this one.

80
00:05:19,070 --> 00:05:25,580
The ITBP were in here in the post, man, but I didn't have to do that since I have a bug here in the

81
00:05:25,580 --> 00:05:26,210
arthropods.

82
00:05:26,510 --> 00:05:32,030
So that's how we can know that everything works as far as our error handling as well.

83
00:05:32,360 --> 00:05:36,560
So now I can clearly see I'm that user, which is what I was expecting.

84
00:05:36,890 --> 00:05:38,840
So that should do it for us.

85
00:05:39,260 --> 00:05:41,750
Now we want to do the same thing for two jobs.

86
00:05:42,260 --> 00:05:43,880
So let's go with our request.

87
00:05:44,330 --> 00:05:47,060
The first one will be create job.

88
00:05:47,690 --> 00:05:49,220
Great job.

89
00:05:49,220 --> 00:05:56,210
And this one will be a post request and we use the same URL here.

90
00:05:56,360 --> 00:06:02,030
So you are all online forwards and then jobs, because remember, that was our route throughout.

91
00:06:02,150 --> 00:06:06,840
So let's say this one, Senate and yep, we have great job.

92
00:06:07,190 --> 00:06:08,870
So now let's keep on moving.

93
00:06:09,050 --> 00:06:12,140
And basically, I'll just to placate them.

94
00:06:12,620 --> 00:06:14,930
I believe I had five.

95
00:06:14,960 --> 00:06:15,350
Correct?

96
00:06:15,380 --> 00:06:17,060
So what was it for?

97
00:06:17,300 --> 00:06:18,260
And then one more.

98
00:06:18,800 --> 00:06:20,290
So let's do that or not.

99
00:06:20,570 --> 00:06:22,060
Some reason I decided to delete.

100
00:06:22,070 --> 00:06:22,940
That's not what I wanted.

101
00:06:23,210 --> 00:06:25,550
So now I have five of them, one by one.

102
00:06:25,850 --> 00:06:31,190
I just need to change them around where, first of all, this is not going to be create jobs and get

103
00:06:31,640 --> 00:06:33,170
all jobs.

104
00:06:33,670 --> 00:06:36,410
One, we will set up a get request.

105
00:06:36,410 --> 00:06:41,060
So this is going to be for all the jobs that send up that we have got all jobs.

106
00:06:41,210 --> 00:06:41,960
That's awesome.

107
00:06:42,350 --> 00:06:45,680
Then we want to go with, let's go with stats here.

108
00:06:46,310 --> 00:06:47,480
We're going to go with stats.

109
00:06:47,810 --> 00:06:49,880
I'm going to call this show stats.

110
00:06:50,240 --> 00:06:56,600
And this is going to be a get request and let's send it to show stats.

111
00:06:57,080 --> 00:07:00,390
And then we have one for update and one for delete.

112
00:07:00,440 --> 00:07:02,450
So we're going to go here with jobs.

113
00:07:03,610 --> 00:07:07,220
And then I'll just pass in some dummy value, I'll say one, two, three.

114
00:07:07,240 --> 00:07:09,270
So that's going to be my idea.

115
00:07:09,550 --> 00:07:16,150
Now this will be a patch one and the name here is going to be update job the job.

116
00:07:16,940 --> 00:07:17,870
But Senate, yep.

117
00:07:18,440 --> 00:07:25,160
And then lastly, we have one for the as well, so delete job, and now let's do the same thing one,

118
00:07:25,160 --> 00:07:25,820
two three.

119
00:07:26,210 --> 00:07:29,540
And instead of post, we're going to be looking for delete.

120
00:07:29,720 --> 00:07:32,210
Let's save all of them before I forget.

121
00:07:32,720 --> 00:07:35,340
And then go back to delete.

122
00:07:35,720 --> 00:07:38,690
Send that and I can clearly see delete job.

123
00:07:39,020 --> 00:07:45,730
And once we test everything, once we can clearly see that we're getting the correct values now, I

124
00:07:45,740 --> 00:07:48,800
can start setting up our first model.

