profee-waas-pf-waas-api/index.html

71 lines
2.3 KiB
HTML
Raw Permalink Normal View History

2021-05-04 12:58:05 +03:00
<!DOCTYPE html>
<html>
<head>
2022-04-08 10:48:07 +03:00
<title>ProFee WAAS API</title>
2021-05-04 12:58:05 +03:00
<!-- needed for adaptive design -->
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="https://fonts.googleapis.com/css?family=Montserrat:300,400,700|Roboto:300,400,700" rel="stylesheet">
2022-04-08 10:48:07 +03:00
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bulma@0.9.3/css/bulma.min.css">
2021-05-04 12:58:05 +03:00
<!--
ReDoc doesn't change outer page styles
-->
<style>
body {
margin: 0;
padding: 0;
}
</style>
</head>
<body>
2022-04-08 10:48:07 +03:00
<div class="tabs is-large">
<ul>
2022-04-08 11:49:26 +03:00
<li id="page-api" class="is-active" onclick="showApi();"><a>API</a></li>
<li id="page-async-api" onclick="showAsyncApi();"><a>Async API</a></li>
2022-04-08 10:48:07 +03:00
</ul>
</div>
<div id="api">
<redoc spec-url=''></redoc>
</div>
<div id="async-api">
2022-04-08 11:49:26 +03:00
<iframe src="async-api/site/index.html" width="100%" height="1000" seamless="yes"></iframe>
2022-04-08 10:48:07 +03:00
</div>
2021-05-04 12:58:05 +03:00
<script src="https://cdn.jsdelivr.net/npm/redoc@next/bundles/redoc.standalone.js"> </script>
2021-05-04 13:20:41 +03:00
<script>
2022-04-08 10:48:07 +03:00
if (document.readyState == 'loading') {
2022-04-08 11:49:26 +03:00
document.addEventListener("DOMContentLoaded", () => initRedoc());
2022-04-08 10:48:07 +03:00
} else {
2022-04-08 11:49:26 +03:00
initRedoc();
2022-04-08 10:48:07 +03:00
}
2022-04-08 11:49:26 +03:00
var isLocalhost = location.hostname === "localhost" || location.hostname === "127.0.0.1" || location.protocol === 'file:';
2022-04-08 10:48:07 +03:00
var api_url = isLocalhost ? '/api/waas-api.json' : 'https://profee-waas.github.io/pf-waas-api/api/waas-api.json';
function initRedoc() {
2022-04-08 11:49:26 +03:00
Redoc.init(api_url, {"pathInMiddlePanel":true});
showApi();
}
function showApi() {
document.getElementById("page-api").classList.add("is-active");
document.getElementById("page-async-api").classList.remove("is-active");
document.getElementById("async-api").style.display = "none";
document.getElementById("api").style.display = "block";
}
function showAsyncApi() {
document.getElementById("page-async-api").classList.add("is-active");
document.getElementById("page-api").classList.remove("is-active");
document.getElementById("api").style.display = "none";
document.getElementById("async-api").style.display = "block";
2022-04-08 10:48:07 +03:00
}
2021-05-04 13:20:41 +03:00
</script>
2021-05-04 12:58:05 +03:00
</body>
</html>