Files
hyperf_service/sync/http/admin/auth.http
2024-10-27 19:34:20 +08:00

17 lines
331 B
HTTP

###
POST {{host}}/admin/login/user
Content-Type: application/x-www-form-urlencoded
account=13632877014&password=123456
> {%
client.global.set("admin_token", response.body.data.token);
%}
###
GET {{host}}/admin/auth/role?role_id=1
Content-Type: application/json
Authorization: Bearer {{admin_token}}
###