X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=o2app%2Fentrypoints%2Fflask_application.py;h=c7e0ef9dff729fb8da31d9fdb9ad1ae77a58c0b9;hb=cd999dd33a2449fd8480fd641678360a749e5498;hp=0f9d3f4cc079ba62a2d68370019283dc99ad0f68;hpb=322f586832443714479307f3e14d58144cbdb54c;p=pti%2Fo2.git diff --git a/o2app/entrypoints/flask_application.py b/o2app/entrypoints/flask_application.py index 0f9d3f4..c7e0ef9 100644 --- a/o2app/entrypoints/flask_application.py +++ b/o2app/entrypoints/flask_application.py @@ -20,7 +20,6 @@ from o2app import bootstrap from o2ims.views import configure_namespace as ims_route_configure_namespace from o2common.views.route_exception import configure_exception -from o2ims.adapter.clients.alarm_dict_client import load_alarm_definition from o2common.authmw import authmiddleware from o2common.authmw import authprov from o2common.config.config import get_review_url @@ -53,13 +52,13 @@ app.config.SWAGGER_UI_DOC_EXPANSION = 'list' # app.config['RESTX_MASK_HEADER'] = 'fields' app.config['RESTX_MASK_SWAGGER'] = False app.config['ERROR_INCLUDE_MESSAGE'] = False -api = Api(app, version=FLASK_API_VERSION, - title='INF O2 Services API', - description='Swagger OpenAPI document for the INF O2 Services', +api = Api( + app, version=FLASK_API_VERSION, + catch_all_404s=True, + title='INF O2 Services API', + description='Swagger OpenAPI document for the INF O2 Services', ) bus = bootstrap.bootstrap() configure_exception(api) ims_route_configure_namespace(api) - -load_alarm_definition(bus.uow)