handle types separately

This commit is contained in:
Torma Kristóf 2020-11-24 18:53:25 +01:00
parent 6eef3f1032
commit 4994e16a71

View File

@ -316,16 +316,17 @@ paths:
application/json:
schema:
$ref: '#/components/schemas/ApiResponse'
/api/objects/streamerobjects/ingress/{id}:
put:
tags:
- backend
summary: Modifies a streamer resource
operationId: editAResource
summary: Modifies an ingest resource
operationId: editIngress
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/StreamerObjectEditable'
$ref: '#/components/schemas/IngestObjectNeighbors'
required: true
parameters:
- name: id
@ -349,33 +350,76 @@ paths:
schema:
$ref: '#/components/schemas/ApiResponse'
components:
schemas:
StreamerObjectEditable:
required:
- id
type: object
properties:
id:
/api/objects/streamerobjects/restream/{id}:
put:
tags:
- backend
summary: Modifies a restream resource
operationId: editRestream
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/RestreamObjectParameters'
required: true
parameters:
- name: id
in: path
description: ID of a resource
required: true
schema:
type: string
format: uuid
inputNeighbours:
type: array
items:
type: string
format: uuid
outputNeighbours:
type: array
items:
type: string
format: uuid
outputURLs:
type: array
items:
type: string
format: url
ffmpeg_args:
responses:
200:
description: Streamer resource data
content:
application/json:
schema:
$ref: '#/components/schemas/StreamerObjectData'
404:
description: ID not found
content:
application/json:
schema:
$ref: '#/components/schemas/ApiResponse'
/api/objects/streamerobjects/encode/{id}:
put:
tags:
- backend
summary: Modifies an encode resource
operationId: editEncode
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/RestreamObjectParameters'
required: true
parameters:
- name: id
in: path
description: ID of a resource
required: true
schema:
type: string
format: uuid
responses:
200:
description: Streamer resource data
content:
application/json:
schema:
$ref: '#/components/schemas/EncodeObjectParameters'
404:
description: ID not found
content:
application/json:
schema:
$ref: '#/components/schemas/ApiResponse'
components:
schemas:
StreamerObjectData:
required:
- type