Skip to content

Document content resource sync API#152

Merged
basit3407 merged 7 commits into
mainfrom
codex/content-sync-openapi-docs
May 12, 2026
Merged

Document content resource sync API#152
basit3407 merged 7 commits into
mainfrom
codex/content-sync-openapi-docs

Conversation

@basit3407
Copy link
Copy Markdown
Collaborator

Summary

  • Adds Content API v4 OpenAPI coverage for GET /resources/sync.
  • Adds Content API v4 OpenAPI coverage for GET /resources/snapshots/{resource_group}/{id}.
  • Regenerates current and versioned v4 endpoint docs and exposes them in the Resources sidebar.
  • Documents JavaScript SDK sync usage and the recommended bootstrap/incremental/snapshot flow.

Validation

  • yarn gen-api-docs content_apis_versioned
  • yarn gen-api-docs:version content_apis_versioned:all
  • yarn postgen-api-cleanup
  • yarn postgen-api-sidebars
  • yarn test

Notes

  • yarn typecheck currently fails on existing Docusaurus/theme alias resolution errors unrelated to these changes, e.g. @theme/ApiDemoPanel/FormItem and @docusaurus/plugin-content-docs-types.
  • yarn build was attempted but did not complete within the 10 minute local timeout.

@cloudflare-workers-and-pages
Copy link
Copy Markdown

cloudflare-workers-and-pages Bot commented May 11, 2026

Deploying qf-api-docs with  Cloudflare Pages  Cloudflare Pages

Latest commit: 78e7c2d
Status: ✅  Deploy successful!
Preview URL: https://e83d2798.qf-api-docs.pages.dev
Branch Preview URL: https://codex-content-sync-openapi-d.qf-api-docs.pages.dev

View logs

@basit3407 basit3407 marked this pull request as ready for review May 11, 2026 04:36
@basit3407 basit3407 requested a review from Copilot May 11, 2026 04:36
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 3b01ff130c

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread openAPI/content/v4.json Outdated
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR expands the Quran.Foundation Content API v4 documentation by adding OpenAPI + generated Docusaurus endpoint docs for the new resource sync/snapshot capabilities, and by documenting the intended sync flow in the JavaScript SDK docs.

Changes:

  • Added OpenAPI v4 definitions for GET /resources/sync and GET /resources/snapshots/{resource_group}/{id}, including new sync-related schemas.
  • Regenerated v4 API reference pages and wired the new endpoints into the Resources sidebars (current + 4.0.0 versioned).
  • Added a JavaScript SDK guide section describing bootstrap + incremental sync + snapshot usage.

Reviewed changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated 7 comments.

Show a summary per file
File Description
openAPI/content/v4.json Adds the two new Resources endpoints and introduces sync/snapshot schema components.
docs/sdk/javascript/resources.mdx Documents recommended sync flow and provides TypeScript examples for SDK usage.
docs/content_apis_versioned/sidebar.js Exposes the newly generated sync/snapshot endpoint docs in the current v4 Resources sidebar.
docs/content_apis_versioned/resources-sync.api.mdx Generated API reference page for GET /resources/sync (current docs).
docs/content_apis_versioned/resources-snapshot.api.mdx Generated API reference page for GET /resources/snapshots/... (current docs).
docs/content_apis_versioned/4.0.0/sidebar.js Exposes the new endpoints in the versioned 4.0.0 sidebar.
docs/content_apis_versioned/4.0.0/resources-sync.api.mdx Generated API reference page for GET /resources/sync (v4.0.0 docs).
docs/content_apis_versioned/4.0.0/resources-snapshot.api.mdx Generated API reference page for GET /resources/snapshots/... (v4.0.0 docs).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread openAPI/content/v4.json
Comment thread openAPI/content/v4.json
Comment thread openAPI/content/v4.json
Comment thread docs/sdk/javascript/resources.mdx
Comment thread docs/sdk/javascript/resources.mdx Outdated
Comment thread openAPI/content/v4.json
Comment thread openAPI/content/v4.json
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 8 out of 8 changed files in this pull request and generated 1 comment.

Comment thread docs/sdk/javascript/resources.mdx Outdated
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 8 out of 8 changed files in this pull request and generated 2 comments.

Comment thread openAPI/content/v4.json
Comment thread docs/sdk/javascript/resources.mdx
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 8 out of 8 changed files in this pull request and generated no new comments.

@basit3407 basit3407 requested a review from osamasayed May 11, 2026 05:34
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 8 out of 8 changed files in this pull request and generated 6 comments.

Comment thread openAPI/content/v4.json Outdated
Comment thread openAPI/content/v4.json Outdated
Comment thread docs/content_apis_versioned/resources-sync.api.mdx Outdated
Comment thread docs/content_apis_versioned/resources-snapshot.api.mdx Outdated
Comment thread docs/content_apis_versioned/4.0.0/resources-sync.api.mdx Outdated
Comment thread docs/content_apis_versioned/4.0.0/resources-snapshot.api.mdx Outdated
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 9 out of 9 changed files in this pull request and generated no new comments.

@basit3407 basit3407 merged commit 4234f94 into main May 12, 2026
5 checks passed
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.

2 participants