@Override
    public void getApiVersion(String organizationId, String apiId, String version, @Suspended AsyncResponse response)
            throws NotAuthorizedException {
        getEngine().getRegistry().getApi(organizationId, apiId, version, result -> {
            if (result.isSuccess()) {
                Api api = result.getResult();
                if (api == null) {
                    response.resume(Response.status(Status.NOT_FOUND).build());
                } else {
                    response.resume(Response.ok(api).build());
                }
            } else {
                throwError(result.getError());
            }
        });
    }
@see IApiResource#getApiEndpoint(java.lang.String, java.lang.String, java.lang.String)
gateway/api/rest-impl/src/main/java/io/apiman/gateway/api/rest/impl/ApiResourceImpl.java