Files
api-extranetwork/public/docs.html
ExtraNetwork e5c4b6aa13 first commit
2026-05-12 17:04:54 +03:00

114 lines
3.9 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!doctype html>
<html lang="tr">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>ExtraNetWork API — Swagger UI</title>
<!-- Swagger UI 5.32.5 (latest) -->
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/swagger-ui-dist@5.32.5/swagger-ui.css"
/>
<style>
*,
*::before,
*::after {
box-sizing: border-box;
}
body {
margin: 0;
padding: 0;
font-family:
-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
sans-serif;
background: #fafafa;
}
/* Topbar'ı gizle, kendi başlığımızı göster */
.swagger-ui .topbar {
display: none;
}
#enw-header {
display: flex;
align-items: center;
gap: 12px;
padding: 12px 24px;
background: #1b1b1b;
color: #fff;
position: sticky;
top: 0;
z-index: 1000;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}
#enw-header h1 {
font-size: 1.1rem;
font-weight: 600;
margin: 0;
letter-spacing: 0.02em;
}
#enw-header span.badge {
font-size: 0.7rem;
background: #49cc90;
color: #000;
border-radius: 4px;
padding: 2px 7px;
font-weight: 700;
}
</style>
</head>
<body>
<div id="enw-header">
<h1>ExtraNetWork API</h1>
<span class="badge">OAS 3.1</span>
</div>
<div id="swagger-ui"></div>
<script src="https://cdn.jsdelivr.net/npm/swagger-ui-dist@5.32.5/swagger-ui-bundle.js"></script>
<script src="https://cdn.jsdelivr.net/npm/swagger-ui-dist@5.32.5/swagger-ui-standalone-preset.js"></script>
<script>
window.onload = () => {
window.ui = SwaggerUIBundle({
url: "openapi.yaml",
dom_id: "#swagger-ui",
// Layout & UX
layout: "BaseLayout",
deepLinking: true,
docExpansion: "none",
defaultModelsExpandDepth: 1,
defaultModelExpandDepth: 2,
displayRequestDuration: true,
filter: true,
showExtensions: true,
showCommonExtensions: true,
tryItOutEnabled: true,
persistAuthorization: true,
withCredentials: false,
// Request snippets (curl, JS, Python…)
requestSnippetsEnabled: true,
requestSnippets: {
generators: {
curl_bash: { title: "cURL (bash)", syntax: "bash" },
curl_powershell: {
title: "cURL (PowerShell)",
syntax: "powershell",
},
node_fetch: {
title: "Node (fetch)",
syntax: "javascript",
},
},
defaultExpanded: false,
},
presets: [
SwaggerUIBundle.presets.apis,
SwaggerUIStandalonePreset,
],
plugins: [SwaggerUIBundle.plugins.DownloadUrl],
});
};
</script>
</body>
</html>