Skip to content

Commit a544751

Browse files
docs: add socket connection documentation
1 parent 011cb24 commit a544751

File tree

2 files changed

+25
-3
lines changed

2 files changed

+25
-3
lines changed

docs/asyncapi/asyncapi.yml

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,16 @@ servers:
2323
url: http://broker:29092
2424
protocol: kafka
2525
description: The event broker
26+
automation-scenario:
27+
url: http://api-gateway-microservice:3001
28+
protocol: wss
29+
description: The Api Gateway Web Socket for automation scenario proposals.
30+
2631

2732
defaultContentType: application/json
2833

2934
channels:
30-
automation-proposals-events:
35+
automation-proposal-events:
3136
description: The topic on which the automation scenario proposals are consumed.
3237
publish:
3338
operationId: getAutomationScenarioProposals
@@ -48,6 +53,14 @@ channels:
4853
- "$ref": '#/components/messages/customLightRequest'
4954
- "$ref": '#/components/messages/customLightStop'
5055

56+
web-socket-events:
57+
description: The web socket channel in which the automation proposals are sent.
58+
subscribe:
59+
operationId: sendAutomationProposal
60+
summary: |
61+
Send automation scenario proposals to web socket channel.
62+
message:
63+
"$ref": '#/components/messages/webSocketMessage'
5164

5265
components:
5366
messages:
@@ -87,6 +100,15 @@ components:
87100
payload:
88101
$ref: "#/components/schemas/customLightStopEventSchema"
89102

103+
webSocketMessage:
104+
messageId: webSocketMessage
105+
name: Automation Proposal Web Socket message
106+
title: Automation Proposal Web Socket message
107+
summary: The automation proposal message sent to the websocket.
108+
contentType: application/json
109+
payload:
110+
$ref: "#/components/schemas/medicalTechnologyAutomationProposalPayload"
111+
90112
schemas:
91113
medicalTechnologyAutomationProposalEventSchema:
92114
type: object

docs/openapi/openapi.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -255,13 +255,13 @@ paths:
255255
description: the ambient light lux
256256
required: true
257257
schema:
258-
type: string
258+
type: integer
259259
- in: query
260260
name: surgicalLightLux
261261
description: the surgical light lux
262262
required: true
263263
schema:
264-
type: string
264+
type: integer
265265
responses:
266266
'200':
267267
description: custom scenario received

0 commit comments

Comments
 (0)