@classmethod
def register(cls, mod, url):
    """ Registers the API to a blueprint or application """
    symfunc = cls.as_view(cls.__name__)
    mod.add_url_rule(url, view_func=symfunc, methods=['GET', 'POST', 'PUT',
        'DELETE'])
