-
Notifications
You must be signed in to change notification settings - Fork 10
/
index.html
111 lines (95 loc) · 2.73 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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
<html>
<head>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/mini.css/3.0.1/mini-default.min.css">
<style>
.container {
margin-top: 100px;
}
p {
text-align: center;
font-size: 30pt;
font-weight: bold;
}
a:hover {
text-decoration: none;
}
.api-list-item a {
color: white;
}
.api-list-item {
width: 100%;
margin: auto;
padding: 10px;
margin-bottom: 10px;
}
.api-list-item:nth-child(odd) {
background-color: #005f78;
}
.api-list-item:nth-child(even) {
background-color: #157D96;
}
</style>
</head>
<body onload="createApisLinks()">
<div class="container">
</div>
<script>
function createApisLinks() {
const apis = [
'accounts',
'acquiring-services',
'admin',
'autonatic-payments',
'batch-payments',
'bank-fixed-incomes',
'capitalization-bonds',
'channels',
'common',
'consents',
'credit-cards',
'credit-fixed-incomes',
'customers',
'enrollments',
'exchange',
'exchanges',
'funds',
'financings',
'insurances',
'investments',
'invoice-financings',
'loans',
'opendata-loans',
'opendata-creditcards',
'opendata-financings',
'opendata-invoicefinancings',
'opendata-creditcards',
'opendata-accounts',
'participants',
'payments',
'pension',
'products-services',
'resources',
'unarranged-accounts-overdraft',
'treasure-titles',
'variable-incomes',
'webhook',
]
let html = '<p>Open API</p>';
apis.forEach(api => {
html +=
`
<div class="col-sm-2 api-list-item">
<a href="swagger-apis/${api}">
<div>
${api}
</div>
</a>
</div>
`;
});
const container = document.getElementsByClassName('container')[0];
container.innerHTML = html;
}
</script>
</body>
</html>