Skip to content

Commit

Permalink
Add a webhook to the Museum example
Browse files Browse the repository at this point in the history
  • Loading branch information
lornajane committed Oct 15, 2024
1 parent 3bdfc57 commit e4cf66e
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,26 @@ paths:
$ref: '#/components/responses/BadRequest'
"404":
$ref: '#/components/responses/NotFound'
webhooks:
publishNewEvent:
post:
summary: New special event added
description: Publish details of a new or updated event.
operationId: publishNewEvent
tags:
- Events
requestBody:
content:
application/json:
schema:
$ref: "#/components/schemas/SpecialEvent"
examples:
default_example:
$ref: "#/components/examples/GetSpecialEventResponseExample"
responses:
"202":
description: Data accepted.

components:
schemas:
TicketType:
Expand Down

0 comments on commit e4cf66e

Please sign in to comment.