From 481d381ca723576f93ef09f63e1da177b591b3f2 Mon Sep 17 00:00:00 2001 From: charitha Date: Thu, 15 Mar 2018 20:21:18 +0530 Subject: [PATCH] Fixed exception in subscribing APIs --- .../extension/APIManagementProviderServiceImpl.java | 7 +------ .../src/main/resources/store-api.yaml | 4 ++-- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/components/apimgt-extensions/org.wso2.carbon.apimgt.application.extension/src/main/java/org/wso2/carbon/apimgt/application/extension/APIManagementProviderServiceImpl.java b/components/apimgt-extensions/org.wso2.carbon.apimgt.application.extension/src/main/java/org/wso2/carbon/apimgt/application/extension/APIManagementProviderServiceImpl.java index 525fb845eb9..487177ed613 100644 --- a/components/apimgt-extensions/org.wso2.carbon.apimgt.application.extension/src/main/java/org/wso2/carbon/apimgt/application/extension/APIManagementProviderServiceImpl.java +++ b/components/apimgt-extensions/org.wso2.carbon.apimgt.application.extension/src/main/java/org/wso2/carbon/apimgt/application/extension/APIManagementProviderServiceImpl.java @@ -155,12 +155,7 @@ public class APIManagementProviderServiceImpl implements APIManagementProviderSe } } if (!needToSubscribe.isEmpty()) { - // TODO: Fix this properly - try { - storeClient.getSubscriptionMultitpleApi().subscriptionsMultiplePost(needToSubscribe, CONTENT_TYPE); - } catch (Exception e){ - log.warn("Please check the API subscriptions."); - } + storeClient.getSubscriptionMultitpleApi().subscriptionsMultiplePost(needToSubscribe, CONTENT_TYPE); } //end of subscription diff --git a/components/apimgt-extensions/org.wso2.carbon.apimgt.integration.generated.client/src/main/resources/store-api.yaml b/components/apimgt-extensions/org.wso2.carbon.apimgt.integration.generated.client/src/main/resources/store-api.yaml index 5bdf610d347..8f85e25759c 100644 --- a/components/apimgt-extensions/org.wso2.carbon.apimgt.integration.generated.client/src/main/resources/store-api.yaml +++ b/components/apimgt-extensions/org.wso2.carbon.apimgt.integration.generated.client/src/main/resources/store-api.yaml @@ -1374,9 +1374,9 @@ paths: OK. Successful response with the newly created objects as entity in the body. schema: - $ref: '#/definitions/Subscription' + type: array items: - type: array + $ref: '#/definitions/Subscription' headers: Content-Type: description: |