docs(openapi): add clickable cross-links for translations/tafsirs in /verses query params (v4)#18
Merged
osamasayed merged 1 commit intomainfrom Sep 10, 2025
Conversation
to /resources/translations and /resources/tafsirs in all /verses query params (v4.json)
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
osamasayed
approved these changes
Sep 10, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds clickable cross-links in all
/versesendpoint query parameters to help users find available resource IDs for translations and tafsirs.Changes
Updated
openAPI/content/v4.json:translations: “See [/resources/translations](/resources/translations) for available ids.”tafsirs: “See [/resources/tafsirs](/resources/tafsirs) for available ids.”Ensured links render as Markdown so they’re clickable in the docs UI.
Affected Endpoints
/verses/by_chapter/{chapter_number}/verses/by_page/{page_number}/verses/by_juz/{juz_number}/verses/by_hizb/{hizb_number}/verses/by_rub/{rub_el_hizb_number}/verses/by_key/{verse_key}/verses/randomRationale
/versesendpoints.Files Changed
openAPI/content/v4.jsonHow to Test
Clean and rebuild:
In the served site, navigate to Content APIs → Verses:
Check the Parameters tab on each endpoint above.
Confirm the “translations” and “tafsirs” descriptions include clickable links:
/docs/content_apis_versioned/translations/docs/content_apis_versioned/tafsirsOptionally verify source:
Open
openAPI/content/v4.jsonand search for:"/docs/content_apis_versioned/translations""/docs/content_apis_versioned/tafsirs"Impact
Checklist
yarn build)/versespagesopenAPI/content/v4.json