use of io.apiman.gateway.api.rest.exceptions.NotAuthorizedException in project apiman by apiman.
the class ApiResourceImpl method retire.
@Override
public void retire(String organizationId, String apiId, String version) throws RegistrationException, NotAuthorizedException {
Api api = new Api();
api.setOrganizationId(organizationId);
api.setApiId(apiId);
api.setVersion(version);
registry.retireApi(api, (IAsyncResultHandler<Void>) result -> {
if (result.isError()) {
throwError(result.getError());
}
});
}
Aggregations