diff options
Diffstat (limited to 'support/doc/api')
-rw-r--r-- | support/doc/api/openapi.yaml | 48 |
1 files changed, 27 insertions, 21 deletions
diff --git a/support/doc/api/openapi.yaml b/support/doc/api/openapi.yaml index c16914eb2..4feca5d99 100644 --- a/support/doc/api/openapi.yaml +++ b/support/doc/api/openapi.yaml | |||
@@ -306,7 +306,7 @@ paths: | |||
306 | - Config | 306 | - Config |
307 | security: | 307 | security: |
308 | - OAuth2: | 308 | - OAuth2: |
309 | - admin | 309 | - admin |
310 | responses: | 310 | responses: |
311 | '200': | 311 | '200': |
312 | description: successful operation | 312 | description: successful operation |
@@ -320,7 +320,7 @@ paths: | |||
320 | - Config | 320 | - Config |
321 | security: | 321 | security: |
322 | - OAuth2: | 322 | - OAuth2: |
323 | - admin | 323 | - admin |
324 | responses: | 324 | responses: |
325 | '200': | 325 | '200': |
326 | description: successful operation | 326 | description: successful operation |
@@ -336,7 +336,7 @@ paths: | |||
336 | - Config | 336 | - Config |
337 | security: | 337 | security: |
338 | - OAuth2: | 338 | - OAuth2: |
339 | - admin | 339 | - admin |
340 | responses: | 340 | responses: |
341 | '200': | 341 | '200': |
342 | description: successful operation | 342 | description: successful operation |
@@ -345,7 +345,7 @@ paths: | |||
345 | summary: List instance jobs | 345 | summary: List instance jobs |
346 | security: | 346 | security: |
347 | - OAuth2: | 347 | - OAuth2: |
348 | - admin | 348 | - admin |
349 | tags: | 349 | tags: |
350 | - Job | 350 | - Job |
351 | parameters: | 351 | parameters: |
@@ -455,7 +455,7 @@ paths: | |||
455 | post: | 455 | post: |
456 | security: | 456 | security: |
457 | - OAuth2: | 457 | - OAuth2: |
458 | - admin | 458 | - admin |
459 | tags: | 459 | tags: |
460 | - Instance Follows | 460 | - Instance Follows |
461 | summary: Follow a server | 461 | summary: Follow a server |
@@ -481,7 +481,7 @@ paths: | |||
481 | summary: Create a user | 481 | summary: Create a user |
482 | security: | 482 | security: |
483 | - OAuth2: | 483 | - OAuth2: |
484 | - admin | 484 | - admin |
485 | tags: | 485 | tags: |
486 | - Users | 486 | - Users |
487 | responses: | 487 | responses: |
@@ -545,7 +545,7 @@ paths: | |||
545 | summary: Delete a user | 545 | summary: Delete a user |
546 | security: | 546 | security: |
547 | - OAuth2: | 547 | - OAuth2: |
548 | - admin | 548 | - admin |
549 | tags: | 549 | tags: |
550 | - Users | 550 | - Users |
551 | operationId: delUserId | 551 | operationId: delUserId |
@@ -634,7 +634,7 @@ paths: | |||
634 | summary: Get video imports of my user | 634 | summary: Get video imports of my user |
635 | security: | 635 | security: |
636 | - OAuth2: | 636 | - OAuth2: |
637 | - user | 637 | - user |
638 | tags: | 638 | tags: |
639 | - Videos | 639 | - Videos |
640 | - My User | 640 | - My User |
@@ -711,7 +711,7 @@ paths: | |||
711 | summary: Get my user subscriptions | 711 | summary: Get my user subscriptions |
712 | security: | 712 | security: |
713 | - OAuth2: | 713 | - OAuth2: |
714 | - user | 714 | - user |
715 | tags: | 715 | tags: |
716 | - My Subscriptions | 716 | - My Subscriptions |
717 | parameters: | 717 | parameters: |
@@ -727,7 +727,7 @@ paths: | |||
727 | summary: Add subscription to my user | 727 | summary: Add subscription to my user |
728 | security: | 728 | security: |
729 | - OAuth2: | 729 | - OAuth2: |
730 | - user | 730 | - user |
731 | requestBody: | 731 | requestBody: |
732 | content: | 732 | content: |
733 | application/json: | 733 | application/json: |
@@ -752,7 +752,7 @@ paths: | |||
752 | summary: Get if subscriptions exist for my user | 752 | summary: Get if subscriptions exist for my user |
753 | security: | 753 | security: |
754 | - OAuth2: | 754 | - OAuth2: |
755 | - user | 755 | - user |
756 | tags: | 756 | tags: |
757 | - My Subscriptions | 757 | - My Subscriptions |
758 | parameters: | 758 | parameters: |
@@ -797,7 +797,7 @@ paths: | |||
797 | summary: Get subscription of my user | 797 | summary: Get subscription of my user |
798 | security: | 798 | security: |
799 | - OAuth2: | 799 | - OAuth2: |
800 | - user | 800 | - user |
801 | tags: | 801 | tags: |
802 | - My Subscriptions | 802 | - My Subscriptions |
803 | parameters: | 803 | parameters: |
@@ -813,7 +813,7 @@ paths: | |||
813 | summary: Delete subscription of my user | 813 | summary: Delete subscription of my user |
814 | security: | 814 | security: |
815 | - OAuth2: | 815 | - OAuth2: |
816 | - user | 816 | - user |
817 | tags: | 817 | tags: |
818 | - My Subscriptions | 818 | - My Subscriptions |
819 | parameters: | 819 | parameters: |
@@ -1801,8 +1801,8 @@ paths: | |||
1801 | summary: Delete an abuse | 1801 | summary: Delete an abuse |
1802 | security: | 1802 | security: |
1803 | - OAuth2: | 1803 | - OAuth2: |
1804 | - admin | 1804 | - admin |
1805 | - moderator | 1805 | - moderator |
1806 | parameters: | 1806 | parameters: |
1807 | - $ref: '#/components/parameters/abuseId' | 1807 | - $ref: '#/components/parameters/abuseId' |
1808 | responses: | 1808 | responses: |
@@ -1873,8 +1873,8 @@ paths: | |||
1873 | summary: Block a video | 1873 | summary: Block a video |
1874 | security: | 1874 | security: |
1875 | - OAuth2: | 1875 | - OAuth2: |
1876 | - admin | 1876 | - admin |
1877 | - moderator | 1877 | - moderator |
1878 | tags: | 1878 | tags: |
1879 | - Video Blocks | 1879 | - Video Blocks |
1880 | parameters: | 1880 | parameters: |
@@ -1886,8 +1886,8 @@ paths: | |||
1886 | summary: Unblock a video by its id | 1886 | summary: Unblock a video by its id |
1887 | security: | 1887 | security: |
1888 | - OAuth2: | 1888 | - OAuth2: |
1889 | - admin | 1889 | - admin |
1890 | - moderator | 1890 | - moderator |
1891 | tags: | 1891 | tags: |
1892 | - Video Blocks | 1892 | - Video Blocks |
1893 | parameters: | 1893 | parameters: |
@@ -1904,8 +1904,8 @@ paths: | |||
1904 | summary: List video blocks | 1904 | summary: List video blocks |
1905 | security: | 1905 | security: |
1906 | - OAuth2: | 1906 | - OAuth2: |
1907 | - admin | 1907 | - admin |
1908 | - moderator | 1908 | - moderator |
1909 | parameters: | 1909 | parameters: |
1910 | - name: type | 1910 | - name: type |
1911 | in: query | 1911 | in: query |
@@ -1968,6 +1968,9 @@ paths: | |||
1968 | /videos/{id}/captions/{captionLanguage}: | 1968 | /videos/{id}/captions/{captionLanguage}: |
1969 | put: | 1969 | put: |
1970 | summary: Add or replace a video caption | 1970 | summary: Add or replace a video caption |
1971 | security: | ||
1972 | - OAuth2: | ||
1973 | - user | ||
1971 | tags: | 1974 | tags: |
1972 | - Video Captions | 1975 | - Video Captions |
1973 | parameters: | 1976 | parameters: |
@@ -1993,6 +1996,9 @@ paths: | |||
1993 | description: video or language not found | 1996 | description: video or language not found |
1994 | delete: | 1997 | delete: |
1995 | summary: Delete a video caption | 1998 | summary: Delete a video caption |
1999 | security: | ||
2000 | - OAuth2: | ||
2001 | - user | ||
1996 | tags: | 2002 | tags: |
1997 | - Video Captions | 2003 | - Video Captions |
1998 | parameters: | 2004 | parameters: |