X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;ds=sidebyside;f=src%2Fo2ims%2Fentrypoints%2Fflask_application.py;fp=src%2Fo2ims%2Fentrypoints%2Fflask_application.py;h=0000000000000000000000000000000000000000;hb=81e3575a77366f30c2049f98c48a3087db0ea992;hp=933301c200f462952c55ec482aca283394f8e4c0;hpb=8339c9a882a586578b37f44a504e21c5208611c0;p=pti%2Fo2.git diff --git a/src/o2ims/entrypoints/flask_application.py b/src/o2ims/entrypoints/flask_application.py deleted file mode 100644 index 933301c..0000000 --- a/src/o2ims/entrypoints/flask_application.py +++ /dev/null @@ -1,29 +0,0 @@ -# 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 datetime import datetime -from flask import Flask, jsonify, request -from o2ims.domain import commands -from o2ims.service.handlers import InvalidResourceType -from o2ims import bootstrap, config -from o2ims.views import ocloud_view - -app = Flask(__name__) -bus = bootstrap.bootstrap() -apibase = config.get_o2ims_api_base() - -@app.route(apibase, methods=["GET"]) -def oclouds(): - result = ocloud_view.oclouds(bus.uow) - return jsonify(result), 200