From 87cd93970ddacc4f8314ed9cd71f7241569975cd Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 10 Aug 2022 14:56:53 +0200 Subject: Add missing openapi --- support/doc/api/openapi.yaml | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) (limited to 'support') diff --git a/support/doc/api/openapi.yaml b/support/doc/api/openapi.yaml index c4bc507fd..4402de954 100644 --- a/support/doc/api/openapi.yaml +++ b/support/doc/api/openapi.yaml @@ -1201,6 +1201,13 @@ paths: description: Filter on imports created by a specific channel synchronization schema: type: number + - + name: search + in: query + required: false + description: Search in video names + schema: + type: string responses: '200': description: successful operation @@ -3305,6 +3312,26 @@ paths: '204': description: successful operation + '/video-channels/{channelHandle}/import-videos': + post: + summary: Import videos in channel + description: Import a remote channel/playlist videos into a channel + security: + - OAuth2: [] + tags: + - Video Channels + - Channels Sync + parameters: + - $ref: '#/components/parameters/channelHandle' + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ImportVideosInChannelCreate' + responses: + '204': + description: successful operation + '/video-channel-syncs': post: summary: Create a synchronization for a video channel @@ -7613,6 +7640,18 @@ components: - $ref: '#/components/schemas/VideoChannel' - $ref: '#/components/schemas/Actor' + ImportVideosInChannelCreate: + type: object + properties: + externalChannelUrl: + type: string + example: https://youtube.com/c/UC_myfancychannel + videoChannelSyncId: + type: integer + description: If part of a channel sync process, specify its id to assign video imports to this channel synchronization + required: + - 'externalChannelUrl' + VideoChannelSync: type: object properties: -- cgit v1.2.3