JAVA Client Example of Accessing APIManager via simple HTTP Client
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src
.classpath
.gitignore
.project Initial Commit May 21, 2014
README.md
class_diagram.png
class_diagram.ucls
pom.xml

README.md

apimanager-oauth2-client

JAVA Client Example of Accessing APIManager via simple HTTP Client

A simple APIManagerClient provides simple demonstration of Authenticating and accessing protected API Manager Resources using Java and Apache HttpClient constructs.

The intent is to provide base rudiments and for these to be applied and evolved upon for Use Cases which involve accessing MuleSoft API Manager Resources.

For details on the API Manager REST API, please see the API Manager Console, referenced below.

Please see the following for additional reference:

Requirements

The only requirement is to have JAVA SDK and Maven installed and available.
This project can easily be imported into Anypoint Studio or Native Eclipse.

Building

To build the simple project and run the Test Suite, perform the following command:

mvn clean install

Running

To run from command line using Maven perform the following command substituting your Credentials:

mvn exec:java -Dexec.mainClass="org.mulesoft.apimanager.client.APIManagerClient" \
              -Dexec.classpathScope=runtime \
              -Dexec.args="arg0 arg1"

Where:

  • arg0 is your API Manager Account Principal
  • arg1 is your API Manager Account Credentials