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 |
GraphQlPoliciesApi |
graphQlPoliciesApi |
KeyManagersCollectionApi |
keyManagersCollectionApi |
static String |
password |
RatingsApi |
ratingsApi |
SdKsApi |
sdKsApi |
String |
storeURL |
SubscriptionsApi |
subscriptionIndividualApi |
TagsApi |
tagsApi |
String |
tenantDomain |
static String |
testNameProperty |
ThrottlingPoliciesApi |
throttlingPoliciesApi |
static String |
tokenScope |
TopicsApi |
topicsApi |
UnifiedSearchApi |
unifiedSearchApi |
static String |
username |
UsersApi |
usersApi |
WebhooksApi |
webhooksApi |
| Constructor and Description |
|---|
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
|
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,
String category,
String replyTo)
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
|
ApiResponse<ApplicationDTO> |
applicationsPostWithHttpInfo(String application,
String tier,
String description)
Add application
|
org.wso2.carbon.automation.test.utils.http.client.HttpResponse |
changePassword(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 |
createApplicationWithOrganization(String appName,
String description,
String throttleTier,
ApplicationDTO.TokenTypeEnum tokenType,
List<String> groups) |
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) |
ApiResponse<Void> |
downloadWSDLSchemaDefinitionOfAPI(String apiId,
String environmentName) |
org.wso2.carbon.automation.test.utils.http.client.HttpResponse |
editComment(String commentId,
String apiId,
String comment,
String category)
Get Comment from given API
|
APIKeyDTO |
generateAPIKeys(String applicationId,
String keyType,
int validityPeriod,
String permittedIP,
String permittedReferer) |
ApplicationKeyDTO |
generateKeys(String applicationId,
String validityTime,
String callBackUrl,
ApplicationKeyGenerateRequestDTO.KeyTypeEnum keyTypeEnum,
ArrayList<String> scopes,
List<String> grantTypes) |
ApplicationKeyDTO |
generateKeys(String applicationId,
String validityTime,
String callBackUrl,
ApplicationKeyGenerateRequestDTO.KeyTypeEnum keyTypeEnum,
ArrayList<String> scopes,
List<String> grantTypes,
String keyManager) |
ApplicationKeyDTO |
generateKeys(String applicationId,
String validityTime,
String callBackUrl,
ApplicationKeyGenerateRequestDTO.KeyTypeEnum keyTypeEnum,
List<String> scopes,
List<String> grantTypes,
Map<String,Object> additionalProperties,
String keyManager) |
ApplicationKeyDTO |
generateKeysWithAdditionalProperties(String applicationId,
String validityTime,
String callBackUrl,
ApplicationKeyGenerateRequestDTO.KeyTypeEnum keyTypeEnum,
List<String> scopes,
List<String> grantTypes,
Map<String,Object> additionalProperties) |
ApiResponse<ApplicationKeyDTO> |
generateKeysWithApiResponse(String applicationId,
String validityTime,
String callBackUrl,
ApplicationKeyGenerateRequestDTO.KeyTypeEnum keyTypeEnum,
List<String> scopes,
List<String> grantTypes,
Map<String,Object> additionalProperties,
String keyManager) |
ApiResponse<ApplicationKeyDTO> |
generateKeysWithHttpInfo(String applicationId,
String validityTime,
String callBackUrl,
ApplicationKeyGenerateRequestDTO.KeyTypeEnum keyTypeEnum,
ArrayList<String> scopes,
List<String> grantTypes,
String keyManager) |
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
|
String |
getAccessToken() |
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.
|
SubscriptionListDTO |
getAllSubscriptionsOfApplication(String applicationId,
String tenantDomain)
Get All subscriptions for an application.
|
TagListDTO |
getAllTags()
Get all API tags
|
APIDTO |
getAPI(String apiId)
Get api which are published
|
APIDTO |
getAPI(String apiId,
String tenantDomain)
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
|
ApplicationDTO |
getApplicationById(String applicationId,
String tenantDomain)
Get application by ID
|
ApplicationKeyDTO |
getApplicationKeyByKeyMappingId(String applicationId,
String keyMappingId) |
ApplicationKeyListDTO |
getApplicationKeysByAppId(String jwtAppId) |
ApiResponse<ApplicationKeyDTO> |
getApplicationKeysByKeyType(String applicationId,
String keyType)
Regenerate consumer secret of an application
|
ApplicationKeyListDTO |
getApplicationOauthKeys(String applicationUUID,
String tenantDomain) |
ThrottlingPolicyListDTO |
getApplicationPolicies(String tenantDomain) |
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,
boolean includeCommentorInfo,
Integer limit,
Integer offset)
Get Comment from given API
|
org.wso2.carbon.automation.test.utils.http.client.HttpResponse |
getComments(String apiId,
String tenantDomain,
boolean includeCommentorInfo,
Integer limit,
Integer offset)
Get all the comments from given API
|
org.wso2.carbon.automation.test.utils.http.client.HttpResponse |
getGraphQLComplexityResponse(String apiId)
Method to retrieve the GraphQL Complexity Details
|
org.wso2.carbon.automation.test.utils.http.client.HttpResponse |
getGraphQLSchemaTypeListResponse(String apiId)
Method to retrieve the GraphQL Schema Type List
|
KeyManagerListDTO |
getKeyManagers() |
KeyManagerListDTO |
getKeyManagers(String tenantDomain) |
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 |
getReplies(String commentId,
String apiId,
String tenantDomain,
boolean includeCommentorInfo,
Integer limit,
Integer offset)
Get replies of a comment from given API
|
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 |
getTopics(String apiId,
String tenantDomain) |
org.wso2.carbon.automation.test.utils.http.client.HttpResponse |
getWebhooks(String apiId,
String applicationId,
String tenantDomain) |
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
|
ApplicationKeyDTO |
mapConsumerKeyWithApplication(String consumerKey,
String consumerSecret,
String appid,
String keyManager) |
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
|
ApplicationKeyReGenerateResponseDTO |
regenerateSecretByKeyMappingId(String applicationId,
String keyMappingId)
Regenerate Consumer Secret by key mapping ID
|
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(SubscriptionDTO subscriptionDTO) |
void |
revokeAPIKey(String applicationId,
String apiKey) |
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
|
void |
setAccessToken(String accessToken) |
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
|
SubscriptionDTO |
subscribeToAPI(String apiID,
String appID,
String tier) |
SubscriptionDTO |
subscribeToAPI(String apiID,
String appID,
String tier,
String tenantDomain) |
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 |
updateApplicationByID(String applicationId,
String appName,
String description,
String throttleTier,
ApplicationDTO.TokenTypeEnum tokenType,
List<String> groups)
Update shared Application by ID with the organization
|
ApplicationKeyDTO |
updateApplicationKeyByKeyMappingId(String applicationId,
String keyMappingId,
ApplicationKeyDTO applicationKeyDTO) |
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
|
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 static final String testNameProperty
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 KeyManagersCollectionApi keyManagersCollectionApi
public GraphQlPoliciesApi graphQlPoliciesApi
public ThrottlingPoliciesApi throttlingPoliciesApi
public UsersApi usersApi
public TopicsApi topicsApi
public WebhooksApi webhooksApi
public String storeURL
public String tenantDomain
public RestAPIStoreImpl(String username, String password, String tenantDomain, String storeURL)
public String getAccessToken()
public void setAccessToken(String accessToken)
public org.wso2.carbon.automation.test.utils.http.client.HttpResponse createApplication(String appName, String description, String throttleTier, ApplicationDTO.TokenTypeEnum tokenType) throws APIManagerIntegrationTestException
public org.wso2.carbon.automation.test.utils.http.client.HttpResponse createApplicationWithOrganization(String appName, String description, String throttleTier, ApplicationDTO.TokenTypeEnum tokenType, List<String> groups)
public org.wso2.carbon.automation.test.utils.http.client.HttpResponse createApplicationWithCustomAttribute(String appName, String description, String throttleTier, ApplicationDTO.TokenTypeEnum tokenType, Map<String,String> attribute) throws APIManagerIntegrationTestException
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 updateApplicationByID(String applicationId, String appName, String description, String throttleTier, ApplicationDTO.TokenTypeEnum tokenType, List<String> groups)
public org.wso2.carbon.automation.test.utils.http.client.HttpResponse createSubscription(String apiId, String applicationId, String subscriptionTier) throws APIManagerIntegrationTestException
public SubscriptionListDTO getSubscription(String apiId, String applicationId, String apiType, String groupId) throws ApiException
ApiExceptionpublic org.wso2.carbon.automation.test.utils.http.client.HttpResponse removeSubscription(SubscriptionDTO subscriptionDTO) throws ApiException, APIManagerIntegrationTestException
public ApplicationKeyDTO generateKeys(String applicationId, String validityTime, String callBackUrl, ApplicationKeyGenerateRequestDTO.KeyTypeEnum keyTypeEnum, ArrayList<String> scopes, List<String> grantTypes) throws ApiException, APIManagerIntegrationTestException
public ApplicationKeyDTO generateKeys(String applicationId, String validityTime, String callBackUrl, ApplicationKeyGenerateRequestDTO.KeyTypeEnum keyTypeEnum, List<String> scopes, List<String> grantTypes, Map<String,Object> additionalProperties, String keyManager) throws ApiException, APIManagerIntegrationTestException
public ApplicationKeyDTO generateKeysWithAdditionalProperties(String applicationId, String validityTime, String callBackUrl, ApplicationKeyGenerateRequestDTO.KeyTypeEnum keyTypeEnum, List<String> scopes, List<String> grantTypes, Map<String,Object> additionalProperties) throws ApiException, APIManagerIntegrationTestException
public ApiResponse<ApplicationKeyDTO> generateKeysWithApiResponse(String applicationId, String validityTime, String callBackUrl, ApplicationKeyGenerateRequestDTO.KeyTypeEnum keyTypeEnum, List<String> scopes, List<String> grantTypes, Map<String,Object> additionalProperties, String keyManager) throws ApiException
ApiExceptionpublic APIKeyDTO generateAPIKeys(String applicationId, String keyType, int validityPeriod, String permittedIP, String permittedReferer) throws ApiException
ApiExceptionpublic void revokeAPIKey(String applicationId, String apiKey) 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 ApplicationKeyReGenerateResponseDTO regenerateSecretByKeyMappingId(String applicationId, String keyMappingId) throws ApiException
applicationId - ID of the applicationkeyMappingId - Keymapping IdExceptionApiExceptionpublic APIDTO getAPI(String apiId) throws ApiException
ApiException - - throws if API information retrieval fails.public APIDTO getAPI(String apiId, String tenantDomain) 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 ApplicationDTO getApplicationById(String applicationId, String tenantDomain) 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, APIManagerIntegrationTestException
application - - application nametier - - throttling tiercallbackUrl - - callback urldescription - - description of appAPIManagerIntegrationTestException - - if fails to add applicationApiExceptionpublic ApiResponse<ApplicationDTO> applicationsPostWithHttpInfo(String application, String tier, String description) throws ApiException, APIManagerIntegrationTestException
application - - application nametier - - throttling tierdescription - - description of appAPIManagerIntegrationTestException - - if fails to add applicationApiExceptionpublic ApplicationDTO addApplicationWithTokenType(String application, String tier, String callbackUrl, String description, String tokenType) throws ApiException, APIManagerIntegrationTestException
application - - application nametier - - throttling tierdescription - - 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 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 SubscriptionListDTO getAllSubscriptionsOfApplication(String applicationId, String tenantDomain) throws ApiException
applicationId - applicationtenantDomain - requestedTenantApiException - 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, String category, String replyTo) throws ApiException
apiId - - api Idcomment - - comment to addcategory - - category of the commentreplyTo - - comment id of the root comment to add repliesApiException - - throws if add comment failspublic org.wso2.carbon.automation.test.utils.http.client.HttpResponse getComment(String commentId, String apiId, String tenantDomain, boolean includeCommentorInfo, Integer limit, Integer offset) throws ApiException
commentId - - comment IdapiId - - api IdtenantDomain - - tenant domainlimit - - for paginationoffset - - for paginationApiException - - throws if get comment failspublic org.wso2.carbon.automation.test.utils.http.client.HttpResponse getComments(String apiId, String tenantDomain, boolean includeCommentorInfo, Integer limit, Integer offset) throws ApiException
apiId - - api IdtenantDomain - - tenant domainlimit - - for paginationoffset - - for paginationApiException - - throws if get comment failspublic org.wso2.carbon.automation.test.utils.http.client.HttpResponse getTopics(String apiId, String tenantDomain)
public org.wso2.carbon.automation.test.utils.http.client.HttpResponse getWebhooks(String apiId, String applicationId, String tenantDomain) throws ApiException
ApiExceptionpublic org.wso2.carbon.automation.test.utils.http.client.HttpResponse getReplies(String commentId, String apiId, String tenantDomain, boolean includeCommentorInfo, Integer limit, Integer offset) throws ApiException
commentId - - comment IdapiId - - api IdtenantDomain - - tenant domainlimit - - for paginationoffset - - for paginationApiException - - throws if get comment failspublic org.wso2.carbon.automation.test.utils.http.client.HttpResponse editComment(String commentId, String apiId, String comment, String category) throws ApiException
commentId - - comment IdapiId - - api Idcomment - - comment to addcategory - - category of the commentApiException - - throws if get 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 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 SubscriptionDTO subscribeToAPI(String apiID, String appID, String tier) throws ApiException, APIManagerIntegrationTestException
public SubscriptionDTO subscribeToAPI(String apiID, String appID, String tier, String tenantDomain) throws ApiException, APIManagerIntegrationTestException
public 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 APIListDTO getPrototypedAPIs(String tenant) throws APIManagerIntegrationTestException
APIManagerIntegrationTestExceptionpublic 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 currentPassword, String newPassword) throws ApiException
currentPassword - current password of the usernewPassword - new password of the userApiException - if failed to change passwordpublic 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 failspublic ApiResponse<Void> downloadWSDLSchemaDefinitionOfAPI(String apiId, String environmentName) throws ApiException
ApiExceptionpublic KeyManagerListDTO getKeyManagers() throws ApiException
ApiExceptionpublic KeyManagerListDTO getKeyManagers(String tenantDomain) throws ApiException
ApiExceptionpublic ApplicationKeyDTO getApplicationKeyByKeyMappingId(String applicationId, String keyMappingId) throws ApiException
ApiExceptionpublic ApplicationKeyDTO updateApplicationKeyByKeyMappingId(String applicationId, String keyMappingId, ApplicationKeyDTO applicationKeyDTO) throws ApiException
ApiExceptionpublic ApplicationKeyListDTO getApplicationKeysByAppId(String jwtAppId) throws ApiException
ApiExceptionpublic ApplicationKeyDTO mapConsumerKeyWithApplication(String consumerKey, String consumerSecret, String appid, String keyManager) throws ApiException
ApiExceptionpublic org.wso2.carbon.automation.test.utils.http.client.HttpResponse getGraphQLComplexityResponse(String apiId) throws ApiException
apiId - apiId of the APIApiExceptionpublic org.wso2.carbon.automation.test.utils.http.client.HttpResponse getGraphQLSchemaTypeListResponse(String apiId) throws ApiException
apiId - apiId of the APIApiExceptionpublic ThrottlingPolicyListDTO getApplicationPolicies(String tenantDomain) throws ApiException
ApiExceptionpublic ApplicationKeyDTO generateKeys(String applicationId, String validityTime, String callBackUrl, ApplicationKeyGenerateRequestDTO.KeyTypeEnum keyTypeEnum, ArrayList<String> scopes, List<String> grantTypes, String keyManager) throws ApiException, APIManagerIntegrationTestException
public ApiResponse<ApplicationKeyDTO> generateKeysWithHttpInfo(String applicationId, String validityTime, String callBackUrl, ApplicationKeyGenerateRequestDTO.KeyTypeEnum keyTypeEnum, ArrayList<String> scopes, List<String> grantTypes, String keyManager) throws ApiException
ApiExceptionpublic ApplicationKeyListDTO getApplicationOauthKeys(String applicationUUID, String tenantDomain) throws ApiException
ApiExceptionCopyright © 2022 WSO2 Inc. All rights reserved.