protected Api getApi(String id) throws IOException {
        GetRequest getRequest = new GetRequest(getIndexPrefixWithJoiner() + EsConstants.INDEX_APIS, id);
        GetResponse result = getClient().get(getRequest, RequestOptions.DEFAULT);
        if (result.isExists()) {
            Api api = JSON_MAPPER.readValue(result.getSourceAsString(), Api.class);
            return api;
        } else {
            return null;
        }
    }
Gets the api synchronously.
@param id the api id
@throws IOException
gateway/engine/es/src/main/java/io/apiman/gateway/engine/es/EsRegistry.java