Browse Source

Update openapi.yaml

adding dedicated response object types where items is using in conjunction with object
pull/666/head
udatny 5 years ago committed by Alessandro Ros
parent
commit
f224b38613
  1. 52
      apidocs/openapi.yaml

52
apidocs/openapi.yaml

@ -299,6 +299,38 @@ components:
type: string type: string
enum: [idle, read, publish] enum: [idle, read, publish]
PathsList:
type: object
properties:
items:
type: object
additionalProperties:
$ref: '#/components/schemas/Path'
RtspSessionsList:
type: object
properties:
items:
type: object
additionalProperties:
$ref: '#/components/schemas/RTSPSession'
RtspsSessionsList:
type: object
properties:
items:
type: object
additionalProperties:
$ref: '#/components/schemas/RTSPSSession'
RtmpConnsList:
type: object
properties:
items:
type: object
additionalProperties:
$ref: '#/components/schemas/RTMPConn'
paths: paths:
/v1/config/get: /v1/config/get:
get: get:
@ -417,10 +449,7 @@ paths:
content: content:
application/json: application/json:
schema: schema:
items: $ref: '#/components/schemas/PathsList'
type: object
additionalProperties:
$ref: '#/components/schemas/Path'
'400': '400':
description: invalid request. description: invalid request.
'500': '500':
@ -437,10 +466,7 @@ paths:
content: content:
application/json: application/json:
schema: schema:
items: $ref: '#/components/schemas/RtspSessionsList'
type: object
additionalProperties:
$ref: '#/components/schemas/RTSPSession'
'400': '400':
description: invalid request. description: invalid request.
'500': '500':
@ -477,10 +503,7 @@ paths:
content: content:
application/json: application/json:
schema: schema:
items: $ref: '#/components/schemas/RtspsSessionsList'
type: object
additionalProperties:
$ref: '#/components/schemas/RTSPSSession'
'400': '400':
description: invalid request. description: invalid request.
'500': '500':
@ -517,10 +540,7 @@ paths:
content: content:
application/json: application/json:
schema: schema:
items: $ref: '#/components/schemas/RtmpConnsList'
type: object
additionalProperties:
$ref: '#/components/schemas/RTMPConn'
'400': '400':
description: invalid request. description: invalid request.
'500': '500':

Loading…
Cancel
Save