<!DOCTYPE html>
<html>
<head>
    <link rel="icon" href="https://django-ninja.dev/img/favicon.svg" type="image/svg+xml">
    <link rel="icon" href="https://django-ninja.dev/img/favicon.png" type="image/png">
    <title>{{ api.title }}</title>
    <meta name="viewport" content="width=device-width, initial-scale=1" />
    <style>
        body {
            margin: 0px;
        }
    </style>
</head>
<body>
    <div id="redoc-ui"></div>

    <script src="https://cdn.jsdelivr.net/npm/redoc@2/bundles/redoc.standalone.js"></script>
    <script type="application/json" id="redoc-settings">
        {{ redoc_settings | safe }}
    </script>
    <script>
        const configJson = document.getElementById("redoc-settings").textContent;
        const configObject = JSON.parse(configJson);
        const element = document.getElementById('redoc-ui');
        Redoc.init('{{ openapi_json_url }}', configObject, element);
    </script>
</body>
</html>
