Fix videos list response in rest api doc
This commit is contained in:
parent
ee89e8fd1a
commit
048b694661
|
@ -153,7 +153,7 @@ paths:
|
||||||
content:
|
content:
|
||||||
application/json:
|
application/json:
|
||||||
schema:
|
schema:
|
||||||
$ref: '#/components/schemas/Video'
|
$ref: '#/components/schemas/VideoListResponse'
|
||||||
x-code-samples:
|
x-code-samples:
|
||||||
- lang: JavaScript
|
- lang: JavaScript
|
||||||
source: |
|
source: |
|
||||||
|
@ -576,9 +576,7 @@ paths:
|
||||||
content:
|
content:
|
||||||
application/json:
|
application/json:
|
||||||
schema:
|
schema:
|
||||||
type: array
|
$ref: '#/components/schemas/VideoListResponse'
|
||||||
items:
|
|
||||||
$ref: '#/components/schemas/Video'
|
|
||||||
/users/me/subscriptions:
|
/users/me/subscriptions:
|
||||||
get:
|
get:
|
||||||
summary: Get subscriptions of the current user
|
summary: Get subscriptions of the current user
|
||||||
|
@ -639,9 +637,7 @@ paths:
|
||||||
content:
|
content:
|
||||||
application/json:
|
application/json:
|
||||||
schema:
|
schema:
|
||||||
type: array
|
$ref: '#/components/schemas/VideoListResponse'
|
||||||
items:
|
|
||||||
$ref: '#/components/schemas/Video'
|
|
||||||
'/users/me/subscriptions/{uri}':
|
'/users/me/subscriptions/{uri}':
|
||||||
get:
|
get:
|
||||||
summary: Get subscription of the current user for a given uri
|
summary: Get subscription of the current user for a given uri
|
||||||
|
@ -731,9 +727,7 @@ paths:
|
||||||
content:
|
content:
|
||||||
application/json:
|
application/json:
|
||||||
schema:
|
schema:
|
||||||
type: array
|
$ref: '#/components/schemas/VideoListResponse'
|
||||||
items:
|
|
||||||
$ref: '#/components/schemas/Video'
|
|
||||||
/videos/categories:
|
/videos/categories:
|
||||||
get:
|
get:
|
||||||
summary: Get list of video licences known by the server
|
summary: Get list of video licences known by the server
|
||||||
|
@ -1371,6 +1365,7 @@ paths:
|
||||||
get:
|
get:
|
||||||
summary: Get videos of a video channel by its id
|
summary: Get videos of a video channel by its id
|
||||||
tags:
|
tags:
|
||||||
|
- Video
|
||||||
- Video Channel
|
- Video Channel
|
||||||
parameters:
|
parameters:
|
||||||
- $ref: '#/components/parameters/channelHandle'
|
- $ref: '#/components/parameters/channelHandle'
|
||||||
|
@ -1380,7 +1375,7 @@ paths:
|
||||||
content:
|
content:
|
||||||
application/json:
|
application/json:
|
||||||
schema:
|
schema:
|
||||||
$ref: '#/components/schemas/Video'
|
$ref: '#/components/schemas/VideoListResponse'
|
||||||
'/accounts/{name}/video-channels':
|
'/accounts/{name}/video-channels':
|
||||||
get:
|
get:
|
||||||
summary: Get video channels of an account by its name
|
summary: Get video channels of an account by its name
|
||||||
|
@ -1540,9 +1535,7 @@ paths:
|
||||||
content:
|
content:
|
||||||
application/json:
|
application/json:
|
||||||
schema:
|
schema:
|
||||||
type: array
|
$ref: '#/components/schemas/VideoListResponse'
|
||||||
items:
|
|
||||||
$ref: '#/components/schemas/Video'
|
|
||||||
servers:
|
servers:
|
||||||
- url: 'https://peertube.cpy.re/api/v1'
|
- url: 'https://peertube.cpy.re/api/v1'
|
||||||
description: Live Test Server (live data - stable version)
|
description: Live Test Server (live data - stable version)
|
||||||
|
@ -2180,6 +2173,14 @@ components:
|
||||||
properties:
|
properties:
|
||||||
comment:
|
comment:
|
||||||
$ref: '#/components/schemas/VideoComment'
|
$ref: '#/components/schemas/VideoComment'
|
||||||
|
VideoListResponse:
|
||||||
|
properties:
|
||||||
|
total:
|
||||||
|
type: number
|
||||||
|
data:
|
||||||
|
type: array
|
||||||
|
items:
|
||||||
|
$ref: '#/components/schemas/Video'
|
||||||
AddUser:
|
AddUser:
|
||||||
properties:
|
properties:
|
||||||
username:
|
username:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user