A generator of (rule, callback) tuples.

def get_routing_tuples(cls):
        '''A generator of (rule, callback) tuples.'''
        for callback in cls.callbacks:
            ep_name = '{}.{}'.format(cls.api.__name__, callback.__name__)
            yield (Rule(cls.endpoint_path,
                        endpoint=ep_name,
                        methods=callback.swagger_ops),
                   callback)