aboutsummaryrefslogtreecommitdiffhomepage
path: root/support/doc/api
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-04-23 14:39:52 +0200
committerChocobozzz <me@florianbigard.com>2018-04-23 14:39:52 +0200
commit9d3ef9fe052ed29bd67566754cb28662bd122234 (patch)
tree7b704dbc0b2c8b4ca18bef2409d640d0019c3d0a /support/doc/api
parent2a2c19dfef7a9aa313c6ca0798f271c9a63449a9 (diff)
downloadPeerTube-9d3ef9fe052ed29bd67566754cb28662bd122234.tar.gz
PeerTube-9d3ef9fe052ed29bd67566754cb28662bd122234.tar.zst
PeerTube-9d3ef9fe052ed29bd67566754cb28662bd122234.zip
Use ISO 639 for languages
Diffstat (limited to 'support/doc/api')
-rw-r--r--support/doc/api/openapi.yaml25
1 files changed, 14 insertions, 11 deletions
diff --git a/support/doc/api/openapi.yaml b/support/doc/api/openapi.yaml
index 0729ac8ec..10f60175d 100644
--- a/support/doc/api/openapi.yaml
+++ b/support/doc/api/openapi.yaml
@@ -82,9 +82,9 @@ paths:
82 get: 82 get:
83 tags: 83 tags:
84 - Feeds 84 - Feeds
85 consumes:
86 - application/json
87 produces: 85 produces:
86 - application/atom+xml
87 - application/rss+xml
88 - application/json 88 - application/json
89 parameters: 89 parameters:
90 - name: format 90 - name: format
@@ -107,9 +107,6 @@ paths:
107 responses: 107 responses:
108 '200': 108 '200':
109 description: successful operation 109 description: successful operation
110 content:
111 application/json:
112 application/xml:
113 /jobs: 110 /jobs:
114 get: 111 get:
115 security: 112 security:
@@ -660,7 +657,7 @@ paths:
660 description: 'Video licence' 657 description: 'Video licence'
661 - name: language 658 - name: language
662 in: formData 659 in: formData
663 type: number 660 type: string
664 description: 'Video language' 661 description: 'Video language'
665 - name: description 662 - name: description
666 in: formData 663 in: formData
@@ -804,7 +801,7 @@ paths:
804 description: 'Video licence' 801 description: 'Video licence'
805 - name: language 802 - name: language
806 in: formData 803 in: formData
807 type: number 804 type: string
808 description: 'Video language' 805 description: 'Video language'
809 - name: description 806 - name: description
810 in: formData 807 in: formData
@@ -1245,12 +1242,18 @@ paths:
1245 '204': 1242 '204':
1246 description: successful operation 1243 description: successful operation
1247definitions: 1244definitions:
1248 VideoConstant: 1245 VideoConstantNumber:
1249 properties: 1246 properties:
1250 id: 1247 id:
1251 type: number 1248 type: number
1252 label: 1249 label:
1253 type: string 1250 type: string
1251 VideoConstantString:
1252 properties:
1253 id:
1254 type: string
1255 label:
1256 type: string
1254 VideoPrivacy: 1257 VideoPrivacy:
1255 type: string 1258 type: string
1256 enum: [Public, Unlisted, Private] 1259 enum: [Public, Unlisted, Private]
@@ -1267,11 +1270,11 @@ definitions:
1267 updatedAt: 1270 updatedAt:
1268 type: string 1271 type: string
1269 category: 1272 category:
1270 $ref: "#/definitions/VideoConstant" 1273 $ref: "#/definitions/VideoConstantNumber"
1271 licence: 1274 licence:
1272 $ref: "#/definitions/VideoConstant" 1275 $ref: "#/definitions/VideoConstantNumber"
1273 language: 1276 language:
1274 $ref: "#/definitions/VideoConstant" 1277 $ref: "#/definitions/VideoConstantString"
1275 privacy: 1278 privacy:
1276 $ref: "#/definitions/VideoPrivacy" 1279 $ref: "#/definitions/VideoPrivacy"
1277 description: 1280 description: