fix(callbacks): display all defined callbacks (#9223)

Refs #9222
This commit is contained in:
Vladimír Gorej
2023-09-18 09:26:12 +02:00
committed by GitHub
parent 23f6645ad8
commit 0144dad03d
3 changed files with 79 additions and 14 deletions

View File

@@ -0,0 +1,41 @@
openapi: 3.0.0
servers: []
info:
version: "1.0.0"
title: home-iot-api
description: The API
paths:
/devices:
get:
callbacks:
callbackOne:
'callbackOne':
get:
operationId: callbackOne
responses:
'200':
$ref: '#/components/schemas/ApiResponse'
callbackTwo:
'callbackTwo':
get:
operationId: callbackTwo
responses:
'200':
$ref: '#/components/schemas/ApiResponse'
tags:
- Device
operationId: register
responses:
'200':
description: successfully registered device
components:
schemas:
ApiResponse:
type: object
properties:
code:
type: integer
format: int32
message:
type: string
example: everything is ok