diff options
author | Chocobozzz <me@florianbigard.com> | 2022-08-10 14:56:53 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2022-08-10 14:57:26 +0200 |
commit | 87cd93970ddacc4f8314ed9cd71f7241569975cd (patch) | |
tree | 3375c0eecc0e91f619de0386e1d15878511d2228 | |
parent | 40e9937247147a74e7a14a4035d374d4ed27bd11 (diff) | |
download | PeerTube-87cd93970ddacc4f8314ed9cd71f7241569975cd.tar.gz PeerTube-87cd93970ddacc4f8314ed9cd71f7241569975cd.tar.zst PeerTube-87cd93970ddacc4f8314ed9cd71f7241569975cd.zip |
Add missing openapi
-rw-r--r-- | client/src/app/+my-library/my-video-imports/my-video-imports.component.html | 16 | ||||
-rw-r--r-- | support/doc/api/openapi.yaml | 39 |
2 files changed, 48 insertions, 7 deletions
diff --git a/client/src/app/+my-library/my-video-imports/my-video-imports.component.html b/client/src/app/+my-library/my-video-imports/my-video-imports.component.html index 866cd1a72..92a4a4a52 100644 --- a/client/src/app/+my-library/my-video-imports/my-video-imports.component.html +++ b/client/src/app/+my-library/my-video-imports/my-video-imports.component.html | |||
@@ -1,15 +1,17 @@ | |||
1 | <h1> | 1 | <h1 class="d-flex justify-content-between"> |
2 | <my-global-icon iconName="cloud-download" aria-hidden="true"></my-global-icon> | 2 | <span> |
3 | <ng-container i18n>My imports</ng-container> | 3 | <my-global-icon iconName="cloud-download" aria-hidden="true"></my-global-icon> |
4 | </h1> | 4 | <ng-container i18n>My imports</ng-container> |
5 | 5 | </span> | |
6 | <div class="mb-4 d-flex justify-content-between"> | ||
7 | <my-advanced-input-filter (search)="onSearch($event)"></my-advanced-input-filter> | ||
8 | 6 | ||
9 | <a routerLink="/my-library/video-channel-syncs" class="button-link"> | 7 | <a routerLink="/my-library/video-channel-syncs" class="button-link"> |
10 | <my-global-icon iconName="repeat" aria-hidden="true"></my-global-icon> | 8 | <my-global-icon iconName="repeat" aria-hidden="true"></my-global-icon> |
11 | <ng-container i18n>My synchronizations</ng-container> | 9 | <ng-container i18n>My synchronizations</ng-container> |
12 | </a> | 10 | </a> |
11 | </h1> | ||
12 | |||
13 | <div class="mb-4 d-flex justify-content-between"> | ||
14 | <my-advanced-input-filter (search)="onSearch($event)"></my-advanced-input-filter> | ||
13 | </div> | 15 | </div> |
14 | 16 | ||
15 | <p-table | 17 | <p-table |
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: | |||
1201 | description: Filter on imports created by a specific channel synchronization | 1201 | description: Filter on imports created by a specific channel synchronization |
1202 | schema: | 1202 | schema: |
1203 | type: number | 1203 | type: number |
1204 | - | ||
1205 | name: search | ||
1206 | in: query | ||
1207 | required: false | ||
1208 | description: Search in video names | ||
1209 | schema: | ||
1210 | type: string | ||
1204 | responses: | 1211 | responses: |
1205 | '200': | 1212 | '200': |
1206 | description: successful operation | 1213 | description: successful operation |
@@ -3305,6 +3312,26 @@ paths: | |||
3305 | '204': | 3312 | '204': |
3306 | description: successful operation | 3313 | description: successful operation |
3307 | 3314 | ||
3315 | '/video-channels/{channelHandle}/import-videos': | ||
3316 | post: | ||
3317 | summary: Import videos in channel | ||
3318 | description: Import a remote channel/playlist videos into a channel | ||
3319 | security: | ||
3320 | - OAuth2: [] | ||
3321 | tags: | ||
3322 | - Video Channels | ||
3323 | - Channels Sync | ||
3324 | parameters: | ||
3325 | - $ref: '#/components/parameters/channelHandle' | ||
3326 | requestBody: | ||
3327 | content: | ||
3328 | application/json: | ||
3329 | schema: | ||
3330 | $ref: '#/components/schemas/ImportVideosInChannelCreate' | ||
3331 | responses: | ||
3332 | '204': | ||
3333 | description: successful operation | ||
3334 | |||
3308 | '/video-channel-syncs': | 3335 | '/video-channel-syncs': |
3309 | post: | 3336 | post: |
3310 | summary: Create a synchronization for a video channel | 3337 | summary: Create a synchronization for a video channel |
@@ -7613,6 +7640,18 @@ components: | |||
7613 | - $ref: '#/components/schemas/VideoChannel' | 7640 | - $ref: '#/components/schemas/VideoChannel' |
7614 | - $ref: '#/components/schemas/Actor' | 7641 | - $ref: '#/components/schemas/Actor' |
7615 | 7642 | ||
7643 | ImportVideosInChannelCreate: | ||
7644 | type: object | ||
7645 | properties: | ||
7646 | externalChannelUrl: | ||
7647 | type: string | ||
7648 | example: https://youtube.com/c/UC_myfancychannel | ||
7649 | videoChannelSyncId: | ||
7650 | type: integer | ||
7651 | description: If part of a channel sync process, specify its id to assign video imports to this channel synchronization | ||
7652 | required: | ||
7653 | - 'externalChannelUrl' | ||
7654 | |||
7616 | VideoChannelSync: | 7655 | VideoChannelSync: |
7617 | type: object | 7656 | type: object |
7618 | properties: | 7657 | properties: |