Skip to content

Conversation

basit3407
Copy link
Collaborator

Summary

Adds optional boolean foot_notes query param to GET /quran/translations/{translation_id}.
When true, response includes a foot_notes map keyed by footnote IDs (from <sup> tags) to their text.

Changes

  • Updates openAPI/content/v4.json to define the foot_notes query param.
  • Adds foot_notes object to the response schema (additionalProperties: string).
  • Extends the example payload.

API Impact

  • Backward compatible.
  • Default: false → no change to existing responses unless explicitly requested.

Docs

  • No MDX edits.
  • Docs are generated from openAPI/content/v4.json.

Verification

  • Regenerate docs and confirm the param/response appear in the translations endpoint.
  • Validate OpenAPI schema parses successfully.
  • Sanity-check that responses omit foot_notes when the flag is not set.

basit3407 added 30 commits June 24, 2025 11:02
in random verse endpoint

Added missing documentation for existing query parameters supported by the random verse endpoint:

- chapter_number
- page_number
- juz_number
- hizb_number
- rub_el_hizb_number
- ruku_number
- manzil_number

These parameters were already supported in the API but not reflected in the documentation. This update ensures developers are aware of all available filtering options when using the endpoint.
/tafsirs/{resource_id}/by_ayah/{ayah_key}

Fixed the incorrect response schema shown for the /tafsirs/{resource_id}/by_ayah/{ayah_key} endpoint in the docs.

The autogenerated version via <ApiTabs> was causing runtime crashes due to unresolved OpenAPI store references. Since that approach wasn't working despite correct infoPath and operationId setup, we manually wrote the MDX documentation using standard Docusaurus components.

Tested locally – page now renders successfully and reflects the accurate response structure.
list-ayah-tafsirs and regenerate MDX

Updated the OpenAPI schema (v4.json) for the /tafsirs/{resource_id}/by_ayah/{ayah_key} endpoint to ensure the response structure reflects the actual API output.

The previous crash with <ApiTabs> was due to incorrect or incomplete schema context. After fixing the schema, we ran:

- yarn clean-all
- yarn gen-all
- yarn start

The generated docs now render correctly and reflect the accurate response, eliminating the need for manual overrides.
…aceholders-in-v4.json

Fix unrendered model placeholders
…-tokens-in-v4.json

Fix placeholder endpoints
…in-get-todays-plan-api

Fix mushafId param docs
…fields-and-word_fields

Add field reference documentation and links
…g-other-endpoints

docs: link resource references
…ushafid-in-get-todays-plan-api"

This reverts commit c498c43, reversing
changes made to 0969369.
…ation-for-docusaurus

Add JavaScript SDK docs
basit3407 added 16 commits July 3, 2025 15:54
…documentation-for-docusaurus"

This reverts commit 66e1279, reversing
changes made to 25f0988.
GET /quran/translations/{translation_id}

Add optional boolean query param foot_notes (default: false).

When foot_notes=true, include foot_notes object mapping footnote IDs (from <sup> tags) to their text.

Update response schema and example to document the foot_notes map.

No MDX changes; docs will be generated from openAPI/content/v4.json.

Affected:
openAPI/content/v4.json
Copy link

vercel bot commented Sep 10, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
qf-api-docs Ready Ready Preview Comment Sep 10, 2025 1:06pm

@osamasayed
Copy link
Member

@basit3407 there is a merge conflict

@basit3407
Copy link
Collaborator Author

@osamasayed I have resolved the conflicts. Please free to review and merge. JAK!

@osamasayed osamasayed merged commit f50752a into main Sep 10, 2025
2 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