Docs: update API example of O-Cloud and resourcePool
[pti/o2.git] / o2ims / views / api_ns.py
index 711d5d2..b52c3e9 100644 (file)
 
 from flask import request
 from flask_restx import Resource
+
 from o2common.views.route import O2Namespace
 
 
 api_ims_inventory = O2Namespace(
-    "O2IMS_Inventory",
-    description='IMS Inventory related operations.')
+    "O2IMS-InfrastructureInventory",
+    description='O2 IMS Inventory related operations.')
 
 api_provision_v1 = O2Namespace(
     "PROVISION",
     description='Provision related operations.')
 
 api_ims_monitoring = O2Namespace(
-    "O2IMS_InfrastructureMonitoring",
+    "O2IMS-InfrastructureMonitoring",
     description='O2 IMS Monitoring related operations.')
 
 
 @api_ims_inventory.route('/api_versions')
 class InventoryVersion(Resource):
-    def get():
+    @api_ims_inventory.doc('Get Inventory Version')
+    def get(self):
         return {
             'uriPrefix': request.base_url.rsplit('/', 1)[0],
             'apiVersions': [{
-                'version': '1',
+                'version': '1.0.0',
                 # 'isDeprecated': 'False',
                 # 'retirementDate': ''
             }]
@@ -45,11 +47,12 @@ class InventoryVersion(Resource):
 
 @api_ims_monitoring.route('/api_versions')
 class MonitoringVersion(Resource):
-    def get():
+    @api_ims_monitoring.doc('Get Monitoring Version')
+    def get(self):
         return {
             'uriPrefix': request.base_url.rsplit('/', 1)[0],
             'apiVersions': [{
-                'version': '1',
+                'version': '1.0.0',
                 # 'isDeprecated': 'False',
                 # 'retirementDate': ''
             }]