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:
|
||||
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'
|
||||
|
||||
/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:
|
||||
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:
|
||||
required:
|
||||
- type
|
||||
|
Loading…
Reference in New Issue
Block a user