Skip to content

@W-23748894 feat: dedicated Webhooks section on API Summary - #63

Merged
alexpmule merged 4 commits into
masterfrom
W-23748894-summary-webhooks
Aug 26, 2026
Merged

alexpmule merged 4 commits into
masterfrom
W-23748894-summary-webhooks

Conversation

@alexpmule

@alexpmule alexpmule commented Aug 26, 2026 •

Copy link
Copy Markdown
Contributor

What

Adds a dedicated Webhooks section to the API Summary page's table of
contents, rendering OAS 3.1/3.2 top-level webhooks separately from endpoints.

Why

Part of TD-0333486 (OAS 3.1/3.2 API Console support) — the third and final
component fix. The summary page previously listed only endpoints; top-level
webhooks (event-driven callbacks) were not surfaced at all. Users viewing an
OAS 3.1/3.2 API summary now see webhooks in their own labelled section,
distinct from request/response endpoints.

How

  • _computeWebhooks(webApi) reads the apiContract#webhooks vocabulary term
    (an array of apiContract#EndPoint nodes) and builds the same view-model
    shape already used for endpoints.
  • _webhooksTemplate() renders a separate "Webhooks" TOC section, reusing the
    existing _endpointTemplate — webhooks are byte-identical EndPoint nodes,
    and the mixin resolves navigation selection by @id, so no new shape type is
    needed.
  • Styles.js: the .webhooks-title label shares the existing endpoints-title
    styling.
  • ApiSummary.d.ts: type declarations for the new members (hand-maintained).
  • chore(deps): raises the amf-helper-mixin floor to ^4.5.38 (and the
    lockfile). The apiContract#webhooks vocabulary term was added in 4.5.38;
    4.5.36 lacks it and the section would silently render nothing on a clean
    install. Matches api-navigation, the other webhooks consumer.

Testing

  • New Webhooks rendering (OAS 3.1) test block (6 tests) against a new demo
    fixture demo/oas31-webhooks/oas31-webhooks.yaml.
  • Full suite: 137 tests pass (Chromium + Firefox), coverage 95.58 %.
  • npm run lint / lint:types: no new issues (only pre-existing errors in
    untouched files — karma.conf.js, test/amf-loader.js, and gRPC-merge lines
    in ApiSummary.js / api-summary.test.js).

Related

Screenshots

Screenshot 2026-08-26 at 9 44 14 AM

Render OAS 3.1/3.2 top-level webhooks in their own Webhooks table-of-contents
section, separate from endpoints, so consumers can distinguish event-driven
callbacks from request/response operations. Webhooks are apiContract#EndPoint
nodes sharing the endpoint view-model shape, so the existing endpoint template
is reused. Includes an OAS 3.1 demo fixture and rendering tests.

W-23748894
The Webhooks section reads the apiContract#webhooks namespace vocabulary
term, added to amf-helper-mixin in 4.5.38; 4.5.36 lacks it and the section
would silently render nothing under a clean install. Aligns the floor and
lockfile with api-navigation, the other webhooks consumer.

W-23748894
@alexpmule
alexpmule force-pushed the W-23748894-summary-webhooks branch from 6a0d29d to cc5d6dd Compare August 26, 2026 12:33
@alexpmule
alexpmule merged commit 03a7cc9 into master Aug 26, 2026
4 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.

1 participant