Improve videos sort documentation
This commit is contained in:
parent
ef3de8de21
commit
d09ed46e71
|
@ -4781,7 +4781,6 @@ components:
|
||||||
name: sort
|
name: sort
|
||||||
in: query
|
in: query
|
||||||
required: false
|
required: false
|
||||||
description: Sort videos by criteria
|
|
||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
enum:
|
enum:
|
||||||
|
@ -4793,11 +4792,20 @@ components:
|
||||||
- -likes
|
- -likes
|
||||||
- -trending
|
- -trending
|
||||||
- -hot
|
- -hot
|
||||||
|
- -best
|
||||||
|
description: >
|
||||||
|
Sort videos by criteria (prefixing with `-` means `DESC` order):
|
||||||
|
* `hot` - Adaptation of Reddit "hot" algorithm taking into account video views, likes, dislikes and comments and publication date
|
||||||
|
* `best` - Same than `hot`, but also takes into account user video history
|
||||||
|
* `trending` - Sort videos by recent views ("recent" is defined by the admin)
|
||||||
|
* `views` - Sort videos using their `views` counter
|
||||||
|
* `publishedAt` - Sort by video publication date (when it became publicly available)
|
||||||
videosSearchSort:
|
videosSearchSort:
|
||||||
name: sort
|
name: sort
|
||||||
in: query
|
in: query
|
||||||
required: false
|
required: false
|
||||||
description: Sort videos by criteria
|
description: >
|
||||||
|
Sort videos by criteria (prefixing with `-` means `DESC` order):
|
||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
enum:
|
enum:
|
||||||
|
|
Loading…
Reference in New Issue