mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-02-25 18:55:32 -06:00
Add ability to search playlists
This commit is contained in:
@@ -3584,6 +3584,47 @@ paths:
|
||||
'500':
|
||||
description: search index unavailable
|
||||
|
||||
/search/video-playlists:
|
||||
get:
|
||||
tags:
|
||||
- Search
|
||||
summary: Search playlists
|
||||
operationId: searchPlaylists
|
||||
parameters:
|
||||
- name: search
|
||||
in: query
|
||||
required: true
|
||||
description: >
|
||||
String to search. If the user can make a remote URI search, and the string is an URI then the
|
||||
PeerTube instance will fetch the remote object and add it to its database. Then,
|
||||
you can use the REST API to fetch the complete playlist information and interact with it.
|
||||
schema:
|
||||
type: string
|
||||
- $ref: '#/components/parameters/start'
|
||||
- $ref: '#/components/parameters/count'
|
||||
- $ref: '#/components/parameters/searchTarget'
|
||||
- $ref: '#/components/parameters/sort'
|
||||
callbacks:
|
||||
'searchTarget === search-index':
|
||||
$ref: '#/components/callbacks/searchIndex'
|
||||
responses:
|
||||
'200':
|
||||
description: successful operation
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
type: object
|
||||
properties:
|
||||
total:
|
||||
type: integer
|
||||
example: 1
|
||||
data:
|
||||
type: array
|
||||
items:
|
||||
$ref: '#/components/schemas/VideoPlaylist'
|
||||
'500':
|
||||
description: search index unavailable
|
||||
|
||||
/server/blocklist/accounts:
|
||||
get:
|
||||
tags:
|
||||
|
||||
Reference in New Issue
Block a user