events-backend: update schema to include publish responses

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
Patrik Oldsberg
2024-05-24 13:50:13 +02:00
parent 1eaa719943
commit 05dea0964b
2 changed files with 11 additions and 0 deletions
@@ -137,6 +137,13 @@ export const spec = {
operationId: 'PostEvent',
description: 'Publish a new event',
responses: {
'201': {
description: 'The event was published successfully',
},
'204': {
description:
'The event did not need to be published as all subscribers have already been notified',
},
default: {
$ref: '#/components/responses/ErrorResponse',
},
@@ -93,6 +93,10 @@ paths:
operationId: PostEvent
description: Publish a new event
responses:
'201':
description: The event was published successfully
'204':
description: The event did not need to be published as all subscribers have already been notified
default:
$ref: '#/components/responses/ErrorResponse'
security: