sse events sample

This commit is contained in:
2026-06-18 01:21:40 +05:30
parent 69b795f9ca
commit 083fb6923d
4 changed files with 95 additions and 0 deletions

View File

@@ -984,6 +984,25 @@ paths:
$ref: '#/components/responses/ValidationError'
'500':
$ref: '#/components/responses/InternalServerError'
/calls:
get:
summary: Stream random animal sounds via SSE
operationId: stream_calls
x-sse: true
responses:
'200':
description: SSE stream of random animal sounds
content:
text/event-stream:
schema:
type: object
required: [sound]
properties:
sound:
type: string
enum: [woof, meow, coo]
description: Random animal sound
/appointments/{id}:
get:
operationId: get_appointment