X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=pkg%2Frestapi%2Fembedded_spec.go;fp=pkg%2Frestapi%2Fembedded_spec.go;h=8cb57e19b411587ad7842d15882d2d915aeb4b31;hb=b6341a5002c90da3d531a710f1038d716ef8c9bc;hp=79f78696dd710358f6709d1086cb4e7169bc5bab;hpb=429da19d53224135082f8b6f65470ae3ee8df176;p=ric-plt%2Fxapp-frame.git 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 @@ func init() { }, "/subscriptions/{subscriptionId}": { "delete": { + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], "tags": [ "common" ], @@ -390,6 +396,21 @@ func init() { } } }, + "SubscriptionInstance": { + "type": "object", + "required": [ + "RequestorId", + "InstanceId" + ], + "properties": { + "InstanceId": { + "type": "integer" + }, + "RequestorId": { + "type": "integer" + } + } + }, "SubscriptionList": { "description": "A list of subscriptions", "type": "array", @@ -398,27 +419,20 @@ func init() { } }, "SubscriptionResponse": { - "type": "array", - "items": { - "$ref": "#/definitions/SubscriptionResponseItem" - } - }, - "SubscriptionResponseItem": { "type": "object", "required": [ "SubscriptionId", - "RequestorId", - "InstanceId" + "SubscriptionInstances" ], "properties": { - "InstanceId": { - "type": "integer" - }, - "RequestorId": { - "type": "integer" - }, "SubscriptionId": { "type": "string" + }, + "SubscriptionInstances": { + "type": "array", + "items": { + "$ref": "#/definitions/SubscriptionInstance" + } } } }, @@ -552,6 +566,12 @@ func init() { }, "/subscriptions/{subscriptionId}": { "delete": { + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], "tags": [ "common" ], @@ -805,6 +825,21 @@ func init() { } } }, + "SubscriptionInstance": { + "type": "object", + "required": [ + "RequestorId", + "InstanceId" + ], + "properties": { + "InstanceId": { + "type": "integer" + }, + "RequestorId": { + "type": "integer" + } + } + }, "SubscriptionList": { "description": "A list of subscriptions", "type": "array", @@ -813,27 +848,20 @@ func init() { } }, "SubscriptionResponse": { - "type": "array", - "items": { - "$ref": "#/definitions/SubscriptionResponseItem" - } - }, - "SubscriptionResponseItem": { "type": "object", "required": [ "SubscriptionId", - "RequestorId", - "InstanceId" + "SubscriptionInstances" ], "properties": { - "InstanceId": { - "type": "integer" - }, - "RequestorId": { - "type": "integer" - }, "SubscriptionId": { "type": "string" + }, + "SubscriptionInstances": { + "type": "array", + "items": { + "$ref": "#/definitions/SubscriptionInstance" + } } } },