How to create First API Request

Raghav Pal
A free video tutorial from Raghav Pal
Automation Test Architect | Educator | 12 yrs
4.5 instructor rating • 21 courses • 246,016 students

Lecture description

Today we will learn:

1. How to create an API request
2. How to run the request
3. How to analyze response


Learn more from the full course

POSTMAN API Testing - Step by Step for Beginners

learn POSTMAN Step by Step from scratch with real world examples

02:41:53 of on-demand video • Updated February 2021

  • By the end of this course you will have complete hands-on knowledge on working with POSTMAN
  • In-depth understanding of all features and settings of POSTMAN
  • You will be able to create end-to-end API Testing projects with POSTMAN
  • Complete hands-on knowledge on How to run your tests from command-line and Jenkins Continuous Integration
  • ******* You will get complete support with all your doubts, questions and issues *******
English [Auto] Hello and welcome to the session on postman Bugner to Torreon. And today we're going to see how can we create the very first a request in postman and be voted on in really did it. So we're going to see in a very basic Step-By-Step manner how do we create any Dataquest how do we run the request in postman and then how do we analyze the response. So let's get started. And I will go to my postman window and here you have our option for Volks basis so you can click here and select any of the existing workspaces or you can also create a new. So let us create a new box base and this will be a personal workspace and we named this as space one you can give some description which is option and don't create workspace. So now we are on workspace 1 and then we have this option here to create our new element and we can create a new request from here. We can also go to file and hit on New. It will again give you this window where you can select a new request. So I will select this create new request and here I can give the request name. So let's go to my browser and search for a simple request. So I would say simple just play and hit enter. And we have got some options. So this is a good option. Atiku. They give us some EPA testing. So here we have a lot of EPA we have get post as well. So I'm going to go get this get for a single user. So I will call you out from here and go to a new tap and place to you. And then I also have to copy the request and point which is this one. So we did this and again added to a new browser. And if I know this this gives me a response so this is a working request. So let me go to my postman window again and I can name anything so I will say this is get user and or description will be optional. And then here you have to either add to an existing collection or create a new collection so people learn about collections in more detail in the next session. But for now I really just create a new collection and see collection 1 and then select the collection and then save the collection so you can see if you go to collections you have this one request inside the collection which is get to. This is what we just created. And if you hit here you will get that request in the window and you will also get a new tab here for that particular request. Now here I will add there you are. So this is the you will I've copied from here and go to my postman and just give you here. So this is our Get so I do not have to give anybody or anything else. And also it does not require any headers in the coming sessions. We will deal with a little more complex request but for now let us go with this very simple request and that's it. I will now hit the send button. So I will say send. And you can see we have got the response here so let us understand. In response you will get the body and in the body you will get the actual body that is being returned from the so and you can view this into a pretty format or rockfall Formic or any other format that is available and you can also select it from here. So what all the presentations for this response is available. You will get it here so you can see ex-MIL. You can see SGMD text and of course this is here. And then we have this button to wrap line. So in case you are getting a response which is a very long response and it is going beyond the boundaries you can select to pick and then the next important section is here where we get the status of the request. So 200 is the issue DP status code which is four. OK. And then we have the time taken by the request or response to come in milliseconds and then we have the size. So if you what order size you will get actual size of the body and then the Hegel's. So this is very important. And then you have other sections like cookies so you can look at this here the heddes which are there in the response are here. And then of course in case you create any test you will get the test results which we can do in the coming sessions. Also if you want to search for something in response you can click on the search button and then search for your particular value. If you want to copy a sponsor you can click on this copy button so it will copy to clipboard and then you can place it anywhere else as well. And then you have an option to see if the response will click on Save where you can save example. And of course if you go to the site but you have the collections you will have your request inside your collection and then you will have the history. So this was the one that we did today. So you can see this is the history. You can go and see this. If you don't act once again you will see new additions in the history column. And this was a very very simple request in the coming sessions. We will deal with a little more complex and different types of request. I hope the session was useful for you. Please hit the like button and share it with others. And if you not yet subscribe to this channel please don't forget to subscribe to the channel. I will meet you in the next episode of Forstmann. Thank you for watching.