Skip to content

[codex] publish api catalog and discovery links#135

Merged
basit3407 merged 2 commits intomainfrom
codex/api-catalog-discovery
Apr 21, 2026
Merged

[codex] publish api catalog and discovery links#135
basit3407 merged 2 commits intomainfrom
codex/api-catalog-discovery

Conversation

@basit3407
Copy link
Copy Markdown
Collaborator

What changed

  • added /.well-known/api-catalog as an RFC 9727 application/linkset+json API catalog
  • expanded the catalog to cover all published API anchors across production and pre-production environments
  • added service-doc links for both quick start guides, the request access page, and the published tutorial pages
  • added the missing tutorial discovery links and api-catalog link relation to the homepage response headers
  • added explicit headers for /.well-known/api-catalog so Cloudflare Pages serves it with the correct media type and profile

Why

The site was missing the well-known API catalog used for automated API discovery. That prevented RFC 9727 discovery checks from finding the published APIs and their related documentation.

Impact

  • automated API discovery tools can now discover the Quran Foundation API surfaces from /.well-known/api-catalog
  • consumers can find the relevant specs, docs, tutorials, quick starts, and request-access flow from the catalog and homepage link headers
  • the homepage now advertises all currently published tutorial routes through Link headers

Validation

  • python -m json.tool static/.well-known/api-catalog
  • verified all tutorial routes from .docusaurus/globalData.json are present in the homepage Link headers
@basit3407 basit3407 marked this pull request as ready for review April 21, 2026 04:53
@basit3407 basit3407 requested a review from Copilot April 21, 2026 04:54
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 adds an RFC 9727-compatible API catalog and discovery link headers so automated tooling can discover the Quran Foundation’s published API surfaces and related documentation starting from the site homepage and /.well-known/api-catalog.

Changes:

  • Added homepage Link headers advertising the API catalog and additional tutorial/guide discovery links.
  • Introduced static/.well-known/api-catalog as an application/linkset+json linkset describing API anchors, specs, docs, and health endpoints.
  • Added explicit headers for /.well-known/api-catalog to ensure correct Content-Type (with profile) on Cloudflare Pages.

Reviewed changes

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

File Description
static/_headers Adds homepage discovery Link headers and sets correct Content-Type/caching for /.well-known/api-catalog.
static/.well-known/api-catalog Adds the RFC 9727 JSON linkset covering production and pre-production API anchors plus related docs/tutorial links.
Comments suppressed due to low confidence (1)

static/_headers:23

  • The homepage Link headers advertise the OpenAPI specs with type="application/json", but the new API catalog declares those same service-desc targets as application/vnd.oai.openapi+json;version=3.0. For consistency (and for discovery clients that filter by type), consider updating the homepage service-desc type parameters to match the OpenAPI media type used in /.well-known/api-catalog.
  Link: </.well-known/api-catalog>; rel="api-catalog"; type="application/linkset+json"
  Link: </openAPI/content/v4.json>; rel="service-desc"; type="application/json"
  Link: </openAPI/oauth2-apis/v1.json>; rel="service-desc"; type="application/json"
  Link: </openAPI/search/v1.json>; rel="service-desc"; type="application/json"
  Link: </openAPI/user-related-apis/v1.json>; rel="service-desc"; type="application/json"

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

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

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

Deploying qf-api-docs with  Cloudflare Pages  Cloudflare Pages

Latest commit: 04bc652
Status: ✅  Deploy successful!
Preview URL: https://93a78ce8.qf-api-docs.pages.dev
Branch Preview URL: https://codex-api-catalog-discovery.qf-api-docs.pages.dev

View logs

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: ae783f772a

ℹ️ 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 static/.well-known/api-catalog
@basit3407
Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector
Copy link
Copy Markdown

Codex Review: Didn't find any major issues. What shall we delve into next?

ℹ️ 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 b0f070d into main Apr 21, 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