
To use the variables in an environment, select it from the environment selector at the top right of Postman. You can access your environment variables from Postman and from your request elements, including the URL, parameters, body data, and test scripts.
Step 5: Creating your environment save it. By default the current value will copy the initial value. Step 4: Adding environment variables.Enter a name for your variable, and specify its Initial and Current values. Step 3: Enter a name for your environment, and initialize it with any variables you need-you can alternatively specify variables for the environment later.
Step 2: To create a new environment, select Environments on the left and select +. Step 1: Select an environment’s name to open the environment editor.
You can use environments to group related sets of values together and manage access to shared Postman data if you are working as part of a team. In the image below you can see that we have successfully hit the URL.Īn environment is a set of variables you can use in your Postman requests. A 200 OK code stands for successful operation. Step 6: Once you have a complete request, click on the “Send button” and see the response code.Step 5: Set a name of requset then choose a method from dropdown and given your link.
Step 4: Click 3dot(…) on collection you create then choose add request from dropdown. Step 3: Creating collection you add a request in collection repository. Step 2: You will see + button click on this button and set an name you want. Step 1: After opening your postman click the collection from the left sidebar. Postman is an API client used to develop,test,share and document APIs.It is used for backend testing where we enter the end-point URL,it sends the request to the server and receives the response back from the server.The same thing can be accomplished through API template like swagger.Ī request is a combination of a complete URL(which includes all parameters or keys), HTTP,header,body or payload.Ī collection is a repository/folder in which we can save all our requests.