我必须从API提取数据并将其显示在HTML表中。我正在尝试使用Postman手动测试API,但显示以下错误
{
"errors": [
{
"keyword": "type",
"dataPath": "",
"schemaPath": "#/type",
"params": {
"type": "object"
},
"message": "should be object"
}
],
"meta": {
"schema": {
"$ref": "xxxxxxx#/definitions/ban/links/0/schema"
}
}
}
它使用Oauth 2.0,我正在尝试按如下所示在URL中设置令牌
https://api.xxxxxxxx.com/bans?Authorization=Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbiI6ImRhOWRiMTU0ZDkwMjY5ZWIiLxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
答案 0 :(得分:0)
我得到了我问题的答案。我在标题和网址中都使用了令牌。