Impl swag and auth switch
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
body {
|
||||
margin: 0;
|
||||
background: #f2f4f6;
|
||||
}
|
||||
@@ -5,32 +5,15 @@
|
||||
<meta charset="utf-8" />
|
||||
<meta http-equiv="Content-Security-Policy" />
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1.0" />
|
||||
<link rel="shortcut icon" type="image/svg" href="assets/image/icon.svg" />
|
||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/swagger-ui-dist/swagger-ui.min.css" />
|
||||
<script src="https://cdn.jsdelivr.net/npm/swagger-ui-dist/swagger-ui-bundle.min.js"></script>
|
||||
<title>WeChat Rest API</title>
|
||||
<link rel="shortcut icon" type="image/svg" href="/assets/image/icon.svg" />
|
||||
<link rel="stylesheet" href="/assets/style.css" />
|
||||
<title>WeChat Rest</title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div id="swagger-ui"></div>
|
||||
<style type="text/css">
|
||||
body {
|
||||
margin: 0
|
||||
}
|
||||
</style>
|
||||
<script type="text/javascript">
|
||||
SwaggerUIBundle({
|
||||
url: 'swagger.json',
|
||||
dom_id: '#swagger-ui',
|
||||
layout: 'BaseLayout',
|
||||
deepLinking: true,
|
||||
showExtensions: true,
|
||||
showCommonExtensions: true,
|
||||
presets: [
|
||||
SwaggerUIBundle.presets.apis
|
||||
]
|
||||
})
|
||||
</script>
|
||||
<ul>
|
||||
<li><a href="/swag">Api Document</a></li>
|
||||
</ul>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,32 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh-Hans-CN">
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta http-equiv="Content-Security-Policy" />
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1.0" />
|
||||
<link rel="shortcut icon" type="image/svg" href="/assets/image/icon.svg" />
|
||||
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/swagger-ui-dist/swagger-ui.min.css" />
|
||||
<link rel="stylesheet" href="/assets/style.css" />
|
||||
<title>WeChat Rest Document</title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div id="swagger-ui"></div>
|
||||
<script src="//cdn.jsdelivr.net/npm/swagger-ui-dist/swagger-ui-bundle.min.js"></script>
|
||||
<script type="text/javascript">
|
||||
SwaggerUIBundle({
|
||||
url: './swagger.json',
|
||||
dom_id: '#swagger-ui',
|
||||
layout: 'BaseLayout',
|
||||
deepLinking: true,
|
||||
showExtensions: true,
|
||||
showCommonExtensions: true,
|
||||
presets: [
|
||||
SwaggerUIBundle.presets.apis
|
||||
]
|
||||
})
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"swagger": "2.0",
|
||||
"info": {
|
||||
"description": "基于 WeChatFerry RPC 实现的电脑版微信 REST-API,使用 Go 语言编写,无第三方运行时依赖。基于 HTTP 提供操作接口,轻松对接任意编程语言。",
|
||||
"description": "基于 WeChatFerry RPC 实现的电脑版微信 REST API,使用 Go 语言编写,无第三方运行时依赖。基于 HTTP 提供操作接口,轻松对接任意编程语言。",
|
||||
"title": "Wechat Rest API",
|
||||
"contact": {
|
||||
"name": "WeChatRest",
|
||||
@@ -11,7 +11,7 @@
|
||||
"name": "Apache 2.0",
|
||||
"url": "http://www.apache.org/licenses/LICENSE-2.0.html"
|
||||
},
|
||||
"version": "v0.4.2"
|
||||
"version": "v0.4.6"
|
||||
},
|
||||
"basePath": "/api",
|
||||
"paths": {
|
||||
Reference in New Issue
Block a user