X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=o2app%2Fentrypoints%2Fflask_application.py;h=55385c257e318f4a1c094fa9f6840c734c663364;hb=defe8209b3628593c186487857fe02586d7e1503;hp=cde07153ded0a59ec12a3ec2e10d98f5b9ec3847;hpb=1c5999c04742b704a3b78fe9acecba09d41f0d11;p=pti%2Fo2.git diff --git a/o2app/entrypoints/flask_application.py b/o2app/entrypoints/flask_application.py index cde0715..55385c2 100644 --- a/o2app/entrypoints/flask_application.py +++ b/o2app/entrypoints/flask_application.py @@ -1,33 +1,33 @@ -# Copyright (C) 2021 Wind River Systems, Inc. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -from flask import Flask -from flask_restx import Api - -from o2app import bootstrap -from o2ims.views import configure_namespace as ims_route_configure_namespace -from o2dms.api import configure_namespace as dms_route_configure_namespace - - -# apibase = config.get_o2ims_api_base() -app = Flask(__name__) -app.config.SWAGGER_UI_DOC_EXPANSION = 'list' -api = Api(app, version='1.0.0', - title='INF O2 Services API', - description='Swagger OpenAPI document for the INF O2 Services', - ) -bus = bootstrap.bootstrap() - -ims_route_configure_namespace(api) -dms_route_configure_namespace(api) +# Copyright (C) 2021 Wind River Systems, Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +from flask import Flask +from flask_restx import Api + +from o2app import bootstrap +from o2ims.views import configure_namespace as ims_route_configure_namespace +from o2dms.api import configure_namespace as dms_route_configure_namespace + + +# apibase = config.get_o2ims_api_base() +app = Flask(__name__) +app.config.SWAGGER_UI_DOC_EXPANSION = 'list' +api = Api(app, version='1.0.0', + title='INF O2 Services API', + description='Swagger OpenAPI document for the INF O2 Services', + ) +bus = bootstrap.bootstrap() + +ims_route_configure_namespace(api) +dms_route_configure_namespace(api)