summaryrefslogtreecommitdiffstats
path: root/components/pm-subscription-handler/pmsh_service/mod/api/pmsh_swagger.yml
diff options
context:
space:
mode:
authorraviteja.karumuri <raviteja.karumuri@est.tech>2021-11-24 13:10:09 +0000
committerraviteja.karumuri <raviteja.karumuri@est.tech>2021-11-29 12:39:30 +0000
commit7e3042157d736e1f81618b92afc3bab501755a31 (patch)
tree4301aece78d3c486e3b144e736dbf66fc5bd901a /components/pm-subscription-handler/pmsh_service/mod/api/pmsh_swagger.yml
parentd7715808aaf9a4f891d2bd571af1a5acc86b4c7b (diff)
[PMSH] Read all subscriptions API
Issue-ID: DCAEGEN2-2847 Signed-off-by: raviteja.karumuri <raviteja.karumuri@est.tech> Change-Id: I6a2cbc127e12f2f6b051ed5f58fd2fa584a71908
Diffstat (limited to 'components/pm-subscription-handler/pmsh_service/mod/api/pmsh_swagger.yml')
-rw-r--r--components/pm-subscription-handler/pmsh_service/mod/api/pmsh_swagger.yml19
1 files changed, 17 insertions, 2 deletions
diff --git a/components/pm-subscription-handler/pmsh_service/mod/api/pmsh_swagger.yml b/components/pm-subscription-handler/pmsh_service/mod/api/pmsh_swagger.yml
index f27fb7ab..39f6dc3b 100644
--- a/components/pm-subscription-handler/pmsh_service/mod/api/pmsh_swagger.yml
+++ b/components/pm-subscription-handler/pmsh_service/mod/api/pmsh_swagger.yml
@@ -72,9 +72,24 @@ paths:
400:
description: Invalid input
+ get:
+ description: Get all the subscriptions from PMSH.
+ operationId: mod.api.controller.get_subscriptions
+ tags:
+ - "Subscription"
+ responses:
+ 200:
+ description: OK; Array of subscriptions are returned else empty if not found
+ schema:
+ type: array
+ items:
+ $ref: "#/definitions/subscription"
+ 500:
+ description: Exception occurred while querying database
+
/subscription/{subscription_name}:
get:
- description: Get the Subscription from ONAP specified by Name
+ description: Get the Subscription from PMSH specified by Name
operationId: mod.api.controller.get_subscription_by_name
tags:
- "Subscription"
@@ -92,7 +107,7 @@ paths:
404:
description: Subscription with specified name not found
500:
- description: Exception occurs while querying database
+ description: Exception occurred while querying database
definitions:
subscription: