In this example, explore the SessionManager APIs
and get all the available applications for an instance. Based on the response, use the
Agent Manager getAgent API to get the PID for the agent
currently running a named application. To explore and test a REST API:
Enter http://host:port/oemanager/ in a browser to access interactive
documentation, and provide the appropriate login credentials when prompted.
Verify that oemanager is the selected Server.
Scroll to SessionManager and expand the
list of available APIs.
Click on GET for the /applications - Get All Applications to expand the description
based on the underlying annotations.
Click Try it out to supply request
parameters and click Execute to retrieve a list of
available applications.
The response body is JSON formatted and the applicationName element provids details about the
deployed applications, including which transports are enabled for the
application and the version information.
Take note of the applicationName for use as the request body to find the Agent
running the application.
Expand the Agent Manager section.
Click /applications/{appName}/agents Get Agents.
Click Try It Out.
Enter the applicationName
returned in the earlier step into the Parameters AppName
field.
Click Execute.
The response returns a PID, for use with API
requests.