In the last we do, we saw how to push to the chemist to carry extra information in the form of a Jaeson
object, along with that request we sent to ourselves.
This is the best way to add information to our request.
But there are several other ways to do so as we express also allows us to use the letters that like
we did it for friend.
And this is useful in many cases.
For example, if we want to give one user data from the back end, you will make a request.
To that end point, Paul users.
Slash and whatever the user ID, let's say one, two, three, four.
OK, or if we want to load the data off of you, an article from the back and we can make a graphic
list that says slash articles.
OK, so I take those.
And the name of the article, for example, on the act, now, let's look at the example and see how
it is done.
So let's go to the results of code and let's use the same example that we have used in the last we do.
We will simply return the message with the name that we pass to offend to it.
Basically, we want to send a graphic list.
In this case, we can use post request, but we will use getthere.
We will send it to the end point with just hello and a name like somebody, OK?
And the response we want to get is hello.
And then the name of that is just as we did before, but then request for the.
So to do this, let's define a new app dot get OK.
And for the new order we will put slash and slash Poulan name just as we did it with different end and
insert our function.
OK, and inside this function we will do the same thing as we did with our post request.
OK, so request response.
And then that'll function and we need to write response, start saying, and we need a back fifty dollar
sign daily basis and you're in sort of requestor body, we will say this list bought firearms.
Not name.
OK, let's save this file.
Let's start over by typing Noad.
I saw the last word, Dargis.
Now let's go to Postman.
And you'll be able to request, but we need to change it to allow Sless and the main summit, OK?
And let's click on the send button.
So now, as you can see, we got the response, hello, somebody.
So this is how we can get a response using firearms, OK, in the early in the last lecture, we use
requestor body, but in this lecture we usually start Barnum's.
So this is also one way of getting the response.
But this is it for this video.
And I've seen the next video.