想要在xibo cms,swagger.json,swagger-ui中使用REST API获取数据

时间:2018-12-17 09:53:26

标签: swagger swagger-ui swagger-2.0

“ securityDefinitions”:{         “ auth”:{             “ type”:“ oauth2”,             “ flow”:“ accessCode”,             “ authorizationUrl”:“ http://127.0.0.1/[project_name]/web/api/authorize”,             “ tokenUrl”:“ http://127.0.0.1/[project_name]/web/api/authorize/access_token”,             “范围”:{                 “ read:all”:“读取访问权限”,                 “ write:all”:“写访问权”             }         }     },     “安全性”:[         {             “验证”:[                 “全部写”,                 “阅读:全部”             ]         }     ]

在由client_id和client_sercet授权的过程中出错。

错误:

{     “错误”:{         “ message”:“客户端身份验证失败。”,         “代码”:401,         “数据”:[]     } }

0 个答案:

没有答案