This reference project provides a simple example of an API Proxy using a Custom Java Callout.
In this example, the Java code is packaged as a jar, and as such has a separate
pom.xml
file.
-
Java JDK 1.8+
-
Node JS LTS or above
-
Apigee Evaluation Organization
-
Apigee Dependencies downloaded to folder ./java-callout/apigee-lib
LIB_FOLDER="./java-callout/apigee-lib" mkdir -p "./java-callout/apigee-lib" (cd $LIB_FOLDER && curl -O "https://raw.githubusercontent.com/apigee/api-platform-samples/master/doc-samples/java-properties/lib/message-flow-1.0.0.jar") (cd $LIB_FOLDER && curl -O "https://raw.githubusercontent.com/apigee/api-platform-samples/master/doc-samples/java-properties/lib/expressions-1.0.0.jar")
export APIGEE_USER=xxx
export APIGEE_PASS=xxx
export APIGEE_ORG=xxx
mvn clean install -Ptest -ntp