State info¶
-
class
Tribler.Core.Modules.restapi.state_endpoint.
StateEndpoint
(session)[source]¶ This endpoint is responsible for handing all requests regarding the state of Tribler.
-
render_GET
(request)[source]¶ -
GET
/state
¶
A GET request to this endpoint returns the current state of the Tribler core. There are three states: - STARTING: The core of Tribler is starting - UPGRADING: The upgrader is active - STARTED: The Tribler core has started
Example request:
curl -X GET http://localhost:8085/state
Example response:
{ "state": "STARTED", "last_exception": None }
-
-