Get interface for subscriptions
Change-Id: I11d351c6e3de9fcdc1f4e1a7937054c091bd870e
Signed-off-by: Mohamed Abukar <abukar.mohamed@nokia.com>
diff --git a/pkg/restapi/embedded_spec.go b/pkg/restapi/embedded_spec.go
index 4498b5b..a4b2585 100644
--- a/pkg/restapi/embedded_spec.go
+++ b/pkg/restapi/embedded_spec.go
@@ -34,6 +34,29 @@
"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 @@
}
}
},
+ "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 @@
"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 @@
}
}
},
+ "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",