Merge "Update RoutingManagerSimulator according to latest RM Swagger"
diff --git a/E2Manager/resources/configuration.yaml b/E2Manager/resources/configuration.yaml
index f10d275..0914b88 100644
--- a/E2Manager/resources/configuration.yaml
+++ b/E2Manager/resources/configuration.yaml
@@ -6,7 +6,7 @@
   port: 3801
   maxMsgSize: 65536
 routingManager:
-  baseUrl: http://10.0.2.15:12020/ric/v1/handles/v1/
+  baseUrl: http://10.0.2.15:12020/ric/v1/handles/
 notificationResponseBuffer: 100
 bigRedButtonTimeoutSec: 5
 maxConnectionAttempts: 3
diff --git a/tools/RoutingManagerSimulator/api/swagger.yaml b/tools/RoutingManagerSimulator/api/swagger.yaml
index db343d7..2510d78 100755
--- a/tools/RoutingManagerSimulator/api/swagger.yaml
+++ b/tools/RoutingManagerSimulator/api/swagger.yaml
@@ -158,7 +158,7 @@
           description: "Xapp list received"
         "400":
           description: "Invalid data"
-  /handles/v1/e2t:
+  /handles/e2t:
     post:
       tags:
       - "handle"
@@ -213,7 +213,7 @@
           description: "new e2t instance is considered and platform routes are established"
         "400":
           description: "Invalid data"
-  /handles/v1/associate-ran-to-e2t:
+  /handles/associate-ran-to-e2t:
     post:
       tags:
       - "handle"
@@ -239,7 +239,7 @@
           description: "e2t ran mapping recieved, platform routes"
         "400":
           description: "Invalid data"
-  /handles/v1/dissociate-ran:
+  /handles/dissociate-ran:
     post:
       tags:
       - "handle"
diff --git a/tools/RoutingManagerSimulator/go/README.md b/tools/RoutingManagerSimulator/go/README.md
new file mode 100755
index 0000000..f146cbf
--- /dev/null
+++ b/tools/RoutingManagerSimulator/go/README.md
@@ -0,0 +1,25 @@
+# Go API Server for swagger
+
+This is the Swagger/OpenAPI 2.0 definition of Routing Manager's Northbound API.
+
+## Overview
+This server was generated by the [swagger-codegen]
+(https://github.com/swagger-api/swagger-codegen) project.  
+By using the [OpenAPI-Spec](https://github.com/OAI/OpenAPI-Specification) from a remote server, you can easily generate a server stub.  
+-
+
+To see how to make this your own, look here:
+
+[README](https://github.com/swagger-api/swagger-codegen/blob/master/README.md)
+
+- API version: 0.4.0
+- Build date: 2019-12-30T10:52:31.803Z
+
+
+### Running the server
+To run the server, follow these simple steps:
+
+```
+go run main.go
+```
+
diff --git a/tools/RoutingManagerSimulator/go/routers.go b/tools/RoutingManagerSimulator/go/routers.go
index 6c34230..d37b9ae 100755
--- a/tools/RoutingManagerSimulator/go/routers.go
+++ b/tools/RoutingManagerSimulator/go/routers.go
@@ -77,21 +77,21 @@
 	Route{
 		"AssociateRanToE2tHandle",
 		strings.ToUpper("Post"),
-		"/ric/v1/handles/v1/associate-ran-to-e2t",
+		"/ric/v1/handles/associate-ran-to-e2t",
 		AssociateRanToE2tHandle,
 	},
 
 	Route{
 		"CreateNewE2tHandle",
 		strings.ToUpper("Post"),
-		"/ric/v1/handles/v1/e2t",
+		"/ric/v1/handles/e2t",
 		CreateNewE2tHandle,
 	},
 
 	Route{
 		"DeleteE2tHandle",
 		strings.ToUpper("Delete"),
-		"/ric/v1/handles/v1/e2t",
+		"/ric/v1/handles/e2t",
 		DeleteE2tHandle,
 	},
 
@@ -105,7 +105,7 @@
 	Route{
 		"DissociateRan",
 		strings.ToUpper("Post"),
-		"/ric/v1/handles/v1/dissociate-ran",
+		"/ric/v1/handles/dissociate-ran",
 		DissociateRan,
 	},