You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

48 lines
1.2 KiB

@tall = https://www.tall.wiki/gateway/tall/v1.0
@test = https://test.tall.wiki/gateway/tall/v1.0
@localhost = http://localhost:7030/v1.0
@type = content-type: application/json;charset=utf-8
@token = Authorization: Bearer {{login.response.body.$.data.token}}
@token= eyJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE2MTczMjg2MDksInN1YiI6IjEyMTgwMjUyNDk0OTMzNTY1NDQiLCJhdXRoSWQiOiIxMTgzNjM2MjkxNjQ5MTQ2ODgwIiwiZXhwIjoxNjE3NDE1MDA5fQ.22OvohHsYtuR527otz6A1p8Ebft9O3UM5bSFysh1Hwc
###
# @name login
POST {{localhost}}/users/signin
# POST http://localhost:7030/v1.0/users/signin
{{type}}
{
"client": 1,
"type": 3,
"data": {
"identifier": "zy11",
"credential": "123456"
}
}
### -
GET {{localhost}}/projects/1382575871117889536/roles
{{type}}
Authorization: Bearer {{login.response.body.$.data.token}}
{
}
### -
GET {{localhost}}/roles/1382575871117889536/roles
{{type}}
Authorization: Bearer {{login.response.body.$.data.token}}
{
}
###
GET {{test}}/projects/1379618436082176000/roles?imitation=0
{{type}}
Authorization: Bearer {{login.response.body.$.data.token}}