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 |
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 |
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 |
login(String userName,
String password)
Login to API Admin Portal
|
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 deleteTier(String tierName) throws APIManagerIntegrationTestException
tierName - APIManagerIntegrationTestExceptionpublic org.wso2.carbon.automation.test.utils.http.client.HttpResponse getAllTiers()
throws APIManagerIntegrationTestException
APIManagerIntegrationTestExceptionCopyright © 2018 WSO2 Inc. All rights reserved.