Skip to content

[codex] Document public v4 hadith reference endpoints#117

Merged
basit3407 merged 5 commits intomainfrom
codex/v4-hadith-public-parity-docs
Apr 26, 2026
Merged

[codex] Document public v4 hadith reference endpoints#117
basit3407 merged 5 commits intomainfrom
codex/v4-hadith-public-parity-docs

Conversation

@basit3407
Copy link
Copy Markdown
Collaborator

Summary

  • document the new public v4 hadith reference endpoints in the content API OpenAPI spec
  • add hadith-focused schemas, examples, and generated MDX pages for both versioned doc paths
  • keep the docs aligned with the QDC-shaped public v4 response contract

Why

The API change adds public v4 hadith reference endpoints, so the content API docs need matching path definitions and generated endpoint pages.

Impact

  • documents GET /hadith_references/by_ayah/{ayah_key}
  • documents GET /hadith_references/by_ayah/{ayah_key}/hadiths
  • documents GET /hadith_references/count_within_range
  • adds generated MDX pages in both docs/content_apis_versioned/ and docs/content_apis_versioned/4.0.0/

Validation

  • node -e "JSON.parse(require('fs').readFileSync('openAPI/content/v4.json','utf8')); console.log('openapi json ok')"
  • yarn build
  • result: OpenAPI generation succeeded and produced the new hadith docs pages, but the final Docusaurus build failed on the pre-existing unrelated front matter issue in docs/content_apis_versioned/posts-controller-feed.api.mdx
@cloudflare-workers-and-pages
Copy link
Copy Markdown

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

Deploying qf-api-docs with  Cloudflare Pages  Cloudflare Pages

Latest commit: a247d55
Status: ✅  Deploy successful!
Preview URL: https://84c16916.qf-api-docs.pages.dev
Branch Preview URL: https://codex-v4-hadith-public-parit.qf-api-docs.pages.dev

View logs

@basit3407 basit3407 marked this pull request as ready for review April 26, 2026 04:28
@basit3407 basit3407 requested a review from Copilot April 26, 2026 04:29
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: 285370f650

ℹ️ 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 docs/content_apis_versioned/hadith-references-by-ayah.api.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

Updates the Content API v4 OpenAPI spec and generated Docusaurus pages to document new public v4 hadith reference endpoints, including schemas/examples that align with the QDC-shaped response contract.

Changes:

  • Added 3 new Hadith endpoints to openAPI/content/v4.json (by_ayah, by_ayah/hadiths, count_within_range).
  • Introduced hadith-focused component schemas (reference records, hadith payloads, count map, and QDC-style error body).
  • Added generated .api.mdx endpoint pages in both the unversioned and 4.0.0 versioned doc paths.

Reviewed changes

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

Show a summary per file
File Description
openAPI/content/v4.json Adds new Hadith paths plus supporting schemas/examples.
docs/content_apis_versioned/hadiths-by-ayah.api.mdx Generated docs page for GET /hadith_references/by_ayah/{ayah_key}/hadiths.
docs/content_apis_versioned/hadith-references-by-ayah.api.mdx Generated docs page for GET /hadith_references/by_ayah/{ayah_key}.
docs/content_apis_versioned/hadith-count-within-range.api.mdx Generated docs page for GET /hadith_references/count_within_range.
docs/content_apis_versioned/4.0.0/hadiths-by-ayah.api.mdx Versioned generated docs page for hadiths-by-ayah.
docs/content_apis_versioned/4.0.0/hadith-references-by-ayah.api.mdx Versioned generated docs page for hadith-references-by-ayah.
docs/content_apis_versioned/4.0.0/hadith-count-within-range.api.mdx Versioned generated docs page for hadith-count-within-range.

💡 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
@basit3407
Copy link
Copy Markdown
Collaborator Author

@codex review

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: 0c6716217b

ℹ️ 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 docs/content_apis_versioned/sidebar.js Outdated
@basit3407
Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector
Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Chef's kiss.

ℹ️ 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".

@basit3407 basit3407 merged commit dbbfaca into main Apr 26, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants