'During the initialization of the REST API, we only start the event sockets and the state endpoint.
We enable the other endpoints when Tribler has completed the starting procedure.'

def __init__(self, session):

    resource.Resource.__init__(self)
    self.session = session
    self.events_endpoint = EventsEndpoint(self.session)
    self.state_endpoint = StateEndpoint(self.session)
    self.shutdown_endpoint = ShutdownEndpoint(self.session)
    self.putChild('events', self.events_endpoint)
    self.putChild('state', self.state_endpoint)
    self.putChild('shutdown', self.shutdown_endpoint)
