Skip to content
Last updated

The iClosed.io API is documented with OpenAPI 3.0. Use the spec for code generation, Postman/Insomnia import, or interactive docs.

OpenAPI spec

Viewing with Redocly

This project is wired for Redocly CLI. From the repo root (use nvm use 22 if you use nvm):

# Lint the API spec
npx @redocly/cli lint

# Preview the API reference (interactive docs) — serves at http://localhost:8080
npx @redocly/cli preview-docs iclosed@v1

# Custom port, e.g. 3000
npx @redocly/cli preview-docs iclosed@v1 -p 3000

# Bundle the spec (outputs bundled file)
npx @redocly/cli bundle openapi/v1/openapi.json -o openapi/v1/bundled.json

Configuration is in redocly.yaml at the project root. The API is registered as iclosed@v1.

Host locally

WhatCommandURL
Reunite/Realm (full theme, sidebar, API + docs)npm run preview or npm run preview:reunitehttp://localhost:4000
API reference only (Redoc)npm run preview:api or npx @redocly/cli preview-docs iclosed@v1http://localhost:9999
Docs (markdown only)npm run preview:docs or npx serve docshttp://localhost:3000

To see how it will look when Redocly hosts it (navbar, footer, theme, sidebar): run npm run preview (or npx @redocly/cli preview --product=realm). That uses the same Realm layout and theme as Reunite.