diff --git a/notificationclient-base/docker/notificationclient-sidecar/sidecar/controllers/root.py b/notificationclient-base/docker/notificationclient-sidecar/sidecar/controllers/root.py index 5e552dc..f431ace 100644 --- a/notificationclient-base/docker/notificationclient-sidecar/sidecar/controllers/root.py +++ b/notificationclient-base/docker/notificationclient-sidecar/sidecar/controllers/root.py @@ -57,8 +57,7 @@ class V2Controller(rest.RestController): def _lookup(self, primary_key, *remainder): if primary_key: if 'subscriptions' == primary_key.lower(): - if not remainder: - return SubscriptionsControllerV2(), remainder + return SubscriptionsControllerV2(), remainder elif remainder: if 'currentstate' == remainder[-1].lower(): resource_address_array = remainder[:-1] diff --git a/notificationclient-base/docker/notificationclient-sidecar/sidecar/controllers/v2/subscriptions.py b/notificationclient-base/docker/notificationclient-sidecar/sidecar/controllers/v2/subscriptions.py index 2fd9204..ecf04cf 100644 --- a/notificationclient-base/docker/notificationclient-sidecar/sidecar/controllers/v2/subscriptions.py +++ b/notificationclient-base/docker/notificationclient-sidecar/sidecar/controllers/v2/subscriptions.py @@ -123,6 +123,10 @@ class SubscriptionController(rest.RestController): def __init__(self, subscription_id): self.subscription_id = subscription_id + @expose('json') + def post(self): + abort(404) + @expose('json') def get(self): try: