|
1 | 1 | components: |
2 | 2 | schemas: |
| 3 | + BasicAuthentication: |
| 4 | + additionalProperties: false |
| 5 | + description: User credentials for basic authentication |
| 6 | + properties: |
| 7 | + password: |
| 8 | + description: Password to verify user's identity |
| 9 | + title: Password |
| 10 | + type: string |
| 11 | + username: |
| 12 | + description: Unique identifier for user |
| 13 | + title: Username |
| 14 | + type: string |
| 15 | + required: |
| 16 | + - username |
| 17 | + - password |
| 18 | + title: BasicAuthentication |
| 19 | + type: object |
3 | 20 | DeviceModel: |
4 | 21 | additionalProperties: false |
5 | 22 | description: Representation of a device |
@@ -224,6 +241,28 @@ components: |
224 | 241 | - new_state |
225 | 242 | title: StateChangeRequest |
226 | 243 | type: object |
| 244 | + StompConfig: |
| 245 | + additionalProperties: false |
| 246 | + description: Config for connecting to stomp broker |
| 247 | + properties: |
| 248 | + auth: |
| 249 | + $ref: '#/components/schemas/BasicAuthentication' |
| 250 | + description: Auth information for communicating with STOMP broker, if required |
| 251 | + title: Auth |
| 252 | + enabled: |
| 253 | + default: false |
| 254 | + description: True if blueapi should connect to stomp for asynchronous event |
| 255 | + publishing |
| 256 | + title: Enabled |
| 257 | + type: boolean |
| 258 | + url: |
| 259 | + default: tcp://localhost:61613 |
| 260 | + format: uri |
| 261 | + minLength: 1 |
| 262 | + title: Url |
| 263 | + type: string |
| 264 | + title: StompConfig |
| 265 | + type: object |
227 | 266 | Task: |
228 | 267 | additionalProperties: false |
229 | 268 | description: Task that will run a plan |
@@ -401,6 +440,22 @@ paths: |
401 | 440 | summary: Get Oidc Config |
402 | 441 | tags: |
403 | 442 | - Meta |
| 443 | + /config/stomp: |
| 444 | + get: |
| 445 | + description: Retrieve the stomp configuration for the server. |
| 446 | + operationId: get_stomp_config_config_stomp_get |
| 447 | + responses: |
| 448 | + '200': |
| 449 | + content: |
| 450 | + application/json: |
| 451 | + schema: |
| 452 | + $ref: '#/components/schemas/StompConfig' |
| 453 | + description: Successful Response |
| 454 | + '204': |
| 455 | + description: No Stomp configured |
| 456 | + summary: Get Stomp Config |
| 457 | + tags: |
| 458 | + - Meta |
404 | 459 | /devices: |
405 | 460 | get: |
406 | 461 | description: Retrieve information about all available devices. |
|
0 commit comments