public class RESTAPIServiceImpl extends Object implements RESTAPIService
RESTAPIService to communication with
WSO2 API Publisher.| Constructor and Description |
|---|
RESTAPIServiceImpl(String publisherEp,
String adminEp,
String restVersion,
boolean inSecure) |
| Modifier and Type | Method and Description |
|---|---|
List<ExtendedAPI> |
exportAPIs(String apiName,
String apiVersion,
String gatewayLabel,
String accessToken,
String projectName) |
ExtendedAPI |
getAPI(String apiName,
String version,
String accessToken)
Gets the API specified by name and version.
|
List<ExtendedAPI> |
getAPIs(String labelName,
String accessToken)
Get APIs of given label.
|
List<ApplicationThrottlePolicyDTO> |
getApplicationPolicies(String accessToken)
Get list of application.
|
List<ClientCertMetadataDTO> |
getClientCertificates(String accessToken)
Get list of client certificates.
|
List<SubscriptionThrottlePolicyDTO> |
getSubscriptionPolicies(String accessToken)
Get list of subsription policies.
|
public List<ExtendedAPI> getAPIs(String labelName, String accessToken)
RESTAPIServicegetAPIs in interface RESTAPIServicelabelName - label nameaccessToken - access tokenRESTAPIService.getAPIs(String, String)public ExtendedAPI getAPI(String apiName, String version, String accessToken)
RESTAPIServicegetAPI in interface RESTAPIServiceapiName - Name of the APIversion - Version of the APIaccessToken - access tokenRESTAPIService.getAPI(String, String, String)public List<ApplicationThrottlePolicyDTO> getApplicationPolicies(String accessToken)
RESTAPIServicegetApplicationPolicies in interface RESTAPIServiceaccessToken - access tokenRESTAPIService.getApplicationPolicies(String)public List<SubscriptionThrottlePolicyDTO> getSubscriptionPolicies(String accessToken)
RESTAPIServicegetSubscriptionPolicies in interface RESTAPIServiceaccessToken - access tokenRESTAPIService.getSubscriptionPolicies(String)public List<ClientCertMetadataDTO> getClientCertificates(String accessToken)
RESTAPIServicegetClientCertificates in interface RESTAPIServiceaccessToken - access tokenRESTAPIService.getClientCertificates(String)public List<ExtendedAPI> exportAPIs(String apiName, String apiVersion, String gatewayLabel, String accessToken, String projectName)
exportAPIs in interface RESTAPIServiceapiName - Name of the APIapiVersion - Version of the APIgatewayLabel - Gateway labelaccessToken - Access token for the API invocationprojectName - Name of the API projectRESTAPIService.exportAPIs(String, String, String, String, String)Copyright © 2024 WSO2. All rights reserved.