Source code for soccermetrics.rest.resources.service_root

from soccermetrics.rest.resources import Resource

[docs]class Root(Resource): """ Represents the service root of the REST API (/ endpoint). The Service Root is the central resource of the Soccermetrics API. From this point the user can access all of the publicly- available resources. Derived from :class:`base.Resource`. """ def __init__(self, base_uri, auth): """ Constructor of Root class. :param base_uri: Base URI of API. :type base_uri: string :param auth: Authentication credential. :type auth: tuple """ super(Root, self).__init__(base_uri, auth) self.endpoint += '/'