core: add created field to source connection
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
parent
40f8ce3c4c
commit
f5dc81907a
|
@ -129,7 +129,12 @@ class UserSourceConnectionSerializer(SourceSerializer):
|
||||||
"pk",
|
"pk",
|
||||||
"user",
|
"user",
|
||||||
"source",
|
"source",
|
||||||
|
"created",
|
||||||
]
|
]
|
||||||
|
extra_kwargs = {
|
||||||
|
"user": {"read_only": True},
|
||||||
|
"created": {"read_only": True},
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
class UserSourceConnectionViewSet(
|
class UserSourceConnectionViewSet(
|
||||||
|
|
|
@ -21,6 +21,9 @@ class UserOAuthSourceConnectionSerializer(SourceSerializer):
|
||||||
"source",
|
"source",
|
||||||
"identifier",
|
"identifier",
|
||||||
]
|
]
|
||||||
|
extra_kwargs = {
|
||||||
|
"user": {"read_only": True},
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
class UserOAuthSourceConnectionViewSet(
|
class UserOAuthSourceConnectionViewSet(
|
||||||
|
|
|
@ -22,6 +22,9 @@ class PlexSourceConnectionSerializer(SourceSerializer):
|
||||||
"identifier",
|
"identifier",
|
||||||
"plex_token",
|
"plex_token",
|
||||||
]
|
]
|
||||||
|
extra_kwargs = {
|
||||||
|
"user": {"read_only": True},
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
class PlexSourceConnectionViewSet(
|
class PlexSourceConnectionViewSet(
|
||||||
|
|
43
schema.yml
43
schema.yml
|
@ -13428,12 +13428,6 @@ paths:
|
||||||
required: true
|
required: true
|
||||||
tags:
|
tags:
|
||||||
- sources
|
- sources
|
||||||
requestBody:
|
|
||||||
content:
|
|
||||||
application/json:
|
|
||||||
schema:
|
|
||||||
$ref: '#/components/schemas/UserSourceConnectionRequest'
|
|
||||||
required: true
|
|
||||||
security:
|
security:
|
||||||
- authentik: []
|
- authentik: []
|
||||||
responses:
|
responses:
|
||||||
|
@ -13459,11 +13453,6 @@ paths:
|
||||||
required: true
|
required: true
|
||||||
tags:
|
tags:
|
||||||
- sources
|
- sources
|
||||||
requestBody:
|
|
||||||
content:
|
|
||||||
application/json:
|
|
||||||
schema:
|
|
||||||
$ref: '#/components/schemas/PatchedUserSourceConnectionRequest'
|
|
||||||
security:
|
security:
|
||||||
- authentik: []
|
- authentik: []
|
||||||
responses:
|
responses:
|
||||||
|
@ -27202,8 +27191,6 @@ components:
|
||||||
type: object
|
type: object
|
||||||
description: Plex Source connection Serializer
|
description: Plex Source connection Serializer
|
||||||
properties:
|
properties:
|
||||||
user:
|
|
||||||
type: integer
|
|
||||||
source:
|
source:
|
||||||
type: string
|
type: string
|
||||||
format: uuid
|
format: uuid
|
||||||
|
@ -27727,8 +27714,6 @@ components:
|
||||||
type: object
|
type: object
|
||||||
description: OAuth Source Serializer
|
description: OAuth Source Serializer
|
||||||
properties:
|
properties:
|
||||||
user:
|
|
||||||
type: integer
|
|
||||||
source:
|
source:
|
||||||
type: string
|
type: string
|
||||||
format: uuid
|
format: uuid
|
||||||
|
@ -27770,12 +27755,6 @@ components:
|
||||||
attributes:
|
attributes:
|
||||||
type: object
|
type: object
|
||||||
additionalProperties: {}
|
additionalProperties: {}
|
||||||
PatchedUserSourceConnectionRequest:
|
|
||||||
type: object
|
|
||||||
description: OAuth Source Serializer
|
|
||||||
properties:
|
|
||||||
user:
|
|
||||||
type: integer
|
|
||||||
PatchedUserWriteStageRequest:
|
PatchedUserWriteStageRequest:
|
||||||
type: object
|
type: object
|
||||||
description: UserWriteStage Serializer
|
description: UserWriteStage Serializer
|
||||||
|
@ -27922,6 +27901,7 @@ components:
|
||||||
title: ID
|
title: ID
|
||||||
user:
|
user:
|
||||||
type: integer
|
type: integer
|
||||||
|
readOnly: true
|
||||||
source:
|
source:
|
||||||
type: string
|
type: string
|
||||||
format: uuid
|
format: uuid
|
||||||
|
@ -27939,8 +27919,6 @@ components:
|
||||||
type: object
|
type: object
|
||||||
description: Plex Source connection Serializer
|
description: Plex Source connection Serializer
|
||||||
properties:
|
properties:
|
||||||
user:
|
|
||||||
type: integer
|
|
||||||
source:
|
source:
|
||||||
type: string
|
type: string
|
||||||
format: uuid
|
format: uuid
|
||||||
|
@ -27952,7 +27930,6 @@ components:
|
||||||
- identifier
|
- identifier
|
||||||
- plex_token
|
- plex_token
|
||||||
- source
|
- source
|
||||||
- user
|
|
||||||
PlexSourceRequest:
|
PlexSourceRequest:
|
||||||
type: object
|
type: object
|
||||||
description: Plex Source Serializer
|
description: Plex Source Serializer
|
||||||
|
@ -30312,6 +30289,7 @@ components:
|
||||||
title: ID
|
title: ID
|
||||||
user:
|
user:
|
||||||
type: integer
|
type: integer
|
||||||
|
readOnly: true
|
||||||
source:
|
source:
|
||||||
type: string
|
type: string
|
||||||
format: uuid
|
format: uuid
|
||||||
|
@ -30327,8 +30305,6 @@ components:
|
||||||
type: object
|
type: object
|
||||||
description: OAuth Source Serializer
|
description: OAuth Source Serializer
|
||||||
properties:
|
properties:
|
||||||
user:
|
|
||||||
type: integer
|
|
||||||
source:
|
source:
|
||||||
type: string
|
type: string
|
||||||
format: uuid
|
format: uuid
|
||||||
|
@ -30338,7 +30314,6 @@ components:
|
||||||
required:
|
required:
|
||||||
- identifier
|
- identifier
|
||||||
- source
|
- source
|
||||||
- user
|
|
||||||
UserReputation:
|
UserReputation:
|
||||||
type: object
|
type: object
|
||||||
description: UserReputation Serializer
|
description: UserReputation Serializer
|
||||||
|
@ -30540,22 +30515,20 @@ components:
|
||||||
title: ID
|
title: ID
|
||||||
user:
|
user:
|
||||||
type: integer
|
type: integer
|
||||||
|
readOnly: true
|
||||||
source:
|
source:
|
||||||
allOf:
|
allOf:
|
||||||
- $ref: '#/components/schemas/Source'
|
- $ref: '#/components/schemas/Source'
|
||||||
readOnly: true
|
readOnly: true
|
||||||
|
created:
|
||||||
|
type: string
|
||||||
|
format: date-time
|
||||||
|
readOnly: true
|
||||||
required:
|
required:
|
||||||
|
- created
|
||||||
- pk
|
- pk
|
||||||
- source
|
- source
|
||||||
- user
|
- user
|
||||||
UserSourceConnectionRequest:
|
|
||||||
type: object
|
|
||||||
description: OAuth Source Serializer
|
|
||||||
properties:
|
|
||||||
user:
|
|
||||||
type: integer
|
|
||||||
required:
|
|
||||||
- user
|
|
||||||
UserWriteStage:
|
UserWriteStage:
|
||||||
type: object
|
type: object
|
||||||
description: UserWriteStage Serializer
|
description: UserWriteStage Serializer
|
||||||
|
|
Reference in New Issue