API update
Change-Id: I1ad0d7202227b01ff14d8433f27bead15d8c5a99
Signed-off-by: Mohamed Abukar <abukar.mohamed@nokia.com>
diff --git a/pkg/restapi/embedded_spec.go b/pkg/restapi/embedded_spec.go
index 79f7869..8cb57e1 100644
--- a/pkg/restapi/embedded_spec.go
+++ b/pkg/restapi/embedded_spec.go
@@ -137,6 +137,12 @@
},
"/subscriptions/{subscriptionId}": {
"delete": {
+ "consumes": [
+ "application/json"
+ ],
+ "produces": [
+ "application/json"
+ ],
"tags": [
"common"
],
@@ -390,23 +396,9 @@
}
}
},
- "SubscriptionList": {
- "description": "A list of subscriptions",
- "type": "array",
- "items": {
- "$ref": "#/definitions/SubscriptionData"
- }
- },
- "SubscriptionResponse": {
- "type": "array",
- "items": {
- "$ref": "#/definitions/SubscriptionResponseItem"
- }
- },
- "SubscriptionResponseItem": {
+ "SubscriptionInstance": {
"type": "object",
"required": [
- "SubscriptionId",
"RequestorId",
"InstanceId"
],
@@ -416,9 +408,31 @@
},
"RequestorId": {
"type": "integer"
- },
+ }
+ }
+ },
+ "SubscriptionList": {
+ "description": "A list of subscriptions",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/SubscriptionData"
+ }
+ },
+ "SubscriptionResponse": {
+ "type": "object",
+ "required": [
+ "SubscriptionId",
+ "SubscriptionInstances"
+ ],
+ "properties": {
"SubscriptionId": {
"type": "string"
+ },
+ "SubscriptionInstances": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/SubscriptionInstance"
+ }
}
}
},
@@ -552,6 +566,12 @@
},
"/subscriptions/{subscriptionId}": {
"delete": {
+ "consumes": [
+ "application/json"
+ ],
+ "produces": [
+ "application/json"
+ ],
"tags": [
"common"
],
@@ -805,23 +825,9 @@
}
}
},
- "SubscriptionList": {
- "description": "A list of subscriptions",
- "type": "array",
- "items": {
- "$ref": "#/definitions/SubscriptionData"
- }
- },
- "SubscriptionResponse": {
- "type": "array",
- "items": {
- "$ref": "#/definitions/SubscriptionResponseItem"
- }
- },
- "SubscriptionResponseItem": {
+ "SubscriptionInstance": {
"type": "object",
"required": [
- "SubscriptionId",
"RequestorId",
"InstanceId"
],
@@ -831,9 +837,31 @@
},
"RequestorId": {
"type": "integer"
- },
+ }
+ }
+ },
+ "SubscriptionList": {
+ "description": "A list of subscriptions",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/SubscriptionData"
+ }
+ },
+ "SubscriptionResponse": {
+ "type": "object",
+ "required": [
+ "SubscriptionId",
+ "SubscriptionInstances"
+ ],
+ "properties": {
"SubscriptionId": {
"type": "string"
+ },
+ "SubscriptionInstances": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/SubscriptionInstance"
+ }
}
}
},