kopia lustrzana https://github.com/dgtlmoon/changedetection.io
|
|
||
|---|---|---|
| .. | ||
| api_v1 | ||
| .gitignore | ||
| README.md | ||
| api-spec.yaml | ||
| browsersteps-anim.gif | ||
| btc-support.png | ||
| chrome-extension-screenshot.png | ||
| json-diff-example.png | ||
| json-filter-field-example.png | ||
| package.json | ||
| proxy-example.jpg | ||
| restock-overview.png | ||
| restock-settings.png | ||
| scheduler.png | ||
| screenshot-diff.png | ||
| screenshot-notifications.png | ||
| screenshot.png | ||
| visualselector-anim.gif | ||
| web-page-change-conditions.png | ||
README.md
Directory of docs
Regenerating API Documentation
Modern Interactive API Docs (Recommended)
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:
- Edit
docs/api-spec.yamlwith new endpoints, parameters, or response schemas - Run
npm run build-docsto regenerate the HTML documentation - Commit both the YAML spec and generated HTML files