Skip to content

Generates automatic API coverage documentation - #70

Merged
SergkeiM merged 1 commit into
masterfrom
feature/coverage
Aug 14, 2026
Merged

SergkeiM merged 1 commit into
masterfrom
feature/coverage

Conversation

@SergkeiM

Copy link
Copy Markdown
Owner

Introduces an automated system to generate comprehensive API coverage documentation based on Cloudflare's OpenAPI schema.

This feature provides:

  • A new script to fetch and process Cloudflare's OpenAPI schema, distilling it into a local snapshot of all API operations and their deprecation status.
  • A documentation generator that analyzes the package's endpoint implementations against this schema.
  • An automatically updated Markdown file (docs/content/4.coverage.md) detailing:
    • The percentage and count of implemented API operations and resources.
    • A breakdown of covered resources with links to their respective endpoint documentation.
    • A list of resources not yet covered, aiding in identifying areas for expansion.
    • Information on deprecated operations still in use and operations not found in the official schema.
  • Prettier, more readable labels for Cloudflare API resources in the generated documentation.
  • Integration into composer docs:generate and the Docker documentation build, ensuring the coverage report is always current.

This enhancement aims to offer transparent and accurate insights into the API surface area covered by the package, facilitating easier understanding and future development.

This introduces a new documentation page (`docs/content/4.coverage.md`) that is
automatically generated from Cloudflare's OpenAPI schema and the library's
implemented endpoints.

This provides:
- A clear, up-to-date overview of which Cloudflare API operations and
  resources are covered by the library.
- Identification of deprecated operations that are still in use.
- Tooling (`bin/refresh-cloudflare-schema.php`, `bin/generate-coverage-docs.php`)
  to keep the coverage report accurate and easily refreshable.
- Integration into Composer scripts (`docs:generate-coverage`,
  `docs:refresh-schema`, `docs:generate`) and Docker Compose for ease of use.
@SergkeiM
SergkeiM merged commit cb19b89 into master Aug 14, 2026
10 checks passed
@SergkeiM
SergkeiM deleted the feature/coverage branch August 14, 2026 22:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant