Skip to content

Commit

Permalink
Add a webhook to the Museum example (#38)
Browse files Browse the repository at this point in the history
  • Loading branch information
lornajane authored Oct 17, 2024
1 parent 3bdfc57 commit 56d2e8f
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 56d2e8f

Please sign in to comment.