21 lines
2.2 KiB
HTML
21 lines
2.2 KiB
HTML
<!doctype html><html lang="en"><head>
|
||
<link rel="shortcut icon" href="http://test.user.1688sup.com/logo.svg">
|
||
<meta charset="utf-8"><meta name="viewport" content="width=device-width,minimum-scale=1,initial-scale=1,user-scalable=yes"><title>API 用户中心</title><link rel="stylesheet" href="//cdn.jsdelivr.net/gh/highlightjs/cdn-release@9.18.1/build/styles/default.min.css"><script src="//cdn.jsdelivr.net/gh/highlightjs/cdn-release@9.18.1/build/highlight.min.js"></script><script defer="defer" src="rapidoc-min.js"></script></head><script>window.addEventListener('DOMContentLoaded', (event) => {
|
||
const docEl = document.getElementById('thedoc');
|
||
docEl.addEventListener('before-try', (e) => {
|
||
//todo:后面考虑用 window 全局变量来传 user-id 头
|
||
e.detail.request.headers.append('Authorization', 'Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJ1c2VyQ2VudGVyIiwiZXhwIjoxNzY4MTAyMjM5LCJuYmYiOjE2ODE3MDIyMzksImp0aSI6IjEiLCJQaG9uZSI6IjE4MDAwMDAwMDAwIiwiVXNlck5hbWUiOiJsc3hkIiwiUmVhbE5hbWUiOiLlsI_nuqIyMjIifQ.RqOvxka8_SdF4Rs0Etp39bqd6Qhq74r81S8kjPZ8kMn4-nxMdHb4VsDkzw03ee2YzNJNYKBJ1x6aAhqKtshn1uXawI8T4o_yyTT0KEl_QMHZ1Pr2AZLIHxbFioIf0V1c48CEXAUzIsogLlzxTYaOgKj0zTgH4nYYMCsDDtVoPJTzTyBNvhEkWXY76CPqO1bt71KPrZjSAQihG24xGL21L0RMkK2HgKZeR9lSYWRr9tNnBH1DUtpOtBYzIDwXwaHJX3jMylS0YGqrzVdPzd1lzxIpYCUW_QUf54setdS2oUvx0jD6BKAkHbQQRXOm_krRtd1-1G5Ml6DzckJGR01vlA');
|
||
});i
|
||
});</script><body><rapi-doc spec-url="/doc/openapi.yaml" id="thedoc" theme="Light" render-style="read" schema-style="table" show-header="false" show-method-in-nav-bar="true" use-path-in-nav-bar="true" show-components="true" show-info="true" show-header="true" allow-search="true" allow-advanced-search="true" allow-spec-url-load="false" allow-spec-file-download="false" allow-server-selection="false" allow-authentication="true" update-route="false" match-type="regex" persist-auth="true">
|
||
<img
|
||
slot="nav-logo"
|
||
src="https://27873356.s21i.faiusr.com/4/ABUIABAEGAAg-e_1igYox8vPjQYwvAE4Lg!160x160.png.webp" width="110px"
|
||
/>
|
||
<div slot="auth">
|
||
//todo:rapidocEl.setApiKey("thedoc", token)
|
||
用户名:<input value="sss"> 密码:<input value="sss"> <button>登录</button>
|
||
<script>
|
||
|
||
</script>
|
||
</div>
|
||
</rapi-doc></body></html> |