Skip to content

Add Operation Plugin Support for Testing HTTP and Webhooks Requests in Playground #1299

Description

@AceTheCreator

The Playground is a powerful interactive surface for exploring AsyncAPI specs, but
currently lacks the ability to execute or simulate operations. With the new plugin
architecture now available in the React component, we can expose hooks that allow
tooling to wire in request execution for both HTTP and Webhook channels.

Proposed Behavior

  • Users can trigger test requests for subscribe/publish/send/receive operations
    directly from the rendered spec UI.
  • The Playground ships with a built-in default plugin that supports:
    • HTTP operations: fires a real HTTP request using the operation's server bindings.
    • Webhook operations: displays the expected incoming payload and optionally
      simulates delivery to a configured endpoint.

Acceptance Criteria

  • Playground registers a default HTTP plugin for http protocol bindings
  • Playground registers a default Webhook plugin for http-based webhook operations
  • Plugin results (response body, status, headers) are rendered inline in the UI
  • Errors (network failures, invalid bindings) surface gracefully with user-facing messages
  • Existing Playground behavior is unaffected when no plugin is registered

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions