Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a webhook to the Museum example #38

Merged
merged 1 commit into from
Oct 17, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Add a webhook to the Museum example
lornajane committed Oct 15, 2024
commit e4cf66e82aa5995a6ee780eb8986e4e5b2e8f5c3
20 changes: 20 additions & 0 deletions openapi.yaml
Original file line number Diff line number Diff line change
@@ -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: