mirror of https://github.com/Chocobozzz/PeerTube
refactor subscriptions response from list to totalDataList in openapi spec
closes #4067pull/4107/head
parent
985ece5755
commit
045bcd0d18
|
@ -804,6 +804,10 @@ paths:
|
||||||
responses:
|
responses:
|
||||||
'200':
|
'200':
|
||||||
description: successful operation
|
description: successful operation
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
$ref: '#/components/schemas/VideoChannelList'
|
||||||
post:
|
post:
|
||||||
tags:
|
tags:
|
||||||
- My Subscriptions
|
- My Subscriptions
|
||||||
|
@ -2301,15 +2305,7 @@ paths:
|
||||||
content:
|
content:
|
||||||
application/json:
|
application/json:
|
||||||
schema:
|
schema:
|
||||||
type: object
|
$ref: '#/components/schemas/VideoChannelList'
|
||||||
properties:
|
|
||||||
total:
|
|
||||||
type: integer
|
|
||||||
example: 1
|
|
||||||
data:
|
|
||||||
type: array
|
|
||||||
items:
|
|
||||||
$ref: '#/components/schemas/VideoChannel'
|
|
||||||
post:
|
post:
|
||||||
summary: Create a video channel
|
summary: Create a video channel
|
||||||
security:
|
security:
|
||||||
|
@ -2846,14 +2842,7 @@ paths:
|
||||||
content:
|
content:
|
||||||
application/json:
|
application/json:
|
||||||
schema:
|
schema:
|
||||||
properties:
|
$ref: '#/components/schemas/VideoChannelList'
|
||||||
total:
|
|
||||||
type: integer
|
|
||||||
example: 1
|
|
||||||
data:
|
|
||||||
type: array
|
|
||||||
items:
|
|
||||||
$ref: '#/components/schemas/VideoChannel'
|
|
||||||
'/accounts/{name}/ratings':
|
'/accounts/{name}/ratings':
|
||||||
get:
|
get:
|
||||||
summary: List ratings of an account
|
summary: List ratings of an account
|
||||||
|
@ -3111,9 +3100,7 @@ paths:
|
||||||
content:
|
content:
|
||||||
application/json:
|
application/json:
|
||||||
schema:
|
schema:
|
||||||
type: array
|
$ref: '#/components/schemas/VideoChannelList'
|
||||||
items:
|
|
||||||
$ref: '#/components/schemas/VideoChannel'
|
|
||||||
'500':
|
'500':
|
||||||
description: search index unavailable
|
description: search index unavailable
|
||||||
/blocklist/accounts:
|
/blocklist/accounts:
|
||||||
|
@ -4993,6 +4980,8 @@ components:
|
||||||
host:
|
host:
|
||||||
type: string
|
type: string
|
||||||
format: hostname
|
format: hostname
|
||||||
|
hostRedundancyAllowed:
|
||||||
|
type: boolean
|
||||||
followingCount:
|
followingCount:
|
||||||
type: integer
|
type: integer
|
||||||
followersCount:
|
followersCount:
|
||||||
|
@ -5919,6 +5908,17 @@ components:
|
||||||
bulkVideosSupportUpdate:
|
bulkVideosSupportUpdate:
|
||||||
type: boolean
|
type: boolean
|
||||||
description: 'Update the support field for all videos of this channel'
|
description: 'Update the support field for all videos of this channel'
|
||||||
|
VideoChannelList:
|
||||||
|
properties:
|
||||||
|
total:
|
||||||
|
type: integer
|
||||||
|
example: 1
|
||||||
|
data:
|
||||||
|
type: array
|
||||||
|
items:
|
||||||
|
allOf:
|
||||||
|
- $ref: '#/components/schemas/VideoChannel'
|
||||||
|
- $ref: '#/components/schemas/Actor'
|
||||||
|
|
||||||
MRSSPeerLink:
|
MRSSPeerLink:
|
||||||
type: object
|
type: object
|
||||||
|
|
Loading…
Reference in New Issue