forked from TheNorthMemory/wechatpay-openapi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
76 lines (76 loc) · 3.95 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="format-detection" content="telephone=no,email=no">
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no, maximum-scale=1, minimum-scale=1, viewport-fit=cover">
<title>微信支付APIv3接口文档</title>
<link rel="stylesheet" type="text/css" href="https://unpkg.com/[email protected]/swagger-ui.css" >
<style>
html{box-sizing:border-box;overflow:-moz-scrollbars-vertical;overflow-y:scroll}
*,*:before,*:after{box-sizing:inherit}
body{margin:0 auto;background:#fafafa}
.topbar,.download-contents,.execute-wrapper:empty,.swagger-ui .body-param-options,.response-col_description__inner,.response-content-type,.swagger-ui .opblock .opblock-section-header label{display: none}
.swagger-ui .info .main .base-url{float:left}
.swagger-ui .info .main .link{float:right}
.swagger-ui .info .main:after{content:' ';height:0;font-size:0;clear:both}
.swagger-ui .highlight-code > .microlight{max-height: inherit}
.swagger-ui .info{margin:5px 0 0;}
.swagger-ui .response ul.tab, .swagger-ui div.model-example{margin-top: 0}
.swagger-ui .info .title{font-size:18px}
.swagger-ui .opblock-tag{font-size:16px;}
.swagger-ui .opblock-tag .markdown p{margin-block-start:0;margin-block-end:0}
.swagger-ui .scheme-container{margin-bottom:10px;padding-bottom:10px}
.swagger-ui .expand-methods svg,.swagger-ui .expand-operation svg{height:14px}
.swagger-ui .model-box{min-width: 100%}
.swagger-ui .parameters-col_description input[type=text]{max-width: 99.9%}
.swagger-ui .parameter__name.required:after{content:"";}
@media (max-width:768px) {
.opblock-summary-method,.parameters thead, .responses-table thead,.parameters-col_name,.response-col_status{display:none}
.swagger-ui textarea,.swagger-ui input[type="text"]{max-width:100%}
.swagger-ui .opblock-tag{padding-right:0}
.swagger-ui .opblock .opblock-summary-path{width:60%}
tr[data-param-in=header] .parameters-col_description .markdown p:after{content:' (header)';font-style:italic;font-size:11px;color:grey;}
tr[data-param-in=path] .parameters-col_description .markdown p:after{content:' (path)';font-style:italic;font-size:11px;color:grey;}
tr[data-param-in=formData] .parameters-col_description .markdown p:after{content:' (formData)';font-style:italic;font-size:11px;color:grey;}
tr[data-param-in=query] .parameters-col_description .markdown:first-of-type p:after{content:' (query)';font-style:italic;font-size:11px;color:grey;}
.response[data-code=200] .model-example .tab li:last-of-type:after,
tr[data-param-in=body] .parameters-col_description .tab li:last-of-type:after{content:' (body)';font-style:italic;font-size:11px;color:grey;}
}
</style>
</head>
<body>
<div id="swagger-ui"></div>
<script src="https://unpkg.com/[email protected]/swagger-ui-bundle.js"></script>
<script src="https://unpkg.com/[email protected]/swagger-ui-standalone-preset.js"></script>
<script>
window.onload = function() {
const ui = SwaggerUIBundle({
url: "./swagger.yaml",
dom_id: '#swagger-ui',
deepLinking: true,
filter: true,
showExtensions: true,
// docExpansion: 'none',
validatorUrl: null,
showCommonExtensions: true,
defaultModelsExpandDepth: -1,
presets: [
SwaggerUIBundle.presets.apis,
SwaggerUIStandalonePreset
],
supportedSubmitMethods: [],
layout: "StandaloneLayout"
})
window.ui = ui
}
</script>
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-125471285-1"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-125471285-1');
</script>
</body>
</html>