ability to use nginx args

This commit is contained in:
Torma Kristóf 2020-11-24 18:50:25 +01:00
parent 85d1fb4b5c
commit 6eef3f1032

View File

@ -188,17 +188,17 @@ paths:
schema: schema:
$ref: '#/components/schemas/ApiResponse' $ref: '#/components/schemas/ApiResponse'
/api/objects/streamerobject: /api/objects/streamerobjects/ingest:
post: post:
tags: tags:
- backend - backend
summary: Creates a streamer resource summary: Creates an ingest resource
operationId: createResource operationId: createIngest
requestBody: requestBody:
content: content:
application/json: application/json:
schema: schema:
$ref: '#/components/schemas/StreamerObjectSimpleData' $ref: '#/components/schemas/IngestObjectNeighbors'
required: true required: true
responses: responses:
200: 200:
@ -207,10 +207,52 @@ paths:
application/json: application/json:
schema: schema:
$ref: '#/components/schemas/StreamerObjectData' $ref: '#/components/schemas/StreamerObjectData'
/api/objects/streamerobjects/restream:
post:
tags:
- backend
summary: Creates a restream resource
operationId: createRestream
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/RestreamObjectParameters'
required: true
responses:
200:
description: Streamer resource data
content:
application/json:
schema:
$ref: '#/components/schemas/StreamerObjectData'
/api/objects/streamerobjects/encode:
post:
tags:
- backend
summary: Creates a encode resource
operationId: createEncode
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/EncodeObjectParameters'
required: true
responses:
200:
description: Streamer resource data
content:
application/json:
schema:
$ref: '#/components/schemas/StreamerObjectData'
/api/objects/streamerobjects:
get: get:
tags: tags:
- backend - backend
summary: Gets all streamer resource summary: Gets all streamer resources
operationId: getResource operationId: getResource
responses: responses:
200: 200:
@ -221,7 +263,7 @@ paths:
$ref: '#/components/schemas/StreamerObjectArray' $ref: '#/components/schemas/StreamerObjectArray'
/api/objects/streamerobject/{id}: /api/objects/streamerobjects/{id}:
delete: delete:
tags: tags:
- backend - backend
@ -283,7 +325,7 @@ paths:
content: content:
application/json: application/json:
schema: schema:
$ref: '#/components/schemas/NeighbourseData' $ref: '#/components/schemas/StreamerObjectEditable'
required: true required: true
parameters: parameters:
- name: id - name: id
@ -309,6 +351,31 @@ paths:
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
@ -338,28 +405,44 @@ components:
items: items:
type: string type: string
format: uuid format: uuid
StreamerObjectSimpleData: outputURLs:
type: array
items:
type: string
format: url
ffmpeg_args:
type: string
IngestObjectNeighbors:
required: required:
- type - outputNeighbours
type: object type: object
properties: properties:
type:
type: string
enum:
- ingest
- encoder
- restream
inputNeighbours:
type: array
items:
type: string
format: uuid
outputNeighbours: outputNeighbours:
type: array type: array
items: items:
type: string type: string
format: uuid format: uuid
NeighbourseData: RestreamObjectParameters:
required:
- inputNeighbours
- outputURLs
type: object
properties:
inputNeighbours:
type: array
items:
type: string
format: uuid
outputURLs:
type: array
items:
type: string
format: url
EncodeObjectParameters:
required:
- inputNeighbours
- outputNeighbours
- ffmpeg_args
type: object type: object
properties: properties:
inputNeighbours: inputNeighbours:
@ -372,6 +455,8 @@ components:
items: items:
type: string type: string
format: uuid format: uuid
ffmpeg_args:
type: string
StreamerObjectArray: StreamerObjectArray:
type: array type: array
items: items: