redoc and api doc
parent
038c29dfb3
commit
2accc702c7
|
@ -0,0 +1,39 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>ReDoc</title>
|
||||
<!-- 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">
|
||||
|
||||
<!--
|
||||
ReDoc doesn't change outer page styles
|
||||
-->
|
||||
<style>
|
||||
body {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<redoc spec-url=''></redoc>
|
||||
<script src="https://cdn.jsdelivr.net/npm/redoc@next/bundles/redoc.standalone.js"> </script>
|
||||
|
||||
<script>
|
||||
if (document.readyState == 'loading') {
|
||||
document.addEventListener("DOMContentLoaded", () => initRedoc());
|
||||
} else {
|
||||
initRedoc();
|
||||
}
|
||||
|
||||
var api_url = 'https://profee-com.github.io/external-precalcs-api/precalc-api.json';
|
||||
|
||||
function initRedoc() {
|
||||
Redoc.init(api_url, {"pathInMiddlePanel":true});
|
||||
}
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue