use of org.wso2.carbon.apimgt.gateway.utils.RESTAPIAdminServiceProxy in project carbon-apimgt by wso2.
the class APIGatewayAdmin method getDefaultApi.
public org.wso2.carbon.apimgt.gateway.dto.APIData getDefaultApi(String apiName, String version) throws AxisFault {
RESTAPIAdminServiceProxy restClient = getRestapiAdminClient(MultitenantConstants.SUPER_TENANT_DOMAIN_NAME);
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 deleteDefaultApi.
public boolean deleteDefaultApi(String apiName, String version) throws AxisFault {
RESTAPIAdminServiceProxy restClient = getRestapiAdminClient(MultitenantConstants.SUPER_TENANT_DOMAIN_NAME);
String qualifiedName = GatewayUtils.getQualifiedDefaultApiName(apiName);
return restClient.deleteApi(qualifiedName);
}
use of org.wso2.carbon.apimgt.gateway.utils.RESTAPIAdminServiceProxy in project carbon-apimgt by wso2.
the class APIGatewayAdmin method updateApiForInlineScript.
public boolean updateApiForInlineScript(String apiName, String version, String apiConfig) throws AxisFault {
RESTAPIAdminServiceProxy restClient = getRestapiAdminClient(MultitenantConstants.SUPER_TENANT_DOMAIN_NAME);
String qualifiedName = GatewayUtils.getQualifiedApiName(apiName, version);
return restClient.updateApi(qualifiedName, apiConfig);
}
use of org.wso2.carbon.apimgt.gateway.utils.RESTAPIAdminServiceProxy in project carbon-apimgt by wso2.
the class APIGatewayAdmin method getApi.
public org.wso2.carbon.apimgt.gateway.dto.APIData getApi(String apiName, String version) throws AxisFault {
RESTAPIAdminServiceProxy restClient = getRestapiAdminClient(MultitenantConstants.SUPER_TENANT_DOMAIN_NAME);
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 updateApiForTenant.
/**
* Update the API in the Gateway
*
* @param tenantDomain
* @throws AxisFault
*/
public boolean updateApiForTenant(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