@staticmethod
def _get_resource_path(resource_type, resource_id=None, relationship=None):
    """
        Build and return API path.
        """
    path = '/' + resource_type
    if resource_id is not None:
        path += '/' + str(resource_id)
    if relationship is not None:
        path += '/relationships/' + relationship
    return path
