@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());
            }
        });
    }
@author Marc Savy {@literal <marc@rhymewithgravy.com>}
gateway/platforms/vertx3/vertx3/src/main/java/io/apiman/gateway/platforms/vertx3/api/ApiResourceImpl.java