/** * Get API from the gateway * * @param tenantDomain * @return * @throws AxisFault */ public org.wso2.carbon.apimgt.gateway.dto.APIData getApiForTenant( String apiProviderName, String apiName, String version, String tenantDomain) throws AxisFault { RESTAPIAdminClient restClient = new RESTAPIAdminClient(apiProviderName, apiName, version); APIData apiData = restClient.getApi(tenantDomain); return convert(apiData); }
public void addDefaultAPI( String apiProviderName, String apiName, String version, String apiConfig) throws AxisFault { RESTAPIAdminClient restClient = new RESTAPIAdminClient(apiProviderName, apiName, version); restClient.addDefaultAPI(apiConfig); }
public void addPrototypeApiScriptImpl( String apiProviderName, String apiName, String version, String apiConfig) throws AxisFault { RESTAPIAdminClient restClient = new RESTAPIAdminClient(apiProviderName, apiName, version); restClient.addPrototypeApiScriptImpl(apiConfig); }
/** * Add the API to the gateway * * @param apiProviderName * @param apiName * @param version * @param apiConfig * @param tenantDomain * @throws AxisFault */ public void addApiForTenant( String apiProviderName, String apiName, String version, String apiConfig, String tenantDomain) throws AxisFault { RESTAPIAdminClient restClient = new RESTAPIAdminClient(apiProviderName, apiName, version); restClient.addApi(apiConfig, tenantDomain); }
public void deleteDefaultApi(String apiProviderName, String apiName, String version) throws AxisFault { RESTAPIAdminClient restClient = new RESTAPIAdminClient(apiProviderName, apiName, version); restClient.deleteDefaultApi(); }
public void updateApiForInlineScript( String apiProviderName, String apiName, String version, String apiConfig) throws AxisFault { RESTAPIAdminClient restClient = new RESTAPIAdminClient(apiProviderName, apiName, version); restClient.updateApiForInlineScript(apiConfig); }