wsconcilia-laravel/public/swagger-ui.html
2025-09-12 13:06:36 -07:00

72 lines
2.2 KiB
HTML

<!DOCTYPE html>
<html lang="es">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>WSCONCILIA API - Documentación</title>
<link rel="stylesheet" type="text/css" href="https://unpkg.com/swagger-ui-dist@5.9.0/swagger-ui.css" />
<style>
.swagger-ui .topbar {
background-color: #2c3e50;
}
.swagger-ui .info .title {
color: #2c3e50;
}
body {
margin: 0;
background: #f8f9fa;
}
.header {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
padding: 20px;
text-align: center;
margin-bottom: 20px;
}
.header h1 {
margin: 0;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
.header p {
margin: 10px 0 0 0;
opacity: 0.9;
}
</style>
</head>
<body>
<div class="header">
<h1>🚀 WSCONCILIA API Laravel</h1>
<p>Documentación completa de la API REST | Migrado desde PHP a Laravel</p>
</div>
<div id="swagger-ui"></div>
<script src="https://unpkg.com/swagger-ui-dist@5.9.0/swagger-ui-bundle.js"></script>
<script src="https://unpkg.com/swagger-ui-dist@5.9.0/swagger-ui-standalone-preset.js"></script>
<script>
window.onload = function() {
const ui = SwaggerUIBundle({
url: '/openapi.yaml',
dom_id: '#swagger-ui',
deepLinking: true,
presets: [
SwaggerUIBundle.presets.apis,
SwaggerUIStandalonePreset
],
plugins: [
SwaggerUIBundle.plugins.DownloadUrl
],
layout: "StandaloneLayout",
tryItOutEnabled: true,
filter: true,
showRequestHeaders: true,
docExpansion: "list",
defaultModelExpandDepth: 2,
displayOperationId: true,
displayRequestDuration: true
});
};
</script>
</body>
</html>