tribler.core.content_discovery.restapi.search_endpoint
Attributes
Classes
The REST API schema for requets to other peers. |
|
This endpoint is responsible for searching in channels and torrents present in the local Tribler database. |
Module Contents
- type tribler.core.content_discovery.restapi.search_endpoint.RequestType = TriblerRequest[tuple[ContentDiscoveryCommunity]]
- class tribler.core.content_discovery.restapi.search_endpoint.RemoteQueryParameters
Bases:
tribler.core.database.restapi.schema.MetadataParametersThe REST API schema for requets to other peers.
- uuid
- channel_pk
- origin_id
- class tribler.core.content_discovery.restapi.search_endpoint.SearchEndpoint(middlewares: tuple = (), client_max_size: int = MAX_REQUEST_SIZE)
Bases:
tribler.core.restapi.rest_endpoint.RESTEndpointThis endpoint is responsible for searching in channels and torrents present in the local Tribler database.
- path = '/api/search'
- content_discovery_community: tribler.core.content_discovery.community.ContentDiscoveryCommunity | None = None
- required_components = ('content_discovery_community',)
- async remote_search(request: RequestType) tribler.core.restapi.rest_endpoint.RESTResponse
Perform a search for a given query.