<?php defined('BASEPATH') OR exit('No direct script access allowed'); ?>

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <title><?php echo(PRODUCT_NAME); ?> REST API</title>

	<link rel="shortcut icon" href="/images/favicon.ico" />
	<link rel="icon" href="/images/favicon.ico" />
    <link rel="stylesheet" href="/css/swagger-ui.css" />
</head>
<body>
	<div id="swagger-ui"></div>

	<script src="/js/min/swagger-ui-bundle.min.js"></script>
	<script src="/js/min/swagger-ui-standalone-preset.min.js"></script>
	<script>
	window.onload = function()
	{
		// Begin Swagger UI call region
		const ui = SwaggerUIBundle({
			url: "/openapi.json",
			dom_id: '#swagger-ui',
			deepLinking: false,
	        presets: [
	          SwaggerUIBundle.presets.apis,
	          SwaggerUIStandalonePreset
	        ],
	        plugins: [
	          SwaggerUIBundle.plugins.DownloadUrl
	        ]
		});
		// End Swagger UI call region

		window.ui = ui
	}
	</script>
</body>
</html>
