Panel Configuration
Enable API Docs
Turn on the built-in Scalar/Swagger API documentation inside XyraPanel.
Configure nuxt.config.ts
nuxt.config.ts
export default defineNuxtConfig({
experimental: { openAPI: true },
openAPI: {
ui: {
scalar: { route: "/_docs", theme: "purple" },
swagger: { route: "/_docs/swagger" },
},
},
})
Access the docs
Nitro serves these endpoints automatically:
- Scalar:
http://localhost:3000/_docs - Swagger UI:
http://localhost:3000/_docs/swagger - Raw OpenAPI:
http://localhost:3000/_docs/openapi.json
