コード例 #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);
 }