private Optional<ByteBuffer> getSchema(String orgId, String apiId, ApiVersionBean avb) throws IOException {
        // {organizationId}/apis/{apiId}/versions/{version}/definition
        HttpUrl getSchemaUrl = HttpUrl.parse(endpoint)
            .newBuilder()
            .addPathSegment("organizations")
            .addPathSegment(orgId)
            .addPathSegment("apis")
            .addPathSegment(apiId)
            .addPathSegment("versions")
            .addPathSegment(avb.getVersion())
            .addPathSegment("definition")
            .build();

        Request request = buildRequest(getSchemaUrl);
        Call exportCall = client.newCall(request);
        Response getSchemaResponse = exportCall.execute();

        if (getSchemaResponse.code() == 404) {
            return Optional.empty();
        }

        checkStatusOk(getSchemaResponse);

        return Optional.of(ByteBuffer.wrap(getSchemaResponse.body().bytes()));
    }
Enrich pre-2.1.0.Final release.

Adds the missing ApiDefinition field to older Apiman export files.

@author Marc Savy {@literal <marc@blackparrotlabs.io>}
migration-assistant/src/main/java/io/apiman/migration/fix_pre_21/EnrichPre21ExportCommand.java