aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2019-05-24 10:09:27 +0200
committerChocobozzz <me@florianbigard.com>2019-05-24 10:09:27 +0200
commitee89e8fd1a0dc516c850b47c5279baafa4c434ac (patch)
treefcb9782f3fc31b9ce45b6a9505e1ceeb0854bbba
parent67ae04a5e7e20554a30b22a02792045505ee2d35 (diff)
downloadPeerTube-ee89e8fd1a0dc516c850b47c5279baafa4c434ac.tar.gz
PeerTube-ee89e8fd1a0dc516c850b47c5279baafa4c434ac.tar.zst
PeerTube-ee89e8fd1a0dc516c850b47c5279baafa4c434ac.zip
Fix video privacy in rest api documentation
-rw-r--r--support/doc/api/openapi.yaml27
1 files changed, 19 insertions, 8 deletions
diff --git a/support/doc/api/openapi.yaml b/support/doc/api/openapi.yaml
index 787859c3b..c1a9a3987 100644
--- a/support/doc/api/openapi.yaml
+++ b/support/doc/api/openapi.yaml
@@ -1026,7 +1026,7 @@ paths:
1026 description: Video preview file 1026 description: Video preview file
1027 type: string 1027 type: string
1028 privacy: 1028 privacy:
1029 $ref: '#/components/schemas/VideoPrivacy' 1029 $ref: '#/components/schemas/VideoPrivacySet'
1030 category: 1030 category:
1031 description: Video category 1031 description: Video category
1032 type: string 1032 type: string
@@ -1130,7 +1130,7 @@ paths:
1130 description: Video preview file 1130 description: Video preview file
1131 type: string 1131 type: string
1132 privacy: 1132 privacy:
1133 $ref: '#/components/schemas/VideoPrivacy' 1133 $ref: '#/components/schemas/VideoPrivacySet'
1134 category: 1134 category:
1135 description: Video category 1135 description: Video category
1136 type: string 1136 type: string
@@ -1824,12 +1824,23 @@ components:
1824 type: string 1824 type: string
1825 label: 1825 label:
1826 type: string 1826 type: string
1827 VideoPrivacy: 1827 VideoPrivacySet:
1828 type: string 1828 type: integer
1829 enum: 1829 enum:
1830 - Public 1830 - 1
1831 - Unlisted 1831 - 2
1832 - Private 1832 - 3
1833 description: 'The video privacy (Public = 1, Unlisted = 2, Private = 3)'
1834 VideoPrivacyConstant:
1835 properties:
1836 id:
1837 type: integer
1838 enum:
1839 - 1
1840 - 2
1841 - 3
1842 label:
1843 type: string
1833 Video: 1844 Video:
1834 properties: 1845 properties:
1835 id: 1846 id:
@@ -1849,7 +1860,7 @@ components:
1849 language: 1860 language:
1850 $ref: '#/components/schemas/VideoConstantString' 1861 $ref: '#/components/schemas/VideoConstantString'
1851 privacy: 1862 privacy:
1852 $ref: '#/components/schemas/VideoPrivacy' 1863 $ref: '#/components/schemas/VideoPrivacyConstant'
1853 description: 1864 description:
1854 type: string 1865 type: string
1855 duration: 1866 duration: