1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52
|
openapi: 3.1.0
info:
title: Webhook Test API
version: 1.0.0
webhooks:
pet.new:
post:
requestBody:
description: Information about a new pet in the system
content:
application/json:
schema:
$ref: "#/components/schemas/Pet"
responses:
'200':
description: Return a 200 status to indicate that the data was received successfully
pet.updated:
post:
requestBody:
description: Information about an updated pet
content:
application/json:
schema:
$ref: "#/components/schemas/PetUpdate"
responses:
'200':
description: Return a 200 status to indicate that the data was received successfully
components:
schemas:
Pet:
type: object
required:
- id
- name
properties:
id:
type: integer
format: int64
name:
type: string
tag:
type: string
PetUpdate:
type: object
properties:
id:
type: integer
format: int64
name:
type: string
tag:
type: string
|