-
-
Notifications
You must be signed in to change notification settings - Fork 293
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Webhooks support #1089
Comments
Welcome to AsyncAPI. Thanks a lot for reporting your first issue. Please check out our contributors guide and the instructions about a basic recommended setup useful for opening a pull request. |
Great questions
asyncapi: '2.6.0'
info:
title: ConTracker Webhook API
version: '1.0.0'
description: Webhook notifications for ConTracker platform events
servers:
production:
url: https://api.contraacker.com
protocol: http
description: Production server
bindings:
http:
type: request
channels:
/webhooks/bid-events:
subscribe:
message:
$ref: '#/components/messages/BidPlaced'
bindings:
http:
method: POST
bindingVersion: '0.1.0'
components:
messages:
BidPlaced:
name: bidPlaced
contentType: application/json
payload:
type: object
properties:
bidId:
type: string
description: Unique identifier of the bid
tenderId:
type: string
description: The tender being bid on
amount:
type: number
description: Amount of the bid in MATIC
bidder:
type: string
description: Address of the bidder
timestamp:
type: string
format: date-time
description: Time when the bid was placed``` |
Context
Webhooks are event-driven, and communication between webhook-integrated services is asynchronous.
A standard webhook flow follows client service subscribing to the publisher service by sending to the publisher a callback URL to be notified about an event that the publisher produces.
Obviously, AsyncAPI allows to document event-driven services that communicate asynchronously.
Question
I didn't see any examples of webhooks being documented by AsyncAPI, and the OpenAPI specification supports webhooks.
My questions are as follows:
Thanks for clarification
The text was updated successfully, but these errors were encountered: