handle types separately
This commit is contained in:
parent
6eef3f1032
commit
4994e16a71
100
backend.yml
100
backend.yml
@ -316,16 +316,17 @@ paths:
|
|||||||
application/json:
|
application/json:
|
||||||
schema:
|
schema:
|
||||||
$ref: '#/components/schemas/ApiResponse'
|
$ref: '#/components/schemas/ApiResponse'
|
||||||
|
/api/objects/streamerobjects/ingress/{id}:
|
||||||
put:
|
put:
|
||||||
tags:
|
tags:
|
||||||
- backend
|
- backend
|
||||||
summary: Modifies a streamer resource
|
summary: Modifies an ingest resource
|
||||||
operationId: editAResource
|
operationId: editIngress
|
||||||
requestBody:
|
requestBody:
|
||||||
content:
|
content:
|
||||||
application/json:
|
application/json:
|
||||||
schema:
|
schema:
|
||||||
$ref: '#/components/schemas/StreamerObjectEditable'
|
$ref: '#/components/schemas/IngestObjectNeighbors'
|
||||||
required: true
|
required: true
|
||||||
parameters:
|
parameters:
|
||||||
- name: id
|
- name: id
|
||||||
@ -349,33 +350,76 @@ paths:
|
|||||||
schema:
|
schema:
|
||||||
$ref: '#/components/schemas/ApiResponse'
|
$ref: '#/components/schemas/ApiResponse'
|
||||||
|
|
||||||
|
/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
|
||||||
|
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:
|
components:
|
||||||
schemas:
|
schemas:
|
||||||
StreamerObjectEditable:
|
|
||||||
required:
|
|
||||||
- id
|
|
||||||
type: object
|
|
||||||
properties:
|
|
||||||
id:
|
|
||||||
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:
|
|
||||||
type: string
|
|
||||||
StreamerObjectData:
|
StreamerObjectData:
|
||||||
required:
|
required:
|
||||||
- type
|
- type
|
||||||
|
Loading…
Reference in New Issue
Block a user