1
00:00:03,719 --> 00:00:04,860
Welcome back.

2
00:00:04,890 --> 00:00:10,110
In this video, let's see how we can use Postman for API Development.

3
00:00:10,140 --> 00:00:14,310
The previous video we made use of this extension called Tenda.

4
00:00:14,340 --> 00:00:17,460
So it's going to perform the same functionality.

5
00:00:18,740 --> 00:00:20,700
So what is Postman?

6
00:00:20,720 --> 00:00:25,730
Like I said, Postman is a tool for API development.

7
00:00:25,760 --> 00:00:28,480
So let's go ahead and download Postman.

8
00:00:28,490 --> 00:00:32,980
So scroll down and under download app.

9
00:00:32,990 --> 00:00:34,280
Click on that.

10
00:00:34,960 --> 00:00:39,280
So I am going to download this version for my operating system.

11
00:00:39,280 --> 00:00:47,410
So I click on download, but I have downloaded it already, so let me cancel the download and after

12
00:00:47,410 --> 00:00:50,860
downloading open it and this what you are going to see.

13
00:00:51,340 --> 00:00:54,970
So after that make sure that you create an account.

14
00:00:54,970 --> 00:01:00,640
So if you don't have an account, click on create or you can sign in with your Gmail account.

15
00:01:00,730 --> 00:01:02,500
So click on that.

16
00:01:02,500 --> 00:01:09,580
So here you can sign up using your email or you can sign up using your Gmail account.

17
00:01:09,580 --> 00:01:14,380
So because I have an account, I'll click this one to sign in.

18
00:01:14,380 --> 00:01:18,310
And the signing in is pretty simple using your Google account.

19
00:01:18,310 --> 00:01:20,020
So I have to account.

20
00:01:20,020 --> 00:01:21,760
Let me click on this one.

21
00:01:22,090 --> 00:01:25,780
So after clicking on that, this is what you are going to see.

22
00:01:25,810 --> 00:01:28,080
Good evening, Web dev.

23
00:01:28,090 --> 00:01:31,210
So now let me take you through the interface.

24
00:01:31,210 --> 00:01:32,500
All right, great.

25
00:01:32,500 --> 00:01:35,950
So the first thing is we need to customize if you want it.

26
00:01:35,950 --> 00:01:39,160
So let's click on settings here and click on settings.

27
00:01:39,160 --> 00:01:44,980
And here we have two versions, Dark Theme or the light theme, the one that you want.

28
00:01:44,980 --> 00:01:47,140
But I will stick to like theme.

29
00:01:47,590 --> 00:01:54,910
And under general right here, if you want to increase the fonts of the text, you can change it here.

30
00:01:54,910 --> 00:01:59,050
You can make it 16 or 17 or 20, depending how you want it.

31
00:01:59,320 --> 00:02:04,330
And under user interface, if you want to have two pen view, we can change it here.

32
00:02:04,330 --> 00:02:05,830
So now let me close it.

33
00:02:05,830 --> 00:02:12,100
The next step is we need to create a workspace, so let's click this one and now let's go ahead and

34
00:02:12,100 --> 00:02:13,570
create a workspace.

35
00:02:13,780 --> 00:02:17,620
And workspace simply means that where we are going to keep all your roots.

36
00:02:17,620 --> 00:02:20,950
So for the mean time, let's make it express.

37
00:02:22,300 --> 00:02:28,630
Express routing, and then you can give a description about the workspace.

38
00:02:28,630 --> 00:02:35,400
So now and visibility let me change to personal because it is only me who is going to develop this API.

39
00:02:35,410 --> 00:02:38,230
So let me click on Create Workspace.

40
00:02:38,230 --> 00:02:39,880
So let's wait a moment.

41
00:02:39,880 --> 00:02:44,170
And after that here we have couple of tasks here.

42
00:02:44,200 --> 00:02:47,410
The one that we care most is called collections.

43
00:02:47,410 --> 00:02:50,290
So collections are the pieces of the root.

44
00:02:50,290 --> 00:02:56,290
So here we can create a collection for what we are going to do is about posts, right?

45
00:02:56,290 --> 00:02:59,770
So you name it as post collection as that.

46
00:02:59,860 --> 00:03:07,150
And then inside is time to create our requests as we did inside the tender client.

47
00:03:07,180 --> 00:03:11,860
You can see here that we add date the root here.

48
00:03:11,890 --> 00:03:15,730
The same thing going to provide us inside postman.

49
00:03:15,850 --> 00:03:18,010
So now I'm back to post mine here.

50
00:03:18,040 --> 00:03:25,870
Let's add our first request and now let's change this one to lists or post it enter.

51
00:03:26,230 --> 00:03:29,620
You can see this is same as the tender client.

52
00:03:29,620 --> 00:03:32,410
We need to provide the HTTP method.

53
00:03:32,440 --> 00:03:38,890
They are all listed here and then the you are our so here for fetching single record here.

54
00:03:38,890 --> 00:03:40,330
This is a URL.

55
00:03:40,360 --> 00:03:42,640
I'll copy that and then paste it here.

56
00:03:42,910 --> 00:03:44,800
So this is get request.

57
00:03:44,800 --> 00:03:47,620
So now when I hit send, have a look.

58
00:03:47,620 --> 00:03:52,150
You can see that I have it as I used the turn the client.

59
00:03:52,150 --> 00:03:53,470
So now the same thing.

60
00:03:53,470 --> 00:03:57,400
If I hit send inside here, I get the same result.

61
00:03:57,400 --> 00:03:58,150
Welcome.

62
00:03:58,150 --> 00:04:01,300
So now I'll click on this one to save it.

63
00:04:01,690 --> 00:04:04,150
The next endpoints is to create.

64
00:04:04,150 --> 00:04:14,590
So I'll click on this and duplicate and I'm going to rename this one to create posts and the endpoint

65
00:04:14,600 --> 00:04:16,149
going to be post.

66
00:04:17,910 --> 00:04:22,260
And the HTTP method is going to be posts and now the endpoint.

67
00:04:22,260 --> 00:04:27,420
There is no slash like this, but instead for a slide post, let me save it.

68
00:04:27,420 --> 00:04:29,190
And now let me hit send.

69
00:04:29,190 --> 00:04:35,760
And now you see that I get create posts which the same as we did inside the client.

70
00:04:35,820 --> 00:04:42,510
And after that let me duplicate that one to click and click this one and click on duplicate and let

71
00:04:42,510 --> 00:04:43,890
me do that quickly.

72
00:04:43,890 --> 00:04:47,490
So let me change this one to fetch single post.

73
00:04:47,490 --> 00:04:52,830
So here I'm going to be single post and we use what is called gate request.

74
00:04:52,830 --> 00:04:56,880
So here provides with dynamic ID any ID here.

75
00:04:56,880 --> 00:05:00,190
When I hit send, you see that I have welcome.

76
00:05:00,210 --> 00:05:03,030
So let me hit save here to save it.

77
00:05:03,360 --> 00:05:07,350
The next one is going to be update.

78
00:05:07,350 --> 00:05:09,690
Right, so let me duplicate this one.

79
00:05:10,020 --> 00:05:18,630
So I would change this one to update post and the HTTP method is put and definitely the same route.

80
00:05:18,630 --> 00:05:21,420
So let me save it and then let me hit send.

81
00:05:21,540 --> 00:05:24,660
And lastly, it's about the delete.

82
00:05:24,660 --> 00:05:34,500
So let me rename it and change this one to delete post, delete post and let me change the HTTP method

83
00:05:34,500 --> 00:05:35,430
to delete.

84
00:05:35,460 --> 00:05:39,900
Let me save it and let me hit send and now I have delete posts.

85
00:05:40,290 --> 00:05:47,550
All right, now that we have the to the next video, let's go ahead and implement the actual data where

86
00:05:47,550 --> 00:05:55,140
we can run the server and create a file and then folder where we can add post to the file and many more.

87
00:05:55,170 --> 00:05:57,510
Let's get into that in the next video.

