diff --git a/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/conf/config.json b/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/conf/config.json index a87877d6dce..60757b84619 100644 --- a/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/conf/config.json +++ b/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/conf/config.json @@ -166,6 +166,6 @@ "isOAuthEnabled": true, "backendRestEndpoints": { "deviceMgt": "/api/device-mgt/v1.0", - "appMgt": "/api/appm/store/v1.1" + "appMgt": "/api/application-mgt-store/v1.0" } } diff --git a/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/modules/business-controllers/policy.js b/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/modules/business-controllers/policy.js index 1c84db0261d..37dc9685b26 100644 --- a/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/modules/business-controllers/policy.js +++ b/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/modules/business-controllers/policy.js @@ -67,7 +67,6 @@ policyModule = function () { } else { policyObjectToView["deviceTypeIcon"] = policyObjectToView["platform"]; } - //policyObjectToView["icon"] = utility.getDeviceThumb(policyObjectToView["platform"]); var ownershipType = "None"; var deviceGroups = policyObjectFromRestEndpoint["deviceGroups"]; if (deviceGroups) { @@ -210,12 +209,15 @@ policyModule = function () { } try { var url = devicemgtProps["managerHTTPSURL"] + devicemgtProps["backendRestEndpoints"]["appMgt"] + - "/apps/mobileapp?field-filter=all"; - return serviceInvokers.XMLHttp.get(url, + "/applications"; + var data = { + limit: -1 + }; + return serviceInvokers.XMLHttp.post(url, data, function (backendResponse) { var response = {}; if (backendResponse.status === 200 && backendResponse.responseText) { - var appListFromRestEndpoint = parse(backendResponse.responseText)["appList"]; + var appListFromRestEndpoint = parse(backendResponse.responseText)["applications"]; var storeApps = []; var i, appObjectFromRestEndpoint, appObjectToView; for (i=0; i