Joe Brothers
  • Home

insomnia

A collection of 1 post
insomnia

[Insomnia] Response 변수로 저장 및 재사용 하는 방법

Postman에는 request시 특정 스크립트를 실행할 수 있고, 그 중 pm.environment를 사용해 environment에 변수를 설정하고 Header, Body 등에서 템플릿을 이용해 이 값을 가져올 수 있다. 예를 들면 로그인 API를 호출하면 자동으로 응답을 파싱해서 리프레시 토큰(refresh token)과 액세스 토큰(access token)을 환경 변수에 넣고, 각종 API 호출 시에는
19 2월 2023 4 min read
Page 1 of 1
Joe Brothers © 2025
  • Sign up
Powered by Ghost