1
00:00:00,450 --> 00:00:02,700
Narrator: Okay, so let's take a look

2
00:00:02,700 --> 00:00:04,830
on what Postman offers us.

3
00:00:04,830 --> 00:00:07,380
So let's close this screen.

4
00:00:07,380 --> 00:00:10,800
Now, we are going to talk mainly on this part of the screen.

5
00:00:10,800 --> 00:00:14,970
Now, here we can define what exactly do we want to

6
00:00:14,970 --> 00:00:16,800
send to a REST API.

7
00:00:16,800 --> 00:00:20,820
So first, we select the http verb we want to use.

8
00:00:20,820 --> 00:00:23,190
Now, you can see here a lot of verbs

9
00:00:23,190 --> 00:00:24,300
you're probably familiar with,

10
00:00:24,300 --> 00:00:27,090
get, post, put, and delete.

11
00:00:27,090 --> 00:00:28,641
We talked about them earlier.

12
00:00:28,641 --> 00:00:31,364
All the other verbs are much less used

13
00:00:31,364 --> 00:00:34,020
and we won't discuss them in this course.

14
00:00:34,020 --> 00:00:37,230
Next, is the URL we want to go.

15
00:00:37,230 --> 00:00:39,660
Now, you can use the URL you see here

16
00:00:39,660 --> 00:00:42,690
but it'll be better if you will use the domain

17
00:00:42,690 --> 00:00:45,540
in receptor that you selected for yourself.

18
00:00:45,540 --> 00:00:49,830
So you will probably need to modify this part.

19
00:00:49,830 --> 00:00:52,800
So type the domains that you picked

20
00:00:52,800 --> 00:00:55,023
and then let's click send.

21
00:00:57,150 --> 00:00:59,520
Now, look what we've got.

22
00:00:59,520 --> 00:01:02,910
Postman here shows us the exact response

23
00:01:02,910 --> 00:01:05,640
that we've got from the REST API.

24
00:01:05,640 --> 00:01:09,093
So the first thing that we see is right here, the JSON.

25
00:01:09,093 --> 00:01:11,010
This is the exact result

26
00:01:11,010 --> 00:01:14,220
or the exact response that we were expecting to.

27
00:01:14,220 --> 00:01:17,057
It says that the status is success exactly

28
00:01:17,057 --> 00:01:20,940
as we defined in B Sector, which is great.

29
00:01:20,940 --> 00:01:24,420
Now take a look here, on the right hand of the screen.

30
00:01:24,420 --> 00:01:27,723
We can see this status that returned, which is 200.

31
00:01:28,770 --> 00:01:33,330
How much time it took for the response to get executed

32
00:01:33,330 --> 00:01:34,860
and come back to us.

33
00:01:34,860 --> 00:01:36,360
And this size of the response

34
00:01:36,360 --> 00:01:39,060
which in this case is 218 bytes.

35
00:01:39,060 --> 00:01:41,640
Now, usually this is all the information we need

36
00:01:41,640 --> 00:01:43,950
in order to use REST API.

37
00:01:43,950 --> 00:01:47,850
So we need to see the verb, the url.

38
00:01:47,850 --> 00:01:49,950
If there are query parameters,

39
00:01:49,950 --> 00:01:51,990
which we don't have in this test,

40
00:01:51,990 --> 00:01:53,550
then we will put them here

41
00:01:53,550 --> 00:01:57,720
and we need to see the response and the status.

42
00:01:57,720 --> 00:02:02,720
But it's important to know how exactly is this info to

43
00:02:03,132 --> 00:02:04,830
(indistinct) of the network.

44
00:02:04,830 --> 00:02:08,426
And to see this, click here on view

45
00:02:08,426 --> 00:02:11,550
and show Postman console.

46
00:02:11,550 --> 00:02:15,960
You can also use the keyboard shortcut of alt control C.

47
00:02:15,960 --> 00:02:19,323
So I'll click it and I'll bring it here,

48
00:02:20,340 --> 00:02:23,610
so we can see it and click clear.

49
00:02:23,610 --> 00:02:27,907
And now, let's click send again.

50
00:02:27,907 --> 00:02:31,020
And again, I'll bring back the console

51
00:02:31,020 --> 00:02:32,493
and look what we have here.

52
00:02:33,840 --> 00:02:38,840
The console shows us and make sure to click on raw here.

53
00:02:39,000 --> 00:02:42,753
So the console shows us the raw information

54
00:02:42,753 --> 00:02:45,900
that is transferred between the client and the server.

55
00:02:45,900 --> 00:02:49,620
So what we see here is first this, this is the request.

56
00:02:49,620 --> 00:02:54,240
This is the exact string that the client has sent

57
00:02:54,240 --> 00:02:59,010
to the server, and this is the exact string that

58
00:02:59,010 --> 00:03:01,200
was received back from the server.

59
00:03:01,200 --> 00:03:03,150
So actually, this is a response

60
00:03:03,150 --> 00:03:07,770
and if you look at it you can see here the verb, the get.

61
00:03:07,770 --> 00:03:10,744
You can see the URL or part of it

62
00:03:10,744 --> 00:03:13,740
and you can see the host, which is right here.

63
00:03:13,740 --> 00:03:17,727
This is a domain I chose to myself with receptor.

64
00:03:17,727 --> 00:03:21,480
And here you can see the status code, of the 200.

65
00:03:21,480 --> 00:03:23,430
is it okay?

66
00:03:23,430 --> 00:03:26,070
And this is the body.

67
00:03:26,070 --> 00:03:29,070
So the console allows us to see really

68
00:03:29,070 --> 00:03:31,350
the raw data that is going back

69
00:03:31,350 --> 00:03:34,170
and forth between the client and the server.

70
00:03:34,170 --> 00:03:37,230
And here in this screen we can see

71
00:03:37,230 --> 00:03:40,254
the pretty in presentation including the status

72
00:03:40,254 --> 00:03:42,565
and of course the body itself.

73
00:03:42,565 --> 00:03:43,620
Okay, great.

74
00:03:43,620 --> 00:03:47,940
So now we have Postman up and running on our PC.

75
00:03:47,940 --> 00:03:49,683
And we can go on with the course.

