Added new endpoints to modify settings in-memory (#517)

* Added new endpoints to modify settings in-memory

* Added missing controllers
This commit is contained in:
Mirco T
2020-12-29 23:03:57 +01:00
committed by GitHub
parent 8a74af202d
commit a149e2bb50
6 changed files with 216 additions and 0 deletions

View File

@@ -607,6 +607,104 @@ paths:
type: string
example: changed
/api/admin/changetitle:
post:
summary: Update Stream Title. Pre-release, do not use.
description: Change the stream title in memory, but not in the config file.
tags: ["Admin", "Pre-release"]
security:
- AdminBasicAuth: []
requestBody:
description: ""
required: true
content:
application/json:
schema:
type: object
properties:
title:
type: string
responses:
'200':
description: Title was changed.
content:
application/json:
schema:
type: object
properties:
success:
type: boolean
example: true
message:
type: string
example: changed
/api/admin/changename:
post:
summary: Update Stream Name. Pre-release, do not use.
description: Change the stream name in memory, but not in the config file.
tags: ["Admin", "Pre-release"]
security:
- AdminBasicAuth: []
requestBody:
description: ""
required: true
content:
application/json:
schema:
type: object
properties:
name:
type: string
responses:
'200':
description: Name was changed.
content:
application/json:
schema:
type: object
properties:
success:
type: boolean
example: true
message:
type: string
example: changed
/api/admin/changetags:
post:
summary: Update Stream Tags. Pre-release, do not use.
description: Change the stream tags in memory, but not in the config file.
tags: ["Admin", "Pre-release"]
security:
- AdminBasicAuth: []
requestBody:
description: ""
required: true
content:
application/json:
schema:
type: object
properties:
tags:
type: array
items:
type: string
responses:
'200':
description: Tags were changed.
content:
application/json:
schema:
type: object
properties:
success:
type: boolean
example: true
message:
type: string
example: changed
/api/admin/serverconfig:
get:
summary: Server Configuration