-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
33 lines (31 loc) · 1.14 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
<!DOCTYPE html>
<html lang="de">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" type="text/css" href="//cdnjs.cloudflare.com/ajax/libs/swagger-ui/3.51.1/swagger-ui.min.css">
<title>Umweltbundesamt: Meeresumweltdatenbank (MUDAB) - OpenAPI Documentation</title>
<body>
<div id="openapi">
<script src="//cdnjs.cloudflare.com/ajax/libs/swagger-ui/3.51.1/swagger-ui-bundle.min.js"></script>
<script>
window.onload = function () {
const ui = SwaggerUIBundle({
url: "openapi.yaml",
dom_id: "#openapi",
requestInterceptor: function(req) {
var mapping = {
"geoportal.bafg.de": "mudab.api.proxy.bund.dev"
}
if(this.url !== "openapi.yaml") {
var url = new URL(req.url);
url.hostname = mapping[url.hostname];
req.url = url.href;
}
return req;
},
})
}
</script>
</body>
</html>