search by: user_id, email, nickname
若输出的是空串,说明未查询到该信息
若没有对应的元素,会返回answer:null
在所有参数为空时,会返回所有用户
采用的是“子串匹配”的方式,即除id外,其他输入子串就能搜索到匹配的用户
Request
Add the parameter Authorization
to Headers,whose value is to concatenate the Token after the Bearer. Example:Authorization: Bearer ********************
Request samples
curl --location --request GET '/users?user_id&email&username' \
--header 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX2lkIjoxLCJleHAiOjE3MDA1NzMwNzQsImlzcyI6Imp3dCJ9.DcOCIQttK49HKd5brDcQbLwLch9o7ejbbgWuY8D-C3U'
Responses
application/json {
"answer": [
{
"avatar_url": "string",
"username": "string",
"bio": "string",
"department": "string",
"name": "string",
"permissions": {
"can_create_game_or_contest": true
},
"school": "string"
}
]
}
Modified at 2023-12-19 16:47:01