NONRTRIC-955: Fix unit test 404 issue
[sim/a1-interface.git] / near-rt-ric-simulator / src / STD_2.0.0 / main.py
index 3057169..c16b81e 100644 (file)
@@ -17,7 +17,6 @@
 #
 
 import connexion
-import uvicorn
 import json
 import sys
 import os
@@ -254,6 +253,7 @@ if len(sys.argv) >= 2:
   if isinstance(sys.argv[1], int):
     port_number = sys.argv[1]
 
+app.add_api('ORAN_A1-p_V2.0.0_api.yaml')
+
 if __name__ == '__main__':
-  # Use Uvicorn to run the combined app
-  uvicorn.run(app, host="127.0.0.1", port=port_number, log_level="info")
\ No newline at end of file
+  app.run(port=port_number, host="127.0.0.1")
\ No newline at end of file