Hi everyone.
Welcome back.
So in this video we're going to be installing a software called post man and we'll see why this is necessary.
Right.
So so far we've been doing get requests fairly easy right.
So if we just go to our browser and we write localhost which or one too if you want one to seven point
zero point zero point one.
So same thing slash or at Port i sound and then slash by for example then we get this response right
away.
Right.
It was very simple.
Let me zoom in here.
It was very simple to do a get request.
But when we do a post request then there is usually two ways to do it.
There is what you can really do it using the browser right.
Most people do it either using the terminal using a command called kernel but it can get pretty tedious
when you want to write very long post requests.
So on the other hand some people use an ID or not an ID as you I call post-master postman is a very
very useful tool.
And we'll be installing it in this video.
Installing it is very very easy.
So you know don't worry about it.
Let's just stop Flast for now and it will help us to do post requests very very easily and we'll see
how we can do that here.
From a user perspective right.
OK so this is the page that will be the instructions that we're will be following.
Also link it is called How to install the man native apple and to sixteen point four and all.
Basically there are four commands here and we just need you to do these four commands and we're good
to go.
So let's copy this here.
Oh looks like you don't want to allow you to copy.
Strange.
OK.
And then paste it out and then you of course need a Suda.
And then we should just download post man.
Next will be the second command.
And again do the same thing.
And then third of all we're going to again copy it a command.
And I'm pasted
Yes.
Good to do it first and then finally maybe the first command.
Now we simply write post man in the terminal here and just simply click enter and now post men should
start running over here.
So this is basically post post Matt.
So we let it just load up.
OK so once it loads up it's going to look something like this.
So you want I'm going to close this and then you're going to have this super weird environment right.
It's fine.
So first of all let's try and do a sample.
Right.
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
run and then just run it.
So OK so we need to export a flask.
Our first equals to abduct p y.
And then we're going to run.
OK.
So now that our server is running we're going to try and do it again.
So you can see your words get Post put a patch lead and all these types of methods you really really
care about post and get here.
So if we choose good then we write localhost.
I found the port 1000 slash by and then it click send and then we're going to have the response here
showing it Jason.
Now what's good about this is that we can send actually a post so we can sense to post from here choose
where we watch send it from and then go at body here and then we can actually use for here it basically
tells you what kind of stuff do you want or what type of body message do you want to send.
So I can use RAW and then from here I can choose JCA.
And then here I can basically post anything so I can send to the server.
ABC Orfeo 1 and its values 1 and field 2 is values 2.
Right.
So I can send this this body here this Jason to the server and see what happens.
So right now our server is not ready to deal with hosts requests yet.
So we're going to fix that in the next video.
But for now it's is probably going to just send an error and if it clicks and it's probably going to
tell you you know you know this method is not allowed before you requested you're so in the next video
we're going to see how we can from this point of view of the server.
See get this posted message and then handle it from the server point of view here.
Get this.
Get those values 1 and 2 and then do something with it and reply to the server.
And then we're going to see how how we can you know I mean and the response is basically going to show
up over here Jason.
So this post man software is really really helpful when you want to debug stuff or to test your post
and point is dreadful.
So yeah I'll leave the link to this article in the videos and you.
So thank you for watching.
And until the next video recorded.