fix response in openapi spec for quota and video ratings
closes #4064 closes #4065
This commit is contained in:
parent
f6d6e7f861
commit
30b40713f4
1 changed files with 20 additions and 6 deletions
|
@ -50,8 +50,7 @@ info:
|
||||||
|
|
||||||
# Rate limits
|
# Rate limits
|
||||||
|
|
||||||
We are rate-limiting all endpoints of PeerTube's API. Custom values can be configured
|
We are rate-limiting all endpoints of PeerTube's API. Custom values can be set by administrators:
|
||||||
by administrators:
|
|
||||||
|
|
||||||
| Endpoint | Calls | Time frame |
|
| Endpoint | Calls | Time frame |
|
||||||
|-------------------------|------------------|---------------------------|
|
|-------------------------|------------------|---------------------------|
|
||||||
|
@ -723,7 +722,14 @@ paths:
|
||||||
content:
|
content:
|
||||||
application/json:
|
application/json:
|
||||||
schema:
|
schema:
|
||||||
type: number
|
type: object
|
||||||
|
properties:
|
||||||
|
videoQuotaUsed:
|
||||||
|
type: number
|
||||||
|
example: 16810141515
|
||||||
|
videoQuotaUsedDaily:
|
||||||
|
type: number
|
||||||
|
example: 1681014151
|
||||||
'/users/me/videos/{videoId}/rating':
|
'/users/me/videos/{videoId}/rating':
|
||||||
get:
|
get:
|
||||||
summary: Get rate of my user for a video
|
summary: Get rate of my user for a video
|
||||||
|
@ -5718,7 +5724,11 @@ components:
|
||||||
type: string
|
type: string
|
||||||
description: Id of the video
|
description: Id of the video
|
||||||
rating:
|
rating:
|
||||||
type: number
|
type: string
|
||||||
|
enum:
|
||||||
|
- like
|
||||||
|
- dislike
|
||||||
|
- none
|
||||||
description: Rating of the video
|
description: Rating of the video
|
||||||
required:
|
required:
|
||||||
- id
|
- id
|
||||||
|
@ -5728,8 +5738,12 @@ components:
|
||||||
video:
|
video:
|
||||||
$ref: '#/components/schemas/Video'
|
$ref: '#/components/schemas/Video'
|
||||||
rating:
|
rating:
|
||||||
type: number
|
type: string
|
||||||
description: 'Rating of the video'
|
enum:
|
||||||
|
- like
|
||||||
|
- dislike
|
||||||
|
- none
|
||||||
|
description: Rating of the video
|
||||||
required:
|
required:
|
||||||
- video
|
- video
|
||||||
- rating
|
- rating
|
||||||
|
|
Loading…
Reference in a new issue