m_pwdLogin_api.yml
494 字节
name: 账号登录:/auth/login
base_url: ${ENV(base_business_admin)}
variables:
phone: ${ENV(adminphone)}
password: 7c4a8d09ca3762af61e59520943dc26494f8941b
msg: ok
request:
headers:
Content-Type: application/json;charset=utf-8
User-Agent: okhttp/3.12.3
json:
username: ${phone}
password: ${password}
method: POST
url: /auth/pwdLogin
extract:
pwdLogintoken: content.data.access.token
validate:
- eq:
- content.msg
- $msg