Adding RMR Wormhole support
[ric-plt/xapp-frame.git] / pkg / restapi / embedded_spec.go
index 4498b5b..a4b2585 100644 (file)
@@ -34,6 +34,29 @@ func init() {
   "host": "hostname",
   "basePath": "/ric/v1",
   "paths": {
+    "/subscriptions": {
+      "get": {
+        "produces": [
+          "application/json"
+        ],
+        "tags": [
+          "query"
+        ],
+        "summary": "Returns list of subscriptions",
+        "operationId": "getAllSubscriptions",
+        "responses": {
+          "200": {
+            "description": "successful query of subscriptions",
+            "schema": {
+              "$ref": "#/definitions/SubscriptionList"
+            }
+          },
+          "500": {
+            "description": "Internal error"
+          }
+        }
+      }
+    },
     "/subscriptions/control": {
       "post": {
         "consumes": [
@@ -250,6 +273,30 @@ func init() {
         }
       }
     },
+    "SubscriptionData": {
+      "type": "object",
+      "properties": {
+        "Endpoint": {
+          "type": "array",
+          "items": {
+            "type": "string"
+          }
+        },
+        "Meid": {
+          "type": "string"
+        },
+        "SubscriptionId": {
+          "type": "integer"
+        }
+      }
+    },
+    "SubscriptionList": {
+      "description": "A list of subscriptions",
+      "type": "array",
+      "items": {
+        "$ref": "#/definitions/SubscriptionData"
+      }
+    },
     "SubscriptionResult": {
       "description": "A list of unique IDs",
       "type": "array",
@@ -285,6 +332,29 @@ func init() {
   "host": "hostname",
   "basePath": "/ric/v1",
   "paths": {
+    "/subscriptions": {
+      "get": {
+        "produces": [
+          "application/json"
+        ],
+        "tags": [
+          "query"
+        ],
+        "summary": "Returns list of subscriptions",
+        "operationId": "getAllSubscriptions",
+        "responses": {
+          "200": {
+            "description": "successful query of subscriptions",
+            "schema": {
+              "$ref": "#/definitions/SubscriptionList"
+            }
+          },
+          "500": {
+            "description": "Internal error"
+          }
+        }
+      }
+    },
     "/subscriptions/control": {
       "post": {
         "consumes": [
@@ -501,6 +571,30 @@ func init() {
         }
       }
     },
+    "SubscriptionData": {
+      "type": "object",
+      "properties": {
+        "Endpoint": {
+          "type": "array",
+          "items": {
+            "type": "string"
+          }
+        },
+        "Meid": {
+          "type": "string"
+        },
+        "SubscriptionId": {
+          "type": "integer"
+        }
+      }
+    },
+    "SubscriptionList": {
+      "description": "A list of subscriptions",
+      "type": "array",
+      "items": {
+        "$ref": "#/definitions/SubscriptionData"
+      }
+    },
     "SubscriptionResult": {
       "description": "A list of unique IDs",
       "type": "array",