chore(api): update StreamSetting model
This commit is contained in:
parent
6bae0e2846
commit
28c4989d44
|
@ -29,9 +29,19 @@ class Preference(models.Model):
|
|||
|
||||
|
||||
class StreamSetting(models.Model):
|
||||
keyname = models.CharField(primary_key=True, max_length=64)
|
||||
value = models.CharField(max_length=255, blank=True, null=True)
|
||||
type = models.CharField(max_length=16)
|
||||
key = models.CharField(
|
||||
db_column="keyname",
|
||||
primary_key=True,
|
||||
max_length=64,
|
||||
)
|
||||
value = models.CharField(
|
||||
max_length=255,
|
||||
blank=True,
|
||||
null=True,
|
||||
)
|
||||
type = models.CharField(
|
||||
max_length=16,
|
||||
)
|
||||
|
||||
class Meta:
|
||||
managed = False
|
||||
|
|
|
@ -4760,12 +4760,12 @@ paths:
|
|||
schema:
|
||||
$ref: "#/components/schemas/StreamSetting"
|
||||
description: ""
|
||||
/api/v2/stream-settings/{keyname}/:
|
||||
/api/v2/stream-settings/{key}/:
|
||||
get:
|
||||
operationId: stream_settings_retrieve
|
||||
parameters:
|
||||
- in: path
|
||||
name: keyname
|
||||
name: key
|
||||
schema:
|
||||
type: string
|
||||
description: A unique value identifying this stream setting.
|
||||
|
@ -4786,7 +4786,7 @@ paths:
|
|||
operationId: stream_settings_update
|
||||
parameters:
|
||||
- in: path
|
||||
name: keyname
|
||||
name: key
|
||||
schema:
|
||||
type: string
|
||||
description: A unique value identifying this stream setting.
|
||||
|
@ -4819,7 +4819,7 @@ paths:
|
|||
operationId: stream_settings_partial_update
|
||||
parameters:
|
||||
- in: path
|
||||
name: keyname
|
||||
name: key
|
||||
schema:
|
||||
type: string
|
||||
description: A unique value identifying this stream setting.
|
||||
|
@ -4851,7 +4851,7 @@ paths:
|
|||
operationId: stream_settings_destroy
|
||||
parameters:
|
||||
- in: path
|
||||
name: keyname
|
||||
name: key
|
||||
schema:
|
||||
type: string
|
||||
description: A unique value identifying this stream setting.
|
||||
|
|
Loading…
Reference in New Issue