handle types separately
This commit is contained in:
parent
6eef3f1032
commit
4994e16a71
98
backend.yml
98
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'
|
||||||
|
|
||||||
components:
|
/api/objects/streamerobjects/restream/{id}:
|
||||||
schemas:
|
put:
|
||||||
StreamerObjectEditable:
|
tags:
|
||||||
required:
|
- backend
|
||||||
- id
|
summary: Modifies a restream resource
|
||||||
type: object
|
operationId: editRestream
|
||||||
properties:
|
requestBody:
|
||||||
id:
|
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
|
type: string
|
||||||
format: uuid
|
format: uuid
|
||||||
inputNeighbours:
|
responses:
|
||||||
type: array
|
200:
|
||||||
items:
|
description: Streamer resource data
|
||||||
type: string
|
content:
|
||||||
format: uuid
|
application/json:
|
||||||
outputNeighbours:
|
schema:
|
||||||
type: array
|
$ref: '#/components/schemas/StreamerObjectData'
|
||||||
items:
|
404:
|
||||||
type: string
|
description: ID not found
|
||||||
format: uuid
|
content:
|
||||||
outputURLs:
|
application/json:
|
||||||
type: array
|
schema:
|
||||||
items:
|
$ref: '#/components/schemas/ApiResponse'
|
||||||
type: string
|
|
||||||
format: url
|
/api/objects/streamerobjects/encode/{id}:
|
||||||
ffmpeg_args:
|
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
|
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:
|
StreamerObjectData:
|
||||||
required:
|
required:
|
||||||
- type
|
- type
|
||||||
|
Loading…
Reference in New Issue
Block a user