public class AdminDashboardRestClient extends Object
| Constructor and Description |
|---|
AdminDashboardRestClient(String backendURL) |
| Modifier and Type | Method and Description |
|---|---|
org.wso2.carbon.automation.test.utils.http.client.HttpResponse |
addApplicationPolicyWithBandwidthType(String name,
int bandwidth,
String bandwidthUnit,
int defaultUnitTime,
String defaultTimeUnit) |
org.wso2.carbon.automation.test.utils.http.client.HttpResponse |
addSubscriptionPolicyWithBandwidthType(String name,
int bandwidth,
String bandwidthUnit,
int defaultUnitTime,
String defaultTimeUnit,
boolean stopOnQuotaReach,
int rateLimit,
String rateLimitTimeUnit) |
org.wso2.carbon.automation.test.utils.http.client.HttpResponse |
addThrottlingPolicy(String throttlingPolicyJSON) |
org.wso2.carbon.automation.test.utils.http.client.HttpResponse |
addTier(APIThrottlingTierRequest throttlingTierRequest)
Add/Edit Tier
|
org.wso2.carbon.automation.test.utils.http.client.HttpResponse |
deleteAPIPolicy(String name) |
org.wso2.carbon.automation.test.utils.http.client.HttpResponse |
deleteApplicationPolicy(String name) |
org.wso2.carbon.automation.test.utils.http.client.HttpResponse |
deleteSubscriptionPolicy(String name) |
org.wso2.carbon.automation.test.utils.http.client.HttpResponse |
deleteTier(String tierName)
Delete tier
|
org.wso2.carbon.automation.test.utils.http.client.HttpResponse |
getAllTiers()
Get all tiers
|
org.wso2.carbon.automation.test.utils.http.client.HttpResponse |
getapplicationsByTenantId(String search,
String start,
String draw,
String offset,
String columnId,
String sortOrder)
Get all applications within a specific tenant domain
|
org.wso2.carbon.automation.test.utils.http.client.HttpResponse |
login(String userName,
String password)
Login to API Admin Portal
|
org.wso2.carbon.automation.test.utils.http.client.HttpResponse |
updateApplicationOwner(String newOwner,
String oldOwner,
String uuid,
String appName)
Update application owner
|
public AdminDashboardRestClient(String backendURL)
public org.wso2.carbon.automation.test.utils.http.client.HttpResponse login(String userName, String password) throws APIManagerIntegrationTestException
userName - - username to loginpassword - - password to loginAPIManagerIntegrationTestException - - Throws if login to
Admin Portal failspublic org.wso2.carbon.automation.test.utils.http.client.HttpResponse addTier(APIThrottlingTierRequest throttlingTierRequest) throws APIManagerIntegrationTestException
throttlingTierRequest - APIManagerIntegrationTestExceptionpublic org.wso2.carbon.automation.test.utils.http.client.HttpResponse addThrottlingPolicy(String throttlingPolicyJSON) throws APIManagerIntegrationTestException
public org.wso2.carbon.automation.test.utils.http.client.HttpResponse addApplicationPolicyWithBandwidthType(String name, int bandwidth, String bandwidthUnit, int defaultUnitTime, String defaultTimeUnit) throws APIManagerIntegrationTestException
public org.wso2.carbon.automation.test.utils.http.client.HttpResponse addSubscriptionPolicyWithBandwidthType(String name, int bandwidth, String bandwidthUnit, int defaultUnitTime, String defaultTimeUnit, boolean stopOnQuotaReach, int rateLimit, String rateLimitTimeUnit) throws APIManagerIntegrationTestException
public org.wso2.carbon.automation.test.utils.http.client.HttpResponse deleteSubscriptionPolicy(String name) throws APIManagerIntegrationTestException
public org.wso2.carbon.automation.test.utils.http.client.HttpResponse deleteAPIPolicy(String name) throws APIManagerIntegrationTestException
public org.wso2.carbon.automation.test.utils.http.client.HttpResponse deleteApplicationPolicy(String name) throws APIManagerIntegrationTestException
public org.wso2.carbon.automation.test.utils.http.client.HttpResponse deleteTier(String tierName) throws APIManagerIntegrationTestException
tierName - APIManagerIntegrationTestExceptionpublic org.wso2.carbon.automation.test.utils.http.client.HttpResponse getAllTiers()
throws APIManagerIntegrationTestException
APIManagerIntegrationTestExceptionpublic org.wso2.carbon.automation.test.utils.http.client.HttpResponse getapplicationsByTenantId(String search, String start, String draw, String offset, String columnId, String sortOrder) throws APIManagerIntegrationTestException
search - start - draw - offset - columnId - sortOrder - APIManagerIntegrationTestExceptionpublic org.wso2.carbon.automation.test.utils.http.client.HttpResponse updateApplicationOwner(String newOwner, String oldOwner, String uuid, String appName) throws APIManagerIntegrationTestException
newOwner - oldOwner - uuid - appName - APIManagerIntegrationTestExceptionCopyright © 2020 WSO2 Inc. All rights reserved.