server.py 文件源码

python
阅读 19 收藏 0 点赞 0 评论 0

项目:functest 作者: opnfv 项目源码 文件源码
def api_add_resource():
    """
    The resource has multiple URLs and you can pass multiple URLs to the
    add_resource() method on the Api object. Each one will be routed to
    your Resource
    """
    for url_pattern in URLPATTERNS:
        try:
            API.add_resource(
                get_resource(url_pattern.target), url_pattern.url,
                endpoint=get_endpoint(url_pattern.url))
        except StopIteration:
            LOGGER.error('url resource not found: %s', url_pattern.url)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号