1
00:00:00,550 --> 00:00:08,530
Nice job, and once we have the basic structure for all of our roots now let's test them out in the

2
00:00:08,530 --> 00:00:09,090
postman.

3
00:00:09,430 --> 00:00:11,780
So I'm going to head back to my desktop.

4
00:00:11,800 --> 00:00:13,470
I'm looking for the postman.

5
00:00:13,840 --> 00:00:17,290
And since in this case, we'll spend way more time over here.

6
00:00:17,410 --> 00:00:19,950
I also want to cover some configuration options.

7
00:00:20,320 --> 00:00:25,870
So for starters, I want to switch to a dark moon because I think you'll appreciate that more.

8
00:00:26,230 --> 00:00:32,259
So if you want to do that as well, just go to the Kog and then you're looking for the settings here

9
00:00:33,010 --> 00:00:34,480
and in the settings.

10
00:00:34,480 --> 00:00:35,860
Just look for themes.

11
00:00:36,250 --> 00:00:39,310
And of course, we have a dark theme as well.

12
00:00:39,620 --> 00:00:41,290
So that's the first thing that I'm going to do.

13
00:00:41,800 --> 00:00:43,930
Then we want to create a collection.

14
00:00:44,290 --> 00:00:45,770
Now, why would you want to do that?

15
00:00:46,150 --> 00:00:52,360
Well, since we'll be setting up multiple routes and they will reference the same application, which

16
00:00:52,360 --> 00:00:56,920
is going to be easier as we create more and more applications.

17
00:00:57,250 --> 00:01:03,030
And in order to create that collection, we go here and click on creating the collection.

18
00:01:03,310 --> 00:01:05,650
And for starters, I just want to change the name.

19
00:01:06,040 --> 00:01:08,730
So I'll click on these three dots over here.

20
00:01:09,370 --> 00:01:16,930
And of course, we're looking for rename and then I'm just going to go with a zero three and we'll call

21
00:01:16,930 --> 00:01:18,550
this task manager.

22
00:01:18,790 --> 00:01:22,050
Now, if you're not happy with this name, of course, pick your own one.

23
00:01:22,420 --> 00:01:28,480
And once I have the task manager, then we want to start by creating a request.

24
00:01:28,870 --> 00:01:30,940
So we create a new request.

25
00:01:31,210 --> 00:01:32,590
It's going to be a request.

26
00:01:32,980 --> 00:01:41,410
And instead of typing all the time manually here local then host and we're going to go three thousand

27
00:01:41,410 --> 00:01:44,140
and then of course, API version one.

28
00:01:44,140 --> 00:01:48,680
And then tasks when we want to do is set up a global variable.

29
00:01:49,210 --> 00:01:51,490
Now there's multiple ways how we can do that.

30
00:01:51,490 --> 00:01:53,580
You can actually set up the environment.

31
00:01:53,950 --> 00:01:59,080
So think of this as a dev environment and then you're going to have production environment.

32
00:01:59,470 --> 00:02:08,080
But in our case, we'll just set up this localhost and then three thousand an API and version one simply

33
00:02:08,620 --> 00:02:09,789
as a variable.

34
00:02:09,910 --> 00:02:11,260
And you can do it from here.

35
00:02:11,350 --> 00:02:13,780
As you can see, they even give you some suggestion and all that.

36
00:02:14,050 --> 00:02:18,040
But I'm just going to go the long round where we click here on that.

37
00:02:18,040 --> 00:02:20,140
I am on notice.

38
00:02:20,350 --> 00:02:22,510
I have already one for the URL.

39
00:02:22,690 --> 00:02:28,520
I have localhost three thousand and I actually change it later to forward slash API.

40
00:02:29,200 --> 00:02:32,530
So now what I want to do, I want to showcase how we can remove it.

41
00:02:32,800 --> 00:02:39,790
So if I go here and if I remove it and I set up a new one in this case, again, I'll call this URL

42
00:02:40,110 --> 00:02:42,400
on line as far as this, very well.

43
00:02:42,410 --> 00:02:43,930
I'm just going to take this whole thing.

44
00:02:44,170 --> 00:02:47,530
So I'm going to go with a localhost and then three thousand.

45
00:02:47,770 --> 00:02:49,930
And of course we're looking for API.

46
00:02:50,230 --> 00:02:52,510
And if you want, you can also include the tasks.

47
00:02:52,780 --> 00:02:56,820
But in my case, I'll stop right after the version one.

48
00:02:57,160 --> 00:02:58,660
So let's copy that one again.

49
00:02:58,660 --> 00:03:04,320
I'm setting this up as a global, but you can set it up in the environment as well.

50
00:03:04,780 --> 00:03:10,040
And then once we add, that should be able to write a way to access it.

51
00:03:10,360 --> 00:03:12,040
So now, of course, we just need to save it.

52
00:03:12,310 --> 00:03:18,160
And then in order to use it, we need to go back and, you know, remove everything for now.

53
00:03:18,460 --> 00:03:24,430
And if we go with these double Curley's, this is going to give us access to those variables.

54
00:03:24,430 --> 00:03:26,980
And all the way in the bottom, we have the URL.

55
00:03:26,980 --> 00:03:30,400
And, of course, as you can see, it is global in here.

56
00:03:30,400 --> 00:03:31,810
I'm going to go with your URL.

57
00:03:32,110 --> 00:03:36,640
I'll close it and then I'll go with forward slash and then tasks.

58
00:03:36,970 --> 00:03:41,860
And once I save, I should get back, get all tasks.

59
00:03:42,100 --> 00:03:44,940
And of course, that means that our basic setup works.

60
00:03:45,400 --> 00:03:51,160
And before we continue to do the same thing with the rest of tasks now, of course we want to save it

61
00:03:51,400 --> 00:03:55,390
and not only want to save it, we want to save it in our collection.

62
00:03:55,660 --> 00:04:00,930
So let's click over here, save us and let's give it a more meaningful name.

63
00:04:01,300 --> 00:04:06,220
And in this case, again, I'll say get all tasks.

64
00:04:06,670 --> 00:04:08,970
And of course, we're looking for task manager.

65
00:04:09,370 --> 00:04:14,650
So this is going to be served in this collection and we simply click on Save.

66
00:04:14,890 --> 00:04:21,279
So if I take a look at my task manager now, of course I have to get all tasks where we use the global

67
00:04:21,279 --> 00:04:25,150
variable and we can successfully see our strength.

68
00:04:25,510 --> 00:04:32,410
And I'll close a few of these tabs because it's getting quite busy and let's do the same thing for rest

69
00:04:32,410 --> 00:04:32,710
of them.

70
00:04:33,400 --> 00:04:37,990
So in this case, I'm going to be testing of the create one, the one for the post.

71
00:04:38,260 --> 00:04:40,030
That's where we need to change the method.

72
00:04:40,250 --> 00:04:41,890
That's the first thing you want to do.

73
00:04:42,220 --> 00:04:49,060
Then we'll go with our URL again and close it out forward slash and then tasks.

74
00:04:49,330 --> 00:04:52,770
And remember, now we want to send some data, correct.

75
00:04:53,020 --> 00:04:56,470
Now, we're not doing anything with that data on a server.

76
00:04:56,800 --> 00:04:59,790
But just for the kicks, why don't we send it from.

77
00:04:59,900 --> 00:05:06,020
Going to go here with body and we're looking for the law and of course, we're not looking for text,

78
00:05:06,290 --> 00:05:11,600
we're looking for Gersen, we just need to make sure that we use the correct syntax.

79
00:05:11,990 --> 00:05:16,490
And in this case, I'll say a name and I will be equal to testing.

80
00:05:16,880 --> 00:05:18,710
And we just click on send.

81
00:05:18,930 --> 00:05:22,520
And if we can create task, we are in good shape.

82
00:05:22,850 --> 00:05:28,160
Now, since I also want to test out whether my middle is working, I'm going to go back to my comptrollers.

83
00:05:28,160 --> 00:05:30,830
I'm looking for create a task.

84
00:05:31,230 --> 00:05:36,620
And here, instead of just going with Sunde, we're going to go with Georgetown.

85
00:05:37,010 --> 00:05:42,340
So I'll be sending back the Jessan and I'll pass in that body.

86
00:05:42,860 --> 00:05:46,330
So if you want, of course, you can come to logit on a server.

87
00:05:46,340 --> 00:05:52,850
But in my case, I think it's going to be faster if I just send back whatever I'm getting from the client.

88
00:05:53,240 --> 00:05:59,900
So if we go back, if we change this around and we'll say, here, shake and.

89
00:06:00,980 --> 00:06:11,230
Big, if we add a comma and then completed, we set to trail once we send, that should be our response.

90
00:06:11,510 --> 00:06:17,650
And of course, the only thing that's left to do as far as the creator route is go to save us and then

91
00:06:17,660 --> 00:06:21,020
we'll say create a task, save it.

92
00:06:21,440 --> 00:06:23,210
And now let's continue again.

93
00:06:23,210 --> 00:06:26,680
I'll close these ones just so it's not that busy.

94
00:06:27,050 --> 00:06:29,240
And in this case, I want to go with Getrude.

95
00:06:29,810 --> 00:06:33,410
Then we want to go here with the Aurélien.

96
00:06:33,800 --> 00:06:39,930
And of course, we haven't set up the database, so there is no real ID, but we can definitely test

97
00:06:39,950 --> 00:06:44,310
it out if we just go with tasks and whatever gibberish.

98
00:06:44,330 --> 00:06:47,230
So in this case, I'm going to go with hello.

99
00:06:47,270 --> 00:06:49,350
So that's going to be my idea.

100
00:06:49,670 --> 00:06:54,440
So we're not sending anything as far as data, but we are using the programs.

101
00:06:54,800 --> 00:07:01,730
Again, if we take a look at the roots, we can clearly see that we have ports and then that is going

102
00:07:01,730 --> 00:07:03,260
to be our program.

103
00:07:03,620 --> 00:07:10,850
And if we want to start out where we have got to ask, of course, we have the request and the idea

104
00:07:10,850 --> 00:07:12,350
is sitting in the Bahamas.

105
00:07:12,750 --> 00:07:14,510
So in here, I'll do the same thing.

106
00:07:14,630 --> 00:07:18,750
I'll say Drayson, and we'll just say Heidi.

107
00:07:18,980 --> 00:07:22,210
And that one is equal to rec programs.

108
00:07:22,490 --> 00:07:30,890
And Yarrie So if we save here and then go back and just use the carrot and click and we have the key

109
00:07:31,220 --> 00:07:35,790
with the name of Aadi, and then the value is hello.

110
00:07:36,170 --> 00:07:42,080
So if we'll change it around and if it's a beta course, the value will be here again.

111
00:07:42,260 --> 00:07:46,090
Same spiel we go save as an name.

112
00:07:46,100 --> 00:07:49,750
This update desk or I'm sorry, get single desk.

113
00:07:49,760 --> 00:07:53,600
My apologies, get single task and save it.

114
00:07:53,810 --> 00:07:55,310
And then we have two more.

115
00:07:55,490 --> 00:08:01,310
We have one for update and one for of and not speed this up.

116
00:08:01,520 --> 00:08:03,770
I don't think I'm going to do any testing anymore.

117
00:08:04,040 --> 00:08:06,020
We simply want to open up a new route.

118
00:08:06,260 --> 00:08:08,450
We want to go with Patch in this case.

119
00:08:08,810 --> 00:08:15,200
And again, we're going with your URL and then forward slash tasks, whatever value you want to pass

120
00:08:15,200 --> 00:08:16,220
in over here.

121
00:08:16,550 --> 00:08:19,360
So I'm going to go with one, two, three cent.

122
00:08:19,370 --> 00:08:21,650
And of course, I have update task.

123
00:08:21,800 --> 00:08:22,280
Beautiful.

124
00:08:22,760 --> 00:08:23,840
Let's seven one.

125
00:08:24,960 --> 00:08:27,330
And we're right here update.

126
00:08:28,470 --> 00:08:36,450
And task on the last one, of course, is delayed, so let's close these two and go on your quest.

127
00:08:36,700 --> 00:08:39,000
We're looking for the lead method.

128
00:08:39,450 --> 00:08:41,750
The euro is going to be exactly the same.

129
00:08:42,179 --> 00:08:48,570
And then we want to go with ports tasks and on any of the ideas that we have over the years since,

130
00:08:48,570 --> 00:08:50,330
we'll change that later anyway.

131
00:08:50,700 --> 00:08:53,230
And once we send, the response should be deleted.

132
00:08:53,940 --> 00:08:59,160
Now, if you don't want to go with savours, you can simply click on command s.

133
00:08:59,730 --> 00:09:01,080
That's going to be a shortcut.

134
00:09:01,320 --> 00:09:05,100
And we go here with the lead and on task.

135
00:09:05,100 --> 00:09:08,970
And of course we save it in the same task manager.

136
00:09:09,420 --> 00:09:16,470
And once we can clearly see that we can access all our results correctly, then we can move on to our

137
00:09:16,470 --> 00:09:17,250
next topic.

