Variables¶
-
class
Tribler.Core.Modules.restapi.variables_endpoint.
VariablesEndpoint
(session)[source]¶ This endpoint is responsible for handing all requests regarding runtime-defined variables in Tribler such as ports.
-
render_GET
(request)[source]¶ -
GET
/variables
¶
A GET request to this endpoint returns all the runtime-defined variables in Tribler.
Example request:
curl -X GET http://localhost:8085/variables
Example response:
{ "variables": { "ports": { "video~port": 1234, "tunnel_community~socks5_listen_ports~1": 1235, ... }, ... } }
-
-