tribler.core.database.restapi.schema
Classes
The REST API schema for metadata parameters. |
|
The REST API schema for search parameters. |
|
The REST API schema for metadata itself. |
|
The REST API schema for collected torrents. |
|
The REST API schema for a torrent. |
|
The REST API schema for a channel. |
Module Contents
- class tribler.core.database.restapi.schema.MetadataParameters(*, only: marshmallow.types.StrSequenceOrSet | None = None, exclude: marshmallow.types.StrSequenceOrSet = (), many: bool | None = None, load_only: marshmallow.types.StrSequenceOrSet = (), dump_only: marshmallow.types.StrSequenceOrSet = (), partial: bool | marshmallow.types.StrSequenceOrSet | None = None, unknown: marshmallow.types.UnknownOption | None = None)
Bases:
marshmallow.SchemaThe REST API schema for metadata parameters.
- first
- last
- sort_by
- sort_desc
- fts_text
- hide_xxx
- category
- tags
- exclude_deleted
- metadata_type
- class tribler.core.database.restapi.schema.SearchMetadataParameters(*, only: marshmallow.types.StrSequenceOrSet | None = None, exclude: marshmallow.types.StrSequenceOrSet = (), many: bool | None = None, load_only: marshmallow.types.StrSequenceOrSet = (), dump_only: marshmallow.types.StrSequenceOrSet = (), partial: bool | marshmallow.types.StrSequenceOrSet | None = None, unknown: marshmallow.types.UnknownOption | None = None)
Bases:
MetadataParametersThe REST API schema for search parameters.
- include_total
- max_rowid
- class tribler.core.database.restapi.schema.MetadataSchema(*, only: marshmallow.types.StrSequenceOrSet | None = None, exclude: marshmallow.types.StrSequenceOrSet = (), many: bool | None = None, load_only: marshmallow.types.StrSequenceOrSet = (), dump_only: marshmallow.types.StrSequenceOrSet = (), partial: bool | marshmallow.types.StrSequenceOrSet | None = None, unknown: marshmallow.types.UnknownOption | None = None)
Bases:
marshmallow.SchemaThe REST API schema for metadata itself.
- type
- id
- origin_id
- public_key
- name
- category
- progress
- class tribler.core.database.restapi.schema.CollectionSchema(*, only: marshmallow.types.StrSequenceOrSet | None = None, exclude: marshmallow.types.StrSequenceOrSet = (), many: bool | None = None, load_only: marshmallow.types.StrSequenceOrSet = (), dump_only: marshmallow.types.StrSequenceOrSet = (), partial: bool | marshmallow.types.StrSequenceOrSet | None = None, unknown: marshmallow.types.UnknownOption | None = None)
Bases:
MetadataSchemaThe REST API schema for collected torrents.
- torrents
- state
- description_flag
- thumbnail_flag
- class tribler.core.database.restapi.schema.TorrentSchema(*, only: marshmallow.types.StrSequenceOrSet | None = None, exclude: marshmallow.types.StrSequenceOrSet = (), many: bool | None = None, load_only: marshmallow.types.StrSequenceOrSet = (), dump_only: marshmallow.types.StrSequenceOrSet = (), partial: bool | marshmallow.types.StrSequenceOrSet | None = None, unknown: marshmallow.types.UnknownOption | None = None)
Bases:
MetadataSchemaThe REST API schema for a torrent.
- status
- infohash
- size
- num_seeders
- num_leechers
- last_tracker_check
- updated
- class tribler.core.database.restapi.schema.ChannelSchema(*, only: marshmallow.types.StrSequenceOrSet | None = None, exclude: marshmallow.types.StrSequenceOrSet = (), many: bool | None = None, load_only: marshmallow.types.StrSequenceOrSet = (), dump_only: marshmallow.types.StrSequenceOrSet = (), partial: bool | marshmallow.types.StrSequenceOrSet | None = None, unknown: marshmallow.types.UnknownOption | None = None)
Bases:
TorrentSchema,CollectionSchemaThe REST API schema for a channel.
- dirty
- subscribed
- votes