Files
Nexus-Guard-Suite/apps/docs/en/api/index.md
T
datadunia 60d326880a docs: reorganize documentation with i18n and Swagger API reference
- Add per-submodule docs structure (server-core, dashboard-ui, device-agent)
- Restructure VitePress with i18n support (Indonesian default + English)
- Add Swagger API reference pages with Swagger UI CDN embed
- Create merge.js script for combining sidebar manifests
- Integrate docs build into Docker (update.sh + nginx volume mount)
- Add documentation section to root README
2026-06-10 02:36:24 +07:00

33 lines
879 B
Markdown

# NexusGuard API Reference
This page provides interactive documentation for the NexusGuard Server Core API.
<div id="swagger-ui"></div>
<script setup>
import { onMounted } from 'vue'
onMounted(() => {
// Load Swagger UI from CDN
const script = document.createElement('script')
script.src = 'https://unpkg.com/swagger-ui-dist@5/swagger-ui-bundle.js'
script.onload = () => {
window.SwaggerUIBundle({
url: '/server-core/docs/swagger.json',
dom_id: '#swagger-ui',
presets: [
window.SwaggerUIBundle.presets.apis,
window.SwaggerUIBundle.SwaggerUIStandalonePreset
],
layout: 'BaseLayout'
})
}
document.head.appendChild(script)
const link = document.createElement('link')
link.rel = 'stylesheet'
link.href = 'https://unpkg.com/swagger-ui-dist@5/swagger-ui.css'
document.head.appendChild(link)
})
</script>