You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
OpenAPI 3.1.0 (see #333) adds support for webhooks which the API provider can call, but which may be configured out of band (i.e. in some way other than calling an operation described in the OpenAPI document).
This is similar to the way an Operation can have a callbacks, which represent a call that may be made by the API provider, after a client has called that operation.
openapi: 3.1.0info:
title: Webhook Exampleversion: 1.0.0# Since OAS 3.1.0 the paths element isn't necessary. Now a valid OpenAPI Document can describe only paths, webhooks, or even only reusable componentswebhooks:
# Each webhook needs a namenewPet:
# This is a Path Item Object, the only difference is that the request is initiated by the API providerpost:
requestBody:
description: Information about a new pet in the systemcontent:
application/json:
schema:
$ref: "#/components/schemas/Pet"responses:
"200":
description: Return a 200 status to indicate that the data was received successfullycomponents:
schemas:
Pet:
required:
- id
- nameproperties:
id:
type: integerformat: int64name:
type: stringtag:
type: string
OpenAPI 3.1.0 (see #333) adds support for webhooks which the API provider can call, but which may be configured out of band (i.e. in some way other than calling an operation described in the OpenAPI document).
This is similar to the way an Operation can have a callbacks, which represent a call that may be made by the API provider, after a client has called that operation.
Reference: https://spec.openapis.org/oas/v3.1.0.html#openapi-object
Example:
Work needed
OpenAPI
model interface Add Webhooks model APIs #612Possible extension:
The text was updated successfully, but these errors were encountered: