WEBVTT

1
00:00:00.880 --> 00:00:05.140
Hi everyone and welcome to this lecture
on Postman and how it can be used

2
00:00:05.170 --> 00:00:10.980
to streamline the process of working with
APIs for our react native applications.

3
00:00:11.010 --> 00:00:13.460
Postman is a free tool that allows

4
00:00:13.490 --> 00:00:18.820
developers to send Http requests and view
the responses in a user friendly way.

5
00:00:18.850 --> 00:00:21.940
It's particularly useful for testing APIs

6
00:00:21.970 --> 00:00:26.520
during development as it allows developers
to put test different endpoints

7
00:00:26.550 --> 00:00:29.860
and parameters without
having to write any code.

8
00:00:29.890 --> 00:00:32.300
Let's get started with a quick demo of how

9
00:00:32.320 --> 00:00:36.700
to use Postman to test
a simple API endpoint.

10
00:00:36.730 --> 00:00:42.420
So I'm going to open up our code
from before where we just wrote a simple

11
00:00:42.450 --> 00:00:46.100
Get request that was responding
with Hello World response.

12
00:00:46.130 --> 00:00:49.420
I'm going to run our nodemon using

13
00:00:49.450 --> 00:00:56.460
nodemon server JS in my terminal, and my
server is currently running on port 3000.

14
00:00:56.490 --> 00:01:03.020
And now I'm going to open up Postman
and then I'm going to go to my workspaces

15
00:01:03.050 --> 00:01:08.460
really quickly and I'm just going
to open a new Http request window.

16
00:01:08.490 --> 00:01:16.020
And here all I'm going to do
is write local host localhost.

17
00:01:16.050 --> 00:01:20.460
We're running on port 3000,
so I'm going to write 3000 here.

18
00:01:20.490 --> 00:01:22.380
So I'm just going to do this.

19
00:01:22.410 --> 00:01:26.900
I'm going to say that I'm making a Get
request and I'm going to send it.

20
00:01:26.930 --> 00:01:30.820
And here you're going to see
our Hello World response.

21
00:01:30.850 --> 00:01:35.980
So in the previous videos we used browser
for this, but as we're going to be

22
00:01:36.010 --> 00:01:41.660
learning more request types that we're
going to be making, such as Post, Put,

23
00:01:41.690 --> 00:01:45.290
and Delete, it's going to be very
hard to test those using browser.

24
00:01:45.320 --> 00:01:48.620
So that's why I recommend postman.
Now.

25
00:01:48.650 --> 00:01:50.420
How can you get postman?

26
00:01:50.450 --> 00:01:51.900
If you want to get Postman,

27
00:01:51.930 --> 00:01:58.490
just go to Google, search for Postman,
click the first link here,

28
00:01:58.520 --> 00:02:04.660
and then product and get started for free
and download it for your device.

29
00:02:04.680 --> 00:02:07.290
Once you're all set and you have
everything installed,

30
00:02:07.320 --> 00:02:12.820
just open up your account
I'm already logged in in my account.

31
00:02:12.850 --> 00:02:17.420
And then go to home or workspaces.

32
00:02:17.450 --> 00:02:19.100
Create a new workspace.

33
00:02:19.130 --> 00:02:22.580
I use this one that I already had created.

34
00:02:22.610 --> 00:02:27.890
Click on New,
write your localhost route here,

35
00:02:27.920 --> 00:02:32.220
select the type of the request that you
want to test, and just click on Send.

36
00:02:32.250 --> 00:02:38.980
And for Get request, you should be able
to get the same output as we had here.

37
00:02:39.010 --> 00:02:41.300
So that's all for postman.

38
00:02:41.330 --> 00:02:45.340
This is how easy it's going
to be for us to test our APIs.

39
00:02:45.370 --> 00:02:50.500
And if you're interested in server side
development and want to create more

40
00:02:50.530 --> 00:02:55.020
complex APIs, then Postman
would be very useful to you.

41
00:02:55.050 --> 00:02:57.100
I'll also demonstrate how to use Postman

42
00:02:57.130 --> 00:03:01.660
to test APIs that require specific
parameters later in this section.

43
00:03:01.690 --> 00:03:05.260
In conclusion, I just want to mention
that Postman is a powerful tool

44
00:03:05.290 --> 00:03:09.340
for testing and debugging APIs
for your react native applications.

45
00:03:09.370 --> 00:03:11.500
With Postman, you can quickly and easily

46
00:03:11.530 --> 00:03:16.220
test different endpoints and parameters
and integrate it into your development

47
00:03:16.250 --> 00:03:19.580
workflow to streamline
the process of working with APIs.

48
00:03:19.610 --> 00:03:22.880
Thanks so much for watching
and I'll see you in the next video.

