chore(api): update StreamSetting model

This commit is contained in:
jo 2022-06-21 14:43:31 +02:00 committed by Kyle Robbertze
parent 6bae0e2846
commit 28c4989d44
2 changed files with 18 additions and 8 deletions

View File

@ -29,9 +29,19 @@ class Preference(models.Model):
class StreamSetting(models.Model): class StreamSetting(models.Model):
keyname = models.CharField(primary_key=True, max_length=64) key = models.CharField(
value = models.CharField(max_length=255, blank=True, null=True) db_column="keyname",
type = models.CharField(max_length=16) primary_key=True,
max_length=64,
)
value = models.CharField(
max_length=255,
blank=True,
null=True,
)
type = models.CharField(
max_length=16,
)
class Meta: class Meta:
managed = False managed = False

View File

@ -4760,12 +4760,12 @@ paths:
schema: schema:
$ref: "#/components/schemas/StreamSetting" $ref: "#/components/schemas/StreamSetting"
description: "" description: ""
/api/v2/stream-settings/{keyname}/: /api/v2/stream-settings/{key}/:
get: get:
operationId: stream_settings_retrieve operationId: stream_settings_retrieve
parameters: parameters:
- in: path - in: path
name: keyname name: key
schema: schema:
type: string type: string
description: A unique value identifying this stream setting. description: A unique value identifying this stream setting.
@ -4786,7 +4786,7 @@ paths:
operationId: stream_settings_update operationId: stream_settings_update
parameters: parameters:
- in: path - in: path
name: keyname name: key
schema: schema:
type: string type: string
description: A unique value identifying this stream setting. description: A unique value identifying this stream setting.
@ -4819,7 +4819,7 @@ paths:
operationId: stream_settings_partial_update operationId: stream_settings_partial_update
parameters: parameters:
- in: path - in: path
name: keyname name: key
schema: schema:
type: string type: string
description: A unique value identifying this stream setting. description: A unique value identifying this stream setting.
@ -4851,7 +4851,7 @@ paths:
operationId: stream_settings_destroy operationId: stream_settings_destroy
parameters: parameters:
- in: path - in: path
name: keyname name: key
schema: schema:
type: string type: string
description: A unique value identifying this stream setting. description: A unique value identifying this stream setting.