-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
91 lines (85 loc) · 3.25 KB
/
index.html
File metadata and controls
91 lines (85 loc) · 3.25 KB
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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
<!-- HTML for static distribution bundle build -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Swagger UI</title>
<link href="https://fonts.googleapis.com/css?family=Open+Sans:400,700|Source+Code+Pro:300,600|Titillium+Web:400,600,700" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="./swagger-ui.css" >
<link rel="icon" type="image/png" href="./favicon-32x32.png" sizes="32x32" />
<link rel="icon" type="image/png" href="./favicon-16x16.png" sizes="16x16" />
<style>
html
{
box-sizing: border-box;
overflow: -moz-scrollbars-vertical;
overflow-y: scroll;
}
.swagger-ui .info hgroup.main a {
display: none;
}
*,
*:before,
*:after
{
box-sizing: inherit;
}
body
{
margin:0;
background: #fafafa;
}
</style>
</head>
<body>
<div id="swagger-ui"></div>
<script src="./swagger-ui-bundle.js"> </script>
<script src="./swagger-ui-standalone-preset.js"> </script>
<script>
window.onload = function() {
// Build a system
const ui = SwaggerUIBundle({
// url: "2015-api.json",
urls: [{url: "global-api.yaml", name: "Global API"},
{url: "2020-api.yaml", name: "HMIS vFY2020 API, 2020 API"},
{url: "2017-api.yaml", name: "HMIS v6.11, v6.12, 2017 API"},
{url: "2016-api.yaml", name: "HMIS v5.1, 2016 API"},
{url: "2015-api.yaml", name: "HMIS v4.11, 2015 API"},
{url: "2014-api.yaml", name: "HMIS v4.1, 2014 API"},
{url: "authorization-service-api.yaml", name: "Authorization Service API"},
{url: "developer-service-api.yaml", name: "Developer Service API"},
{url: "client-consent-api.yaml", name: "Client Consent API"},
{url: "hmis-bulk-api.yaml", name: "Bulk Upload API"},
{url: "housing-inventory-api.yaml", name: "Housing inventory API"},
{url: "housing-matching-service-api.yaml", name: "Housing Match Service API"},
{url: "survey-service-api.yaml", name: "Survey Service API"},
{url: "global-household-api.yaml", name: "Generic Household API"},
{url: "user-service-api.yaml", name: "User Service API"},
{url: "export-service-api.yaml", name: "File Export Service API"},
{url: "report-service-api.yaml", name: "Report Service API"}
],
url :{url: "https://github.com/hmis-api/api-source", name: "API Source"},
dom_id: '#swagger-ui',
deepLinking: true,
jsonEditor:true,
presets: [
SwaggerUIBundle.presets.apis,
SwaggerUIStandalonePreset
],
configs: {
preFetch: function(req) {
req.headers["Authorization"] = "HMISUserAuth session_token=48B94241CB34480DB8AB701206AA37E146155A5E6FC044738A8E1BE2CABA9490";
req.headers["x-hmis-trustedapp-id"] = "15C2ED0C-263C-41FE-B1C7-B1E75BB87B48";
return req;
}
},
plugins: [
SwaggerUIBundle.plugins.DownloadUrl
],
layout: "StandaloneLayout"
})
window.ui = ui
}
</script>
</body>
</html>