Fix ocloudvirtualresource api typo
[pti/o2.git] / o2dms / views / __init__.py
index b514342..7a888a6 100644 (file)
 #  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
 #  See the License for the specific language governing permissions and\r
 #  limitations under the License.\r
+\r
+from flask_restx import Namespace\r
+from o2common.config import config\r
+\r
+\r
+api_dms_lcm_v1 = Namespace(\r
+    "O2DMS_LCM", description='DMS LCM related operations.')\r
+apibase = config.get_o2dms_api_base()\r
+\r
+\r
+def configure_namespace(app):\r
+    app.add_namespace(api_dms_lcm_v1, path=apibase)\r