예제 #1
0
 /**
  * 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);
 }
예제 #2
0
 public void addDefaultAPI(
     String apiProviderName, String apiName, String version, String apiConfig) throws AxisFault {
   RESTAPIAdminClient restClient = new RESTAPIAdminClient(apiProviderName, apiName, version);
   restClient.addDefaultAPI(apiConfig);
 }
예제 #3
0
 public void addPrototypeApiScriptImpl(
     String apiProviderName, String apiName, String version, String apiConfig) throws AxisFault {
   RESTAPIAdminClient restClient = new RESTAPIAdminClient(apiProviderName, apiName, version);
   restClient.addPrototypeApiScriptImpl(apiConfig);
 }
예제 #4
0
 /**
  * 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);
 }
예제 #5
0
 public void deleteDefaultApi(String apiProviderName, String apiName, String version)
     throws AxisFault {
   RESTAPIAdminClient restClient = new RESTAPIAdminClient(apiProviderName, apiName, version);
   restClient.deleteDefaultApi();
 }
예제 #6
0
 public void updateApiForInlineScript(
     String apiProviderName, String apiName, String version, String apiConfig) throws AxisFault {
   RESTAPIAdminClient restClient = new RESTAPIAdminClient(apiProviderName, apiName, version);
   restClient.updateApiForInlineScript(apiConfig);
 }