1 # Copyright (C) 2021-2022 Wind River Systems, Inc.
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
7 # http://www.apache.org/licenses/LICENSE-2.0
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
15 from flask import request
16 from flask_restx import Resource
18 from o2common.views.route import O2Namespace
21 api_ims_inventory = O2Namespace(
22 "O2IMS-InfrastructureInventory",
23 description='O2 IMS Inventory related operations.')
25 api_provision_v1 = O2Namespace(
27 description='Provision related operations.')
29 api_ims_monitoring = O2Namespace(
30 "O2IMS-InfrastructureMonitoring",
31 description='O2 IMS Monitoring related operations.')
34 @api_ims_inventory.route('/api_versions')
35 class InventoryVersion(Resource):
36 @api_ims_inventory.doc('Get Inventory Version')
39 'uriPrefix': request.base_url.rsplit('/', 1)[0],
42 # 'isDeprecated': 'False',
43 # 'retirementDate': ''
48 @api_ims_monitoring.route('/api_versions')
49 class MonitoringVersion(Resource):
50 @api_ims_monitoring.doc('Get Monitoring Version')
53 'uriPrefix': request.base_url.rsplit('/', 1)[0],
56 # 'isDeprecated': 'False',
57 # 'retirementDate': ''