Documentation for the Visonic/Tyco/JC PowerManage API. This repository contains the OpenAPI specification (both a main entry file and modular YAMLs) and a tiny local dev server that bundles the spec and serves a live preview using Scalar API Reference.
- Modular OpenAPI YAML under
./apiwith a top-levelopenapi.yamlentry. - One‑command local preview: bundles the spec with Redocly and serves via a simple Node HTTP server.
- Live reload during authoring via nodemon (watches
openapi.yamlandapi/).
- Node.js 20+ recommended
npm install
This command will:
- Watch your YAML sources (
openapi.yamlandapi/directory) - Bundle them into
complete.yamlwith Redocly - Serve
index.htmland the bundled spec at http://localhost:8005
npm run dev
Open your browser to:
- Docs UI: http://localhost:8005/
- Bundled spec: http://localhost:8005/complete.yaml
If you just want to produce complete.yaml without running the watcher/server:
npx redocly bundle openapi.yaml -o complete.yaml
openapi.yaml— main OpenAPI entry that references other YAML filesapi/— modular spec files (e.g., paths, components) under versioned foldersindex.html— lightweight Scalar API Reference page that points tocomplete.yamldev.js— Node script that bundles the spec and serves the site on port 8005complete.yaml— generated artifact (do not hand‑edit)
- Modify
openapi.yamlor the files underapi/. - Keep references valid; run
npm run devto see errors in the console if the bundle fails. - The browser refreshes automatically when files change.
npm run dev— start nodemon watcher and the local server defined indev.js.
@redocly/cli— for bundling OpenAPInodemon— for watching files during development@scalar/api-reference— loaded via CDN inindex.htmlto render the docs UI
MIT License. See LICENSE file.