IDEA WebStorm HTTP Client 保存token, 并在后续请求使用

https://blog.csdn.net/MAIMIHO/article/details/125566869


###

POST http://localhost:8888/user/login

Content-Type: application/json

{

"userName": "sg",

"password": "123456"

}

> {% client.global.set("token", response.body.data.token); %}

###

GET http://localhost:8888/hello

Accept: application/json

Token: {{token}}

###

你可能感兴趣的:(IDEA WebStorm HTTP Client 保存token, 并在后续请求使用)