sse events sample
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user