use of org.wso2.carbon.apimgt.gateway.utils.RESTAPIAdminServiceProxy in project carbon-apimgt by wso2.
the class APIGatewayAdmin method deleteApi.
public boolean deleteApi(String apiProviderName, String apiName, String version) throws AxisFault {
RESTAPIAdminServiceProxy restClient = getRestapiAdminClient(MultitenantConstants.SUPER_TENANT_DOMAIN_NAME);
// Delete secure vault alias properties if exists
deleteRegistryProperty(apiProviderName, apiName, version, MultitenantConstants.SUPER_TENANT_DOMAIN_NAME);
String qualifiedName = GatewayUtils.getQualifiedApiName(apiName, version);
return restClient.deleteApi(qualifiedName);
}
use of org.wso2.carbon.apimgt.gateway.utils.RESTAPIAdminServiceProxy in project carbon-apimgt by wso2.
the class APIGatewayAdmin method getDefaultApiForTenant.
public org.wso2.carbon.apimgt.gateway.dto.APIData getDefaultApiForTenant(String apiName, String version, String tenantDomain) throws AxisFault {
RESTAPIAdminServiceProxy restClient = getRestapiAdminClient(tenantDomain);
String qualifiedName = GatewayUtils.getQualifiedDefaultApiName(apiName);
APIData apiData = restClient.getApi(qualifiedName);
return convert(apiData);
}
use of org.wso2.carbon.apimgt.gateway.utils.RESTAPIAdminServiceProxy in project carbon-apimgt by wso2.
the class APIGatewayAdmin method getApiForTenant.
/**
* Get API from the gateway
*
* @param tenantDomain
* @return
* @throws AxisFault
*/
public org.wso2.carbon.apimgt.gateway.dto.APIData getApiForTenant(String apiName, String version, String tenantDomain) throws AxisFault {
RESTAPIAdminServiceProxy restClient = getRestapiAdminClient(tenantDomain);
String qualifiedName = GatewayUtils.getQualifiedApiName(apiName, version);
APIData apiData = restClient.getApi(qualifiedName);
return convert(apiData);
}
use of org.wso2.carbon.apimgt.gateway.utils.RESTAPIAdminServiceProxy in project carbon-apimgt by wso2.
the class APIGatewayAdmin method updateDefaultApiForTenant.
public boolean updateDefaultApiForTenant(String apiName, String version, String apiConfig, String tenantDomain) throws AxisFault {
RESTAPIAdminServiceProxy restClient = getRestapiAdminClient(tenantDomain);
String qualifiedName = GatewayUtils.getQualifiedDefaultApiName(apiName);
return restClient.updateApi(qualifiedName, apiConfig);
}
use of org.wso2.carbon.apimgt.gateway.utils.RESTAPIAdminServiceProxy in project carbon-apimgt by wso2.
the class APIGatewayAdmin method updateApiForInlineScriptForTenant.
/**
* Update the API in the Gateway
*
* @param tenantDomain
* @throws AxisFault
*/
public boolean updateApiForInlineScriptForTenant(String apiName, String version, String apiConfig, String tenantDomain) throws AxisFault {
RESTAPIAdminServiceProxy restClient = getRestapiAdminClient(tenantDomain);
String qualifiedName = GatewayUtils.getQualifiedApiName(apiName, version);
return restClient.updateApi(qualifiedName, apiConfig);
}
Aggregations