示例#1
0
def make_app():
    swagger.docs(base_url=CONF.ui_url, static_path=CONF.ui_static_path)
    return swagger.Application(
        url_mappings.mappings,
        debug=CONF.api_debug,
        auth=CONF.api_token_check,
        cookie_secret='opnfv-testapi',
    )
示例#2
0
def make_app():
    swagger.docs(base_url=CONF.swagger_base_url, static_path=CONF.static_path)
    return swagger.Application(
        url_mappings.mappings,
        debug=CONF.api_debug,
        auth=CONF.api_authenticate,
        cookie_secret='opnfv-testapi',
    )
示例#3
0
def make_app():
    swagger.docs(base_url=CONF.swagger_base_url)
    return swagger.Application(url_mappings.mappings,
                               db=get_db(),
                               debug=CONF.api_debug_on,
                               auth=CONF.api_authenticate_on)
示例#4
0
文件: server.py 项目: hwoarang/releng
def make_app():
    return swagger.Application(
        url_mappings.mappings,
        db=db,
        debug=CONF.api_debug_on,
    )