Non puoi selezionare più di 25 argomenti
Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.
38 righe
1.1 KiB
38 righe
1.1 KiB
<? |
|
$configPath = substr(__DIR__,0,strpos(__DIR__,"/public_html"))."/config.php"; |
|
include_once($configPath); |
|
if (!empty($_SESSION["ente"]) && $_SESSION["ente"]->hasModulo("api")) { |
|
$showAdvanced = !empty($_GET["showAdvanced"]); |
|
?> |
|
<!doctype html> |
|
<html lang="it"> |
|
|
|
<head> |
|
<!-- Required meta tags --> |
|
<meta charset="utf-8"> |
|
<meta name="viewport" content="width=device-width, initial-scale=1"> |
|
<title>API TUTTOGARE</title> |
|
<link rel="stylesheet" type="text/css" href="swagger-ui-dist/swagger-ui.css"> |
|
<script type="text/javascript" src="swagger-ui-dist/swagger-ui-bundle.js"></script> |
|
</head> |
|
|
|
<body> |
|
<div class="bg-white p-1" id="swagger-ui"></div> |
|
<script> |
|
window.onload = function() { |
|
// Build a system |
|
const ui = SwaggerUIBundle({ |
|
url: "<?= (!$showAdvanced) ? "/api/api.json" : "/api/advanced/api.json" ?>", |
|
dom_id: '#swagger-ui', |
|
deepLinking: true, |
|
plugins: [ |
|
SwaggerUIBundle.plugins.DownloadUrl |
|
], |
|
}) |
|
window.ui = ui |
|
} |
|
</script> |
|
</body> |
|
|
|
</html> |
|
<? } ?>
|