change_company_api.yml 561 字节
name: 切换公司:/v1/auth/change_company
base_url: ${ENV(base_manager_url)}
variables:
    msg: 成功
teardown_hooks:
    - ${teardown_hook_get_m_accesstoken($response)}
    - ${teardown_hook_get_m_refreshtoken($response)}
request:
    headers:
        Content-Type: application/json;charset=utf-8
        Authorization: ${get_m_accesstoken()}
        x-mmm-refreshtoken: ${get_m_refreshtoken()}
        User-Agent: okhttp/3.12.3
    json:
        company_id: 4
    method: POST
    url: /v1/auth/change_company
validate:
-   eq:
    - content.msg
    - $msg