WEBVTT

00:05.150 --> 00:05.980
Hi everyone.

00:05.980 --> 00:07.210
Welcome back.

00:07.360 --> 00:15.600
So in this video we're going to be installing a software called post man and we'll see why this is necessary.

00:15.610 --> 00:16.000
Right.

00:16.180 --> 00:20.690
So so far we've been doing get requests fairly easy right.

00:20.710 --> 00:27.880
So if we just go to our browser and we write localhost which or one too if you want one to seven point

00:27.880 --> 00:29.630
zero point zero point one.

00:29.630 --> 00:40.300
So same thing slash or at Port i sound and then slash by for example then we get this response right

00:40.300 --> 00:40.600
away.

00:40.600 --> 00:40.890
Right.

00:40.900 --> 00:43.030
It was very simple.

00:43.030 --> 00:45.070
Let me zoom in here.

00:45.160 --> 00:47.410
It was very simple to do a get request.

00:47.440 --> 00:52.430
But when we do a post request then there is usually two ways to do it.

00:52.510 --> 00:56.640
There is what you can really do it using the browser right.

00:56.830 --> 01:06.010
Most people do it either using the terminal using a command called kernel but it can get pretty tedious

01:06.010 --> 01:10.040
when you want to write very long post requests.

01:10.060 --> 01:17.950
So on the other hand some people use an ID or not an ID as you I call post-master postman is a very

01:17.950 --> 01:20.090
very useful tool.

01:20.230 --> 01:22.480
And we'll be installing it in this video.

01:22.810 --> 01:24.990
Installing it is very very easy.

01:25.000 --> 01:26.960
So you know don't worry about it.

01:27.050 --> 01:35.020
Let's just stop Flast for now and it will help us to do post requests very very easily and we'll see

01:35.020 --> 01:36.760
how we can do that here.

01:37.090 --> 01:39.020
From a user perspective right.

01:39.280 --> 01:44.310
OK so this is the page that will be the instructions that we're will be following.

01:44.310 --> 01:52.810
Also link it is called How to install the man native apple and to sixteen point four and all.

01:52.830 --> 01:57.340
Basically there are four commands here and we just need you to do these four commands and we're good

01:57.340 --> 01:57.890
to go.

01:57.970 --> 02:01.550
So let's copy this here.

02:01.700 --> 02:04.550
Oh looks like you don't want to allow you to copy.

02:04.570 --> 02:05.490
Strange.

02:05.680 --> 02:06.340
OK.

02:06.490 --> 02:13.570
And then paste it out and then you of course need a Suda.

02:13.600 --> 02:18.450
And then we should just download post man.

02:18.850 --> 02:21.020
Next will be the second command.

02:21.070 --> 02:23.810
And again do the same thing.

02:27.410 --> 02:32.050
And then third of all we're going to again copy it a command.

02:32.640 --> 02:33.490
And I'm pasted

02:36.670 --> 02:38.040
Yes.

02:38.240 --> 02:51.470
Good to do it first and then finally maybe the first command.

02:51.680 --> 03:01.550
Now we simply write post man in the terminal here and just simply click enter and now post men should

03:01.550 --> 03:02.790
start running over here.

03:02.810 --> 03:06.470
So this is basically post post Matt.

03:07.100 --> 03:10.810
So we let it just load up.

03:12.410 --> 03:15.460
OK so once it loads up it's going to look something like this.

03:15.600 --> 03:21.260
So you want I'm going to close this and then you're going to have this super weird environment right.

03:21.260 --> 03:22.210
It's fine.

03:22.460 --> 03:25.240
So first of all let's try and do a sample.

03:25.330 --> 03:25.810
Right.

03:25.850 --> 03:31.550
So we're going to come here and we're going to open a new terminal and then we're going to write a flask

03:31.550 --> 03:35.070
run and then just run it.

03:35.570 --> 03:39.660
So OK so we need to export a flask.

03:39.650 --> 03:42.580
Our first equals to abduct p y.

03:43.070 --> 03:45.210
And then we're going to run.

03:45.580 --> 03:46.100
OK.

03:46.280 --> 03:49.360
So now that our server is running we're going to try and do it again.

03:49.460 --> 03:56.960
So you can see your words get Post put a patch lead and all these types of methods you really really

03:56.960 --> 03:59.160
care about post and get here.

03:59.180 --> 04:03.170
So if we choose good then we write localhost.

04:03.240 --> 04:12.230
I found the port 1000 slash by and then it click send and then we're going to have the response here

04:12.440 --> 04:14.470
showing it Jason.

04:14.570 --> 04:22.630
Now what's good about this is that we can send actually a post so we can sense to post from here choose

04:22.820 --> 04:34.490
where we watch send it from and then go at body here and then we can actually use for here it basically

04:34.490 --> 04:41.230
tells you what kind of stuff do you want or what type of body message do you want to send.

04:41.360 --> 04:46.840
So I can use RAW and then from here I can choose JCA.

04:47.420 --> 04:52.460
And then here I can basically post anything so I can send to the server.

04:52.730 --> 05:03.230
ABC Orfeo 1 and its values 1 and field 2 is values 2.

05:03.310 --> 05:03.880
Right.

05:03.890 --> 05:08.920
So I can send this this body here this Jason to the server and see what happens.

05:08.930 --> 05:15.140
So right now our server is not ready to deal with hosts requests yet.

05:15.290 --> 05:17.770
So we're going to fix that in the next video.

05:17.900 --> 05:23.420
But for now it's is probably going to just send an error and if it clicks and it's probably going to

05:23.420 --> 05:29.650
tell you you know you know this method is not allowed before you requested you're so in the next video

05:29.670 --> 05:34.210
we're going to see how we can from this point of view of the server.

05:34.370 --> 05:41.180
See get this posted message and then handle it from the server point of view here.

05:41.240 --> 05:42.380
Get this.

05:42.410 --> 05:50.320
Get those values 1 and 2 and then do something with it and reply to the server.

05:50.570 --> 05:55.820
And then we're going to see how how we can you know I mean and the response is basically going to show

05:55.820 --> 05:57.850
up over here Jason.

05:57.980 --> 06:04.430
So this post man software is really really helpful when you want to debug stuff or to test your post

06:04.460 --> 06:06.540
and point is dreadful.

06:06.730 --> 06:12.480
So yeah I'll leave the link to this article in the videos and you.

06:12.590 --> 06:13.760
So thank you for watching.

06:13.760 --> 06:15.710
And until the next video recorded.
