public class RestAPIStoreImpl extends Object
| Modifier and Type | Field and Description |
|---|---|
ApiKeysApi |
apiKeysApi |
ApIsApi |
apIsApi |
ApplicationKeysApi |
applicationKeysApi |
ApplicationsApi |
applicationsApi |
static String |
appName |
static String |
appOwner |
static String |
callBackURL |
CommentsApi |
commentsApi |
static String |
grantType |
static String |
password |
RatingsApi |
ratingsApi |
SdKsApi |
sdKsApi |
String |
storeURL |
SubscriptionsApi |
subscriptionIndividualApi |
TagsApi |
tagsApi |
String |
tenantDomain |
static String |
tokenScope |
UnifiedSearchApi |
unifiedSearchApi |
static String |
username |
| Constructor and Description |
|---|
RestAPIStoreImpl()
Deprecated.
|
RestAPIStoreImpl(String tenantDomain,
String storeURL) |
RestAPIStoreImpl(String username,
String password,
String tenantDomain,
String storeURL) |
| Modifier and Type | Method and Description |
|---|---|
ApplicationDTO |
addApplication(String application,
String tier,
String callbackUrl,
String description)
Add application
|
org.wso2.carbon.automation.test.utils.http.client.HttpResponse |
addApplicationWithCustomAttributes(String application,
String tier,
String callbackUrl,
String description,
String applicationAttributes)
Add application with custom attributes
|
org.wso2.carbon.automation.test.utils.http.client.HttpResponse |
addApplicationWithGroup(String application,
String tier,
String callbackUrl,
String description,
String groupId)
Add application with Group
|
ApplicationDTO |
addApplicationWithTokenType(String application,
String tier,
String callbackUrl,
String description,
String tokenType)
Add application with token type
|
org.wso2.carbon.automation.test.utils.http.client.HttpResponse |
addComment(String apiId,
String comment)
Add comment to given API
|
org.wso2.carbon.automation.test.utils.http.client.HttpResponse |
addRating(String apiId,
Integer rating,
String tenantDomain)
Add rating into api
|
org.wso2.carbon.automation.test.utils.http.client.HttpResponse |
changePassword(String username,
String currentPassword,
String newPassword)
Change password of the user
|
org.wso2.carbon.automation.test.utils.http.client.HttpResponse |
cleanUpApplicationRegistrationByApplicationId(String applicationId,
String keyType)
Clean up application registration by ID
|
org.wso2.carbon.automation.test.utils.http.client.HttpResponse |
createApplication(String appName,
String description,
String throttleTier,
ApplicationDTO.TokenTypeEnum tokenType) |
org.wso2.carbon.automation.test.utils.http.client.HttpResponse |
createApplicationWithCustomAttribute(String appName,
String description,
String throttleTier,
ApplicationDTO.TokenTypeEnum tokenType,
Map<String,String> attribute) |
org.wso2.carbon.automation.test.utils.http.client.HttpResponse |
createSubscription(String apiId,
String applicationId,
String subscriptionTier) |
org.wso2.carbon.automation.test.utils.http.client.HttpResponse |
deleteApplication(String applicationId) |
APIKeyDTO |
generateAPIKeys(String applicationId,
String keyType,
int validityPeriod) |
ApplicationKeyDTO |
generateKeys(String applicationId,
String validityTime,
String callBackUrl,
ApplicationKeyGenerateRequestDTO.KeyTypeEnum keyTypeEnum,
ArrayList<String> scopes,
List<String> grantTypes) |
ApiResponse<byte[]> |
generateSDKUpdated(String apiId,
String language)
Generate SDK for a given programming language
|
ApiResponse<byte[]> |
generateSDKUpdated(String apiId,
String language,
String tenantDomain)
Generate SDK for a given programming language
|
org.wso2.carbon.automation.test.utils.http.client.HttpResponse |
generateUserAccessKey(String consumeKey,
String consumerSecret,
String messageBody,
URL tokenEndpointURL)
Generate user access key
|
APIListDTO |
getAllAPIs() |
APIListDTO |
getAllAPIs(String tenantDomain) |
ApplicationListDTO |
getAllApps() |
org.wso2.carbon.automation.test.utils.http.client.HttpResponse |
getAllDocumentationOfAPI(String apiName,
String version,
String provider)
Method to retrieve all documents of given api
|
org.wso2.carbon.automation.test.utils.http.client.HttpResponse |
getAllPaginatedPublishedAPIs(String tenant,
int start,
int end)
Gell all paginated published apis for a given tenant
|
org.wso2.carbon.automation.test.utils.http.client.HttpResponse |
getAllPaginatedPublishedAPIs(String tenant,
String start,
String end)
Get all paginated published API for a given tenant
|
APIListDTO |
getAllPublishedAPIs()
Get all published apis
|
org.wso2.carbon.automation.test.utils.http.client.HttpResponse |
getAllPublishedAPIs(String tenant)
Get all published APIs for tenant
|
SubscriptionListDTO |
getAllSubscriptionsOfApplication(String applicationId)
Get All subscriptions for an application.
|
TagListDTO |
getAllTags()
Get all API tags
|
APIDTO |
getAPI(String apiId)
Get api which are published
|
org.wso2.carbon.automation.test.utils.http.client.HttpResponse |
getApiEndpointUrls(String apiName,
String version,
String provider)
Method to retrieve all endpoint urls
|
APIListDTO |
getAPIListFromStoreAsAnonymousUser(String tenantDomain) |
APIListDTO |
getAPIs(int offset,
int limit)
Get APIs for the given limit and offset values
|
APIListDTO |
getAPIsFilteredWithTags(String apiTag)
Get the web page with filtered API when click the API Tag link
|
ApplicationDTO |
getApplicationById(String applicationId)
Get application by ID
|
ApiResponse<ApplicationKeyDTO> |
getApplicationKeysByKeyType(String applicationId,
String keyType)
Regenerate consumer secret of an application
|
org.wso2.carbon.automation.test.utils.http.client.HttpResponse |
getApplicationPage()
Get application page
|
org.wso2.carbon.automation.test.utils.http.client.HttpResponse |
getApplications()
Get application
|
org.wso2.carbon.automation.test.utils.http.client.HttpResponse |
getComment(String commentId,
String apiId,
String tenantDomain)
Get Comment from given API
|
APIListDTO |
getPrototypedAPIs(String tenant)
Get Prototyped APIs in Store
|
org.wso2.carbon.automation.test.utils.http.client.HttpResponse |
getPublishedAPIsByApplication(String applicationName)
Get application details by given name
|
org.wso2.carbon.automation.test.utils.http.client.HttpResponse |
getPublishedAPIsByApplicationId(String applicationName,
int applicationId)
Get application details by given name
|
org.wso2.carbon.automation.test.utils.http.client.HttpResponse |
getRecentlyAddedAPIs(String tenant,
String limit)
Get recently added APIs by tenant
|
org.wso2.carbon.automation.test.utils.http.client.HttpResponse |
getSubscribedAPIs(String applicationName)
Get subscribed Apis by application name
|
org.wso2.carbon.automation.test.utils.http.client.HttpResponse |
getSubscribedAPIs(String applicationName,
String domain)
Get subscribed APIs for the specific Application
|
SubscriptionListDTO |
getSubscription(String apiId,
String applicationId,
String apiType,
String groupId) |
String |
getSwaggerByID(String apiId,
String tenantDomain) |
org.wso2.carbon.automation.test.utils.http.client.HttpResponse |
getSwaggerDocument(String userName,
String apiName,
String apiVersion,
String executionMode)
This method will return swagger document of given api name and version
|
org.wso2.carbon.automation.test.utils.http.client.HttpResponse |
isCommentActivated()
Check whether commenting is enabled
|
org.wso2.carbon.automation.test.utils.http.client.HttpResponse |
isRatingActivated()
Check if API rating activated
|
org.wso2.carbon.automation.test.utils.http.client.HttpResponse |
logout()
API Store logout
|
org.wso2.carbon.automation.test.utils.http.client.HttpResponse |
regenerateConsumerSecret(String clientId)
Regenerate consumer secret.
|
ApiResponse<ApplicationKeyReGenerateResponseDTO> |
regenerateConsumerSecret(String applicationId,
String keyType)
Regenerate consumer secret of an application
|
org.wso2.carbon.automation.test.utils.http.client.HttpResponse |
removeAPISubscription(String API,
String version,
String provider,
String applicationId)
Unsubscribe from API
|
org.wso2.carbon.automation.test.utils.http.client.HttpResponse |
removeAPISubscriptionByApplicationName(String API,
String version,
String provider,
String applicationName)
Unsubscribe from API by application name
|
org.wso2.carbon.automation.test.utils.http.client.HttpResponse |
removeAPISubscriptionByName(String API,
String version,
String provider,
String appName)
Unsubscribe from API
|
void |
removeApplicationById(String applicationId)
Delete application by Id
|
org.wso2.carbon.automation.test.utils.http.client.HttpResponse |
removeComment(String commentId,
String apiId)
Remove comment in given API
|
org.wso2.carbon.automation.test.utils.http.client.HttpResponse |
removeRating(String apiId,
String tenantDomain)
Remove rating from given API
|
org.wso2.carbon.automation.test.utils.http.client.HttpResponse |
removeRatingFromAPI(String apiName,
String version,
String provider)
Remove rating of given API
|
org.wso2.carbon.automation.test.utils.http.client.HttpResponse |
removeSubscription(String subscriptionId) |
SearchResultListDTO |
searchAPIs(String query)
Retrieve the APIs according to the search query in Publisher.
|
SearchResultListDTO |
searchAPIs(String query,
String tenantDomain)
Retrieve the APIs according to the search query in Publisher.
|
APIListDTO |
searchPaginatedAPIs(int limit,
int offset,
String tenantDomain,
String query)
Get the web page with filtered API when click the API Tag link
|
org.wso2.carbon.automation.test.utils.http.client.HttpResponse |
signUp(String userName,
String password,
String firstName,
String lastName,
String email)
API Store sign up
|
org.wso2.carbon.automation.test.utils.http.client.HttpResponse |
signUpforTenant(String userName,
String password,
String claims)
API Store sign up
|
org.wso2.carbon.automation.test.utils.http.client.HttpResponse |
signUpWithOrganization(String userName,
String password,
String firstName,
String lastName,
String email,
String organization)
API Store sign up with organization
|
SubscriptionDTO |
subscribeToAPI(String apiID,
String appID,
String tier) |
org.wso2.carbon.automation.test.utils.http.client.HttpResponse |
subscribeToAPI(SubscriptionRequest subscriptionRequest)
Subscribe and API.
|
org.wso2.carbon.automation.test.utils.http.client.HttpResponse |
updateApplication(String applicationOld,
String applicationNew,
String callbackUrlNew,
String descriptionNew,
String tier)
Update given application
|
org.wso2.carbon.automation.test.utils.http.client.HttpResponse |
updateApplicationById(int applicationId,
String applicationOld,
String applicationNew,
String callbackUrlNew,
String descriptionNew,
String tier)
Update given application
|
org.wso2.carbon.automation.test.utils.http.client.HttpResponse |
updateApplicationByID(String applicationId,
String appName,
String description,
String throttleTier,
ApplicationDTO.TokenTypeEnum tokenType) |
org.wso2.carbon.automation.test.utils.http.client.HttpResponse |
updateClientApplication(String application,
String keyType,
String authorizedDomains,
String retryAfterFailure,
String jsonParams,
String callbackUrl)
Update given Auth application
|
org.wso2.carbon.automation.test.utils.http.client.HttpResponse |
updateClientApplicationById(String applicationId,
ApplicationDTO applicationDTO)
Update given Auth application
|
ApiResponse<ApplicationKeyDTO> |
updateKeys(String applicationId,
String keyType,
ApplicationKeyDTO applicationKeyDTO)
Regenerate consumer secret of an application
|
void |
waitForSwaggerDocument(String userName,
String apiName,
String apiVersion,
String expectedResponse,
String executionMode)
Wait for swagger document until its updated.
|
public ApIsApi apIsApi
public ApplicationsApi applicationsApi
public SubscriptionsApi subscriptionIndividualApi
public ApplicationKeysApi applicationKeysApi
public CommentsApi commentsApi
public RatingsApi ratingsApi
public TagsApi tagsApi
public SdKsApi sdKsApi
public ApiKeysApi apiKeysApi
public UnifiedSearchApi unifiedSearchApi
public static final String appName
public static final String callBackURL
public static final String tokenScope
public static final String appOwner
public static final String grantType
public static final String username
public static final String password
public String storeURL
public String tenantDomain
@Deprecated public RestAPIStoreImpl()
public RestAPIStoreImpl(String username, String password, String tenantDomain, String storeURL)
public org.wso2.carbon.automation.test.utils.http.client.HttpResponse createApplication(String appName, String description, String throttleTier, ApplicationDTO.TokenTypeEnum tokenType)
public org.wso2.carbon.automation.test.utils.http.client.HttpResponse createApplicationWithCustomAttribute(String appName, String description, String throttleTier, ApplicationDTO.TokenTypeEnum tokenType, Map<String,String> attribute)
public org.wso2.carbon.automation.test.utils.http.client.HttpResponse deleteApplication(String applicationId)
public ApplicationListDTO getAllApps() throws ApiException
ApiExceptionpublic org.wso2.carbon.automation.test.utils.http.client.HttpResponse updateApplicationByID(String applicationId, String appName, String description, String throttleTier, ApplicationDTO.TokenTypeEnum tokenType)
public org.wso2.carbon.automation.test.utils.http.client.HttpResponse createSubscription(String apiId, String applicationId, String subscriptionTier)
public SubscriptionListDTO getSubscription(String apiId, String applicationId, String apiType, String groupId) throws ApiException
ApiExceptionpublic org.wso2.carbon.automation.test.utils.http.client.HttpResponse removeSubscription(String subscriptionId) throws ApiException
ApiExceptionpublic ApplicationKeyDTO generateKeys(String applicationId, String validityTime, String callBackUrl, ApplicationKeyGenerateRequestDTO.KeyTypeEnum keyTypeEnum, ArrayList<String> scopes, List<String> grantTypes) throws ApiException
ApiExceptionpublic APIKeyDTO generateAPIKeys(String applicationId, String keyType, int validityPeriod) throws ApiException
ApiExceptionpublic ApiResponse<ApplicationKeyDTO> updateKeys(String applicationId, String keyType, ApplicationKeyDTO applicationKeyDTO) throws Exception
applicationId - - ID of the applicationkeyType - - PRODUCTION or SANDBOXapplicationKeyDTO - - application DTO to be updatedApiException - - throws if update keys fails.Exceptionpublic ApiResponse<ApplicationKeyReGenerateResponseDTO> regenerateConsumerSecret(String applicationId, String keyType) throws Exception
applicationId - - ID of the applicationkeyType - - PRODUCTION or SANDBOXApiException - - throws if consumer secret re-generationx fails.Exceptionpublic ApiResponse<ApplicationKeyDTO> getApplicationKeysByKeyType(String applicationId, String keyType) throws Exception
applicationId - - ID of the applicationkeyType - - PRODUCTION or SANDBOXApiException - - throws if get application keys fails.Exceptionpublic APIDTO getAPI(String apiId) throws ApiException
ApiException - - throws if API information retrieval fails.public APIListDTO getAllPublishedAPIs() throws APIManagerIntegrationTestException
APIManagerIntegrationTestException - - throws if getting publish APIs failspublic APIListDTO getAllAPIs() throws ApiException
ApiExceptionpublic APIListDTO getAllAPIs(String tenantDomain) throws ApiException
ApiExceptionpublic SearchResultListDTO searchAPIs(String query) throws ApiException
query - - The query on which the APIs needs to be filteredApiExceptionpublic SearchResultListDTO searchAPIs(String query, String tenantDomain) throws ApiException
query - - The query on which the APIs needs to be filteredtenantDomain - - The tenant domain on which the APIs needs to be filteredApiExceptionpublic APIListDTO getAPIs(int offset, int limit) throws ApiException
offset - starting positionlimit - maximum number of APIs to returnApiExceptionpublic ApplicationDTO getApplicationById(String applicationId) throws ApiException
ApiException - - throws if get application fails.public org.wso2.carbon.automation.test.utils.http.client.HttpResponse getPublishedAPIsByApplication(String applicationName) throws APIManagerIntegrationTestException
applicationName - - application nameAPIManagerIntegrationTestException - - throws if get application by name failspublic org.wso2.carbon.automation.test.utils.http.client.HttpResponse getPublishedAPIsByApplicationId(String applicationName, int applicationId) throws APIManagerIntegrationTestException
applicationName - - application nameAPIManagerIntegrationTestException - - throws if get application by name failspublic org.wso2.carbon.automation.test.utils.http.client.HttpResponse addRating(String apiId, Integer rating, String tenantDomain) throws ApiException
apiId - - api Idrating - - api ratingtenantDomain - - tenant domainApiException - - throws if rating of api failspublic org.wso2.carbon.automation.test.utils.http.client.HttpResponse removeRating(String apiId, String tenantDomain)
apiId - - api IdtenantDomain - - tenant domainApiException - - throws if remove rating failspublic org.wso2.carbon.automation.test.utils.http.client.HttpResponse removeRatingFromAPI(String apiName, String version, String provider) throws APIManagerIntegrationTestException
apiName - - name of apiversion - - api versionprovider - - provider of apiAPIManagerIntegrationTestException - - Throws if remove API rating failspublic org.wso2.carbon.automation.test.utils.http.client.HttpResponse isRatingActivated()
throws APIManagerIntegrationTestException
APIManagerIntegrationTestException - - Throws if rating status cannot be retrievedpublic org.wso2.carbon.automation.test.utils.http.client.HttpResponse getAllDocumentationOfAPI(String apiName, String version, String provider) throws APIManagerIntegrationTestException
apiName - - name of apiversion - - api versionprovider - - provider of apiAPIManagerIntegrationTestException - - throws if retrieval of API documentation failspublic org.wso2.carbon.automation.test.utils.http.client.HttpResponse getApiEndpointUrls(String apiName, String version, String provider) throws APIManagerIntegrationTestException
public org.wso2.carbon.automation.test.utils.http.client.HttpResponse getAllPaginatedPublishedAPIs(String tenant, String start, String end) throws APIManagerIntegrationTestException
tenant - - tenant namestart - - starting indexend - - closing indexAPIManagerIntegrationTestException - - throws if paginated apis cannot be retrieved.public org.wso2.carbon.automation.test.utils.http.client.HttpResponse cleanUpApplicationRegistrationByApplicationId(String applicationId, String keyType) throws APIManagerIntegrationTestException, ApiException
applicationId - - application IDkeyType - - key typeAPIManagerIntegrationTestException - - throws if paginated apis cannot be retrieved.ApiExceptionpublic org.wso2.carbon.automation.test.utils.http.client.HttpResponse getAllPaginatedPublishedAPIs(String tenant, int start, int end) throws APIManagerIntegrationTestException
tenant - - tenant namestart - - starting indexend - - ending indexAPIManagerIntegrationTestExceptionpublic org.wso2.carbon.automation.test.utils.http.client.HttpResponse getAllPublishedAPIs(String tenant) throws APIManagerIntegrationTestException
tenant - - tenant nameAPIManagerIntegrationTestException - - throws if published API retrieval fails.public ApplicationDTO addApplication(String application, String tier, String callbackUrl, String description) throws ApiException
application - - application nametier - - throttling tiercallbackUrl - - callback urldescription - - description of appAPIManagerIntegrationTestException - - if fails to add applicationApiExceptionpublic org.wso2.carbon.automation.test.utils.http.client.HttpResponse addApplicationWithGroup(String application, String tier, String callbackUrl, String description, String groupId) throws APIManagerIntegrationTestException
application - - application nametier - - throttling tiercallbackUrl - - callback urldescription - - description of appgroupId - - group to shareAPIManagerIntegrationTestException - - if fails to add applicationpublic ApplicationDTO addApplicationWithTokenType(String application, String tier, String callbackUrl, String description, String tokenType) throws ApiException
application - - application nametier - - throttling tiercallbackUrl - - callback urldescription - - description of apptokenType - - token type of app (JWT ot DEFAULT)APIManagerIntegrationTestException - - if fails to add applicationApiExceptionpublic org.wso2.carbon.automation.test.utils.http.client.HttpResponse getApplications()
throws APIManagerIntegrationTestException
APIManagerIntegrationTestException - - throws if applications cannot be retrieved.public void removeApplicationById(String applicationId) throws ApiException
applicationId - - application IdAPIManagerIntegrationTestException - - throws if remove application failsApiExceptionpublic org.wso2.carbon.automation.test.utils.http.client.HttpResponse updateApplication(String applicationOld, String applicationNew, String callbackUrlNew, String descriptionNew, String tier) throws APIManagerIntegrationTestException
applicationOld - - application name oldapplicationNew - - new application namecallbackUrlNew - - call back urldescriptionNew - - updated descriptiontier - - access tierAPIManagerIntegrationTestException - - throws if update application failspublic org.wso2.carbon.automation.test.utils.http.client.HttpResponse updateApplicationById(int applicationId,
String applicationOld,
String applicationNew,
String callbackUrlNew,
String descriptionNew,
String tier)
throws APIManagerIntegrationTestException
applicationOld - - application name oldapplicationNew - - new application namecallbackUrlNew - - call back urldescriptionNew - - updated descriptiontier - - access tierAPIManagerIntegrationTestException - - throws if update application failspublic org.wso2.carbon.automation.test.utils.http.client.HttpResponse updateClientApplication(String application, String keyType, String authorizedDomains, String retryAfterFailure, String jsonParams, String callbackUrl) throws APIManagerIntegrationTestException
application - auth application namekeyType - type of the keyauthorizedDomains - authorized domainsretryAfterFailure - retry after failjsonParams - json parameters for grant typecallbackUrl - call back urlAPIManagerIntegrationTestException - APIManagerIntegrationTestException - throws if update application failpublic org.wso2.carbon.automation.test.utils.http.client.HttpResponse updateClientApplicationById(String applicationId, ApplicationDTO applicationDTO)
applicationId - auth application idapplicationDTO - DTO of the applicationAPIManagerIntegrationTestException - APIManagerIntegrationTestException - throws if update application failpublic org.wso2.carbon.automation.test.utils.http.client.HttpResponse regenerateConsumerSecret(String clientId) throws APIManagerIntegrationTestException
clientId - Consumer Key of an application for which consumer secret need to be regenerate.APIManagerIntegrationTestException - Throws if regeneration of consumer secret fail.public SubscriptionListDTO getAllSubscriptionsOfApplication(String applicationId) throws ApiException
applicationId - applicationApiException - Throws if an error occurred when getting subscriptions.public org.wso2.carbon.automation.test.utils.http.client.HttpResponse getSubscribedAPIs(String applicationName) throws APIManagerIntegrationTestException
applicationName - - Application NameAPIManagerIntegrationTestExceptionpublic org.wso2.carbon.automation.test.utils.http.client.HttpResponse getSubscribedAPIs(String applicationName, String domain) throws APIManagerIntegrationTestException
applicationName - - Name of the Application of API in storeAPIManagerIntegrationTestExceptionpublic org.wso2.carbon.automation.test.utils.http.client.HttpResponse removeAPISubscription(String API, String version, String provider, String applicationId) throws APIManagerIntegrationTestException
API - - name of apiversion - - api versionprovider - - provider nameapplicationId - - application idAPIManagerIntegrationTestException - - Throws if unsubscription failspublic org.wso2.carbon.automation.test.utils.http.client.HttpResponse removeAPISubscriptionByApplicationName(String API, String version, String provider, String applicationName) throws APIManagerIntegrationTestException
API - - name of apiversion - - api versionprovider - - provider nameapplicationName - - application NameAPIManagerIntegrationTestException - - Throws if unsubscription failspublic org.wso2.carbon.automation.test.utils.http.client.HttpResponse removeAPISubscriptionByName(String API, String version, String provider, String appName) throws APIManagerIntegrationTestException
API - - name of apiversion - - api versionprovider - - provider nameappName - - application nameAPIManagerIntegrationTestException - - Throws if unsubscription failspublic TagListDTO getAllTags() throws ApiException
APIManagerIntegrationTestException - - throws if get all tags failsApiExceptionpublic org.wso2.carbon.automation.test.utils.http.client.HttpResponse addComment(String apiId, String comment) throws ApiException
apiId - - api Idcomment - - comment to addApiException - - throws if add comment failspublic org.wso2.carbon.automation.test.utils.http.client.HttpResponse removeComment(String commentId, String apiId) throws ApiException
commentId - - comment IdapiId - - api IdApiException - - throws if remove comment failspublic org.wso2.carbon.automation.test.utils.http.client.HttpResponse getComment(String commentId, String apiId, String tenantDomain) throws ApiException
commentId - - comment IdapiId - - api IdtenantDomain - - tenant domainApiException - - throws if get comment failspublic org.wso2.carbon.automation.test.utils.http.client.HttpResponse isCommentActivated()
throws APIManagerIntegrationTestException
APIManagerIntegrationTestException - - Throws if retrieving comment activation status fails.public org.wso2.carbon.automation.test.utils.http.client.HttpResponse getRecentlyAddedAPIs(String tenant, String limit) throws APIManagerIntegrationTestException
tenant - - tenant namelimit - - limit of result setAPIManagerIntegrationTestException - - throws ifpublic APIListDTO getAPIsFilteredWithTags(String apiTag) throws APIManagerIntegrationTestException, ApiException
apiTag - - API tag the need ti filter the api.waitForSwaggerDocumentAPIManagerIntegrationTestException - - Exception throws when check the Authentication and
HTTPSClientUtils.sendGetRequest() method callApiExceptionpublic APIListDTO searchPaginatedAPIs(int limit, int offset, String tenantDomain, String query) throws ApiException
limit - - number of APIs needs to be returnedoffset - - offset where the APIs needs to be returned should starttenantDomain - - tenant domain of which the APIs to be returnedquery - - query that needs to be passed to the backendApiException - - Exception throws when check the Authentication and
HTTPSClientUtils.sendGetRequest() method callpublic org.wso2.carbon.automation.test.utils.http.client.HttpResponse subscribeToAPI(SubscriptionRequest subscriptionRequest) throws APIManagerIntegrationTestException
subscriptionRequest - -SubscriptionRequest request instance with API subscription information.APIManagerIntegrationTestException - - Exception throws when check the Authentication and
HTTPSClientUtils.doPost() method call.public SubscriptionDTO subscribeToAPI(String apiID, String appID, String tier) throws ApiException
ApiExceptionpublic APIListDTO getAPIListFromStoreAsAnonymousUser(String tenantDomain) throws ApiException
tenantDomain - ApiExceptionpublic org.wso2.carbon.automation.test.utils.http.client.HttpResponse logout()
throws APIManagerIntegrationTestException
public org.wso2.carbon.automation.test.utils.http.client.HttpResponse signUp(String userName, String password, String firstName, String lastName, String email) throws APIManagerIntegrationTestException
userName - - store user namepassword - -store passwordfirstName - - user first namelastName - - user's last nameemail - - user's emailAPIManagerIntegrationTestExceptionpublic org.wso2.carbon.automation.test.utils.http.client.HttpResponse signUpforTenant(String userName, String password, String claims) throws APIManagerIntegrationTestException
userName - - store user namepassword - -store passwordclaims - - tenants claimsAPIManagerIntegrationTestExceptionpublic org.wso2.carbon.automation.test.utils.http.client.HttpResponse signUpWithOrganization(String userName, String password, String firstName, String lastName, String email, String organization) throws APIManagerIntegrationTestException
userName - - store user namepassword - -store passwordfirstName - - user first namelastName - - user's last nameemail - - user's emailorganization - - user's organizationAPIManagerIntegrationTestExceptionpublic APIListDTO getPrototypedAPIs(String tenant) throws APIManagerIntegrationTestException
APIManagerIntegrationTestExceptionpublic void waitForSwaggerDocument(String userName, String apiName, String apiVersion, String expectedResponse, String executionMode) throws IOException, XPathExpressionException
userName - - Name of the api providerapiName - - API NameapiVersion - - API VersionexpectedResponse - - Expected response of the APIexecutionMode - - Mode of the test execution (Standalone or Platform)IOException - - Throws if Swagger document cannot be foundXPathExpressionException - - Throws if Swagger document cannot be foundpublic org.wso2.carbon.automation.test.utils.http.client.HttpResponse getSwaggerDocument(String userName, String apiName, String apiVersion, String executionMode) throws APIManagerIntegrationTestException
userName - - User who request the swagger documentapiName - - Name of the APIapiVersion - - Version of the APIexecutionMode - - Mode of the test execution (Standalone or Platform)APIManagerIntegrationTestException - - Throws if swagger document GET request failspublic org.wso2.carbon.automation.test.utils.http.client.HttpResponse getApplicationPage()
throws APIManagerIntegrationTestException
APIManagerIntegrationTestException - - if fails to get application pagepublic ApiResponse<byte[]> generateSDKUpdated(String apiId, String language) throws ApiException, IOException
apiId - The api id which the sdk should be downloaded.language - The required sdk language.APIManagerIntegrationTestException - if failed to generate the SDKApiExceptionIOExceptionpublic ApiResponse<byte[]> generateSDKUpdated(String apiId, String language, String tenantDomain) throws ApiException, IOException
apiId - The api id which the sdk should be downloaded.language - The required sdk language.tenantDomain - The tenant domain of the sdk to be generatedAPIManagerIntegrationTestException - if failed to generate the SDKApiExceptionIOExceptionpublic org.wso2.carbon.automation.test.utils.http.client.HttpResponse changePassword(String username, String currentPassword, String newPassword) throws APIManagerIntegrationTestException
username - username of the usercurrentPassword - current password of the usernewPassword - new password of the userAPIManagerIntegrationTestException - if failed to change passwordpublic org.wso2.carbon.automation.test.utils.http.client.HttpResponse addApplicationWithCustomAttributes(String application, String tier, String callbackUrl, String description, String applicationAttributes) throws APIManagerIntegrationTestException
application - - application nametier - - throttling tiercallbackUrl - - callback urldescription - - description of appapplicationAttributes - - Json string of custom attributes defined by userAPIManagerIntegrationTestException - - if fails to add applicationpublic String getSwaggerByID(String apiId, String tenantDomain) throws ApiException
ApiExceptionpublic org.wso2.carbon.automation.test.utils.http.client.HttpResponse generateUserAccessKey(String consumeKey, String consumerSecret, String messageBody, URL tokenEndpointURL) throws APIManagerIntegrationTestException
consumeKey - - consumer key of userconsumerSecret - - consumer secret keymessageBody - - message bodytokenEndpointURL - - token endpoint urlAPIManagerIntegrationTestException - - throws if generating APIM access token failsCopyright © 2020 WSO2 Inc. All rights reserved.