Skip to content

Instantly share code, notes, and snippets.

@browniebroke
Created September 9, 2024 14:37
Demo webhook OpenAPI schema
openapi: 3.1.0
info:
title: Demo
components:
schemas:
Event:
type: object
properties:
field_1:
type: string
readOnly: true
field_2:
type: string
securitySchemes:
tokenAuth:
type: apiKey
in: header
name: Authorization
description: Token-based authentication with required prefix "Token"
webhooks:
Event created:
post:
description: An event was created.
summary: An event was created.
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/Event'
required: true
responses:
'200':
description: 'Return a 200 status to indicate that the data was received successfully.'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment