aboutsummaryrefslogtreecommitdiffhomepage
path: root/support
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2019-05-24 09:25:30 +0200
committerChocobozzz <me@florianbigard.com>2019-05-24 09:25:30 +0200
commit63d17405d0ddc0029e8f7ebb4b4ac4b4933e57ea (patch)
tree499fadb481e0dfdc6c562d6cb03e95bf6cf089f3 /support
parent46e9407c60650fefd0c0a3358da22d81dabe6f09 (diff)
downloadPeerTube-63d17405d0ddc0029e8f7ebb4b4ac4b4933e57ea.tar.gz
PeerTube-63d17405d0ddc0029e8f7ebb4b4ac4b4933e57ea.tar.zst
PeerTube-63d17405d0ddc0029e8f7ebb4b4ac4b4933e57ea.zip
Fix role documentation in rest api
Diffstat (limited to 'support')
-rw-r--r--support/doc/api/openapi.yaml18
1 files changed, 14 insertions, 4 deletions
diff --git a/support/doc/api/openapi.yaml b/support/doc/api/openapi.yaml
index 3c7688a7c..21818ae81 100644
--- a/support/doc/api/openapi.yaml
+++ b/support/doc/api/openapi.yaml
@@ -1966,6 +1966,13 @@ components:
1966 autoPlayVideo: 1966 autoPlayVideo:
1967 type: boolean 1967 type: boolean
1968 role: 1968 role:
1969 type: integer
1970 enum:
1971 - 0
1972 - 1
1973 - 2
1974 description: 'The user role (Admin = 0, Moderator = 1, User = 2)'
1975 roleLabel:
1969 type: string 1976 type: string
1970 enum: 1977 enum:
1971 - User 1978 - User
@@ -2115,12 +2122,11 @@ components:
2115 description: 'The user daily video quota ' 2122 description: 'The user daily video quota '
2116 role: 2123 role:
2117 type: integer 2124 type: integer
2118 format: int32
2119 enum: 2125 enum:
2120 - 0 2126 - 0
2121 - 1 2127 - 1
2122 - 2 2128 - 2
2123 description: 'The user role ' 2129 description: 'The user role (Admin = 0, Moderator = 1, User = 2)'
2124 required: 2130 required:
2125 - username 2131 - username
2126 - password 2132 - password
@@ -2143,8 +2149,12 @@ components:
2143 type: string 2149 type: string
2144 description: 'The updated daily video quota of the user ' 2150 description: 'The updated daily video quota of the user '
2145 role: 2151 role:
2146 type: string 2152 type: integer
2147 description: 'The updated role of the user ' 2153 enum:
2154 - 0
2155 - 1
2156 - 2
2157 description: 'The user role (Admin = 0, Moderator = 1, User = 2)'
2148 required: 2158 required:
2149 - id 2159 - id
2150 - email 2160 - email