본문 바로가기

Tools/Postman

Set as a new variable

여러 개의 request에서 동일한 URL을 반복해서 써야한다?

그럼 매번 같은 URL을 복붙하지 말고

아예 variable로 저장해서 써라~

 

For example, if you have the same URL in more than one request, but the URL might change later, you can store the URL in a variable base_url and reference it in your requests using {{base_url}}.

 

아래 예시에서는 동일한 URL 주소를 Value에 넣어주고 네임을 baseUrl로 저장함

 

그럼 이렇게 baseUrl로 대신 주소값에 넣어줄 수 있음

https://learning.postman.com/docs/sending-requests/variables/

 

Using variables | Postman Learning Center

Using variables: documentation for Postman, the collaboration platform for API development. Create better APIs—faster.

learning.postman.com

 

'Tools > Postman' 카테고리의 다른 글

HTTP headers  (0) 2022.07.10
API Authentication  (0) 2022.07.10
Troubleshooting Postman errors  (0) 2022.07.05
Using Postman on the web (feat. Cloud/Desktop/Browser Agents)  (0) 2022.07.05
Query parameters & Path variables  (0) 2022.06.16