Skip to content

feat(playground): add default execution plugins for HTTP and Webhook operations#1300

Open
manik3160 wants to merge 9 commits into
asyncapi:masterfrom
manik3160:feature/plugin-execution
Open

feat(playground): add default execution plugins for HTTP and Webhook operations#1300
manik3160 wants to merge 9 commits into
asyncapi:masterfrom
manik3160:feature/plugin-execution

Conversation

@manik3160

Copy link
Copy Markdown

Description

This PR introduces built-in execution capabilities to the Playground, allowing users to test operations directly from the spec UI. By leveraging the new plugin architecture (PluginSlot.OPERATION), users can now fire actual HTTP requests and simulate Webhook payload deliveries seamlessly without needing to switch to external tools.

Changes proposed in this pull request:

  • Implemented a default HTTP execution plugin (httpPlugin) that detects HTTP bindings on operations and allows users to fire real HTTP requests inline via the Playground UI.
  • Implemented a default Webhook simulation plugin (webhookPlugin) that detects webhook operations and allows users to simulate payload delivery to a specified target endpoint.
  • Handled gracefully displaying request results (status codes, headers, and formatted response body) inline, as well as surfacing network/configuration errors cleanly.
  • Registered both plugins in the main Playground component using the new PluginSlot.OPERATION architecture, leaving standard/non-matching operations completely unaffected.

Related issue(s)

Resolves #1299

@sonarqubecloud

Copy link
Copy Markdown

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.

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

1 participant