Skip to content

Clarify v4 chapter info resource discovery#146

Merged
basit3407 merged 2 commits intomainfrom
basit/v4-chapter-info-discovery-clarification
Apr 26, 2026
Merged

Clarify v4 chapter info resource discovery#146
basit3407 merged 2 commits intomainfrom
basit/v4-chapter-info-discovery-clarification

Conversation

@basit3407
Copy link
Copy Markdown
Collaborator

Summary

Clarifies the v4 chapter info docs so they no longer imply that /resources/chapter_infos and include_resources=true are equivalent discovery paths.

What changed

  • Updated GET /chapters/{id}/info wording to recommend include_resources=true for chapter-specific resource discovery
  • Clarified that /resources/chapter_infos is a global catalog and may include resources that return chapter_info: null for a specific surah
  • Updated the resources response description to state that it is chapter-specific

Why

The backend currently treats /resources/chapter_infos as a global resource catalog, while include_resources=true returns only resources that actually have chapter-info content for the resolved chapter and language. The docs should reflect that distinction clearly.

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 documentation to clearly distinguish chapter-info resource discovery via include_resources=true (chapter-specific) from the /resources/chapter_infos endpoint (global catalog), aligning consumer expectations with backend behavior.

Changes:

  • Revised GET /chapters/{id}/info descriptions to recommend include_resources=true for chapter-specific chapter-info resource discovery.
  • Clarified that /resources/chapter_infos is a global catalog and may list resources that yield chapter_info: null for a given chapter.
  • Updated the resources field description to explicitly describe chapter-specific filtering.

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

Comment thread openAPI/content/v4.json
@cloudflare-workers-and-pages
Copy link
Copy Markdown

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

Deploying qf-api-docs with  Cloudflare Pages  Cloudflare Pages

Latest commit: a308b36
Status: ✅  Deploy successful!
Preview URL: https://9919492d.qf-api-docs.pages.dev
Branch Preview URL: https://basit-v4-chapter-info-discov.qf-api-docs.pages.dev

View logs

@basit3407 basit3407 merged commit 931b6e0 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