diff options
author | Chocobozzz <me@florianbigard.com> | 2018-04-25 10:21:38 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-04-25 13:50:48 +0200 |
commit | 6b738c7a31591a83fdcd9c78b6b1f98e543c378b (patch) | |
tree | db771d0e99e9ff27570885fe2a6f58a7c1948fbc /support/doc/api | |
parent | 48dce1c90dff4e90a4bcffefaecf157336cf904b (diff) | |
download | PeerTube-6b738c7a31591a83fdcd9c78b6b1f98e543c378b.tar.gz PeerTube-6b738c7a31591a83fdcd9c78b6b1f98e543c378b.tar.zst PeerTube-6b738c7a31591a83fdcd9c78b6b1f98e543c378b.zip |
Video channel API routes refractor
Diffstat (limited to 'support/doc/api')
-rw-r--r-- | support/doc/api/openapi.yaml | 53 |
1 files changed, 46 insertions, 7 deletions
diff --git a/support/doc/api/openapi.yaml b/support/doc/api/openapi.yaml index 4a1f06d00..56941031b 100644 --- a/support/doc/api/openapi.yaml +++ b/support/doc/api/openapi.yaml | |||
@@ -50,6 +50,25 @@ paths: | |||
50 | description: successful operation | 50 | description: successful operation |
51 | schema: | 51 | schema: |
52 | $ref: '#/definitions/Account' | 52 | $ref: '#/definitions/Account' |
53 | '/accounts/{id}/videos': | ||
54 | get: | ||
55 | tags: | ||
56 | - Accounts | ||
57 | consumes: | ||
58 | - application/json | ||
59 | produces: | ||
60 | - application/json | ||
61 | parameters: | ||
62 | - name: id | ||
63 | in: path | ||
64 | required: true | ||
65 | type: string | ||
66 | description: 'The id of the account' | ||
67 | responses: | ||
68 | '200': | ||
69 | description: successful operation | ||
70 | schema: | ||
71 | $ref: '#/definitions/Video' | ||
53 | /accounts: | 72 | /accounts: |
54 | get: | 73 | get: |
55 | tags: | 74 | tags: |
@@ -1115,6 +1134,30 @@ paths: | |||
1115 | responses: | 1134 | responses: |
1116 | '204': | 1135 | '204': |
1117 | description: successful operation | 1136 | description: successful operation |
1137 | "/account/{accountId}/video-channels/{id}/videos": | ||
1138 | get: | ||
1139 | tags: | ||
1140 | - VideoChannel | ||
1141 | consumes: | ||
1142 | - application/json | ||
1143 | produces: | ||
1144 | - application/json | ||
1145 | parameters: | ||
1146 | - name: accountId | ||
1147 | in: path | ||
1148 | required: true | ||
1149 | type: string | ||
1150 | description: 'The account id ' | ||
1151 | - name: id | ||
1152 | in: path | ||
1153 | required: true | ||
1154 | type: string | ||
1155 | description: 'The video channel id ' | ||
1156 | responses: | ||
1157 | '200': | ||
1158 | description: successful operation | ||
1159 | schema: | ||
1160 | $ref: '#/definitions/Video' | ||
1118 | "/videos/{videoId}/comment-threads": | 1161 | "/videos/{videoId}/comment-threads": |
1119 | get: | 1162 | get: |
1120 | tags: | 1163 | tags: |
@@ -1387,17 +1430,13 @@ definitions: | |||
1387 | type: string | 1430 | type: string |
1388 | isLocal: | 1431 | isLocal: |
1389 | type: boolean | 1432 | type: boolean |
1390 | owner: | 1433 | ownerAccount: |
1391 | type: object | 1434 | type: object |
1392 | properties: | 1435 | properties: |
1393 | name: | 1436 | id: |
1394 | type: string | 1437 | type: number |
1395 | uuid: | 1438 | uuid: |
1396 | type: string | 1439 | type: string |
1397 | videos: | ||
1398 | type: array | ||
1399 | items: | ||
1400 | $ref: "#/definitions/Video" | ||
1401 | VideoComment: | 1440 | VideoComment: |
1402 | properties: | 1441 | properties: |
1403 | id: | 1442 | id: |