Files
changedetection.io/docs
dgtlmoon 2e4f40b172
Some checks failed
Build and push containers / metadata (push) Has been cancelled
Build and push containers / build-push-containers (push) Has been cancelled
Publish Python 🐍distribution 📦 to PyPI and TestPyPI / Build distribution 📦 (push) Has been cancelled
ChangeDetection.io App Test / lint-code (push) Has been cancelled
Publish Python 🐍distribution 📦 to PyPI and TestPyPI / Test the built package works basically. (push) Has been cancelled
Publish Python 🐍distribution 📦 to PyPI and TestPyPI / Publish Python 🐍 distribution 📦 to PyPI (push) Has been cancelled
ChangeDetection.io App Test / test-application-3-10 (push) Has been cancelled
ChangeDetection.io App Test / test-application-3-11 (push) Has been cancelled
ChangeDetection.io App Test / test-application-3-12 (push) Has been cancelled
ChangeDetection.io App Test / test-application-3-13 (push) Has been cancelled
API - Adding better explanation and usage of History API, bumping doc versions.
2025-10-31 00:41:09 +01:00
..
2025-08-24 00:48:17 +02:00
2025-08-24 00:48:17 +02:00

Directory of docs

Regenerating API Documentation

To regenerate the modern API documentation, run from the docs/ directory:

# Install dependencies (first time only)
npm install

# Generate the HTML documentation from OpenAPI spec using Redoc
npm run build-docs

OpenAPI Specification

The OpenAPI specification (docs/api-spec.yaml) is the source of truth for API documentation. This industry-standard format enables:

  • Interactive documentation - Test endpoints directly in the browser
  • SDK generation - Auto-generate client libraries for any programming language
  • API validation - Ensure code matches documentation
  • Integration tools - Import into Postman, Insomnia, API gateways, etc.

Important: When adding or modifying API endpoints, you must update docs/api-spec.yaml to keep documentation in sync:

  1. Edit docs/api-spec.yaml with new endpoints, parameters, or response schemas
  2. Run npm run build-docs to regenerate the HTML documentation
  3. Commit both the YAML spec and generated HTML files