What is Environment?

Env is a set of key-value pairs

 

 

선행 작업

아래 URL 참고하여 POST Requset 생성

https://reqres.in/

 

Reqres - A hosted REST-API ready to respond to your AJAX requests

Native JavaScript If you've already got your own application entities, ie. "products", you can send them in the endpoint URL, like so: var xhr = new XMLHttpRequest(); xhr.open("GET", "https://reqres.in/api/products/3", true); xhr.onload = function(){ conso

reqres.in

 

Body 작업(아래 Json 형식의 데이터는 위의 페이지에서 확인)

{
	"email": "{{email}}",
	"password": "{{pasword}}"
}

 

 

Create Environment

MANAGE ENVIROMENTS > Add 클릭

 

 

Use Environment

변수 사용 예 : {{변수명}}

 

 

결과 콘솔 화면

 

'WEB API Test > Postman' 카테고리의 다른 글

Newman 관련  (0) 2020.08.06
Tests 생성(Quick Scripts 활용)  (0) 2020.08.06
VARIABLES 활용  (0) 2020.08.06
VARIABLES 생성  (0) 2020.08.06
Collection 구동  (0) 2020.08.06
블로그 이미지

정신차려이각박한세상속에서

,