Operations REST APIs
You can use Operations REST APIs to automate administrative actions
instead of using wsadmin commands. To perform administrative actions for applications running in the
container environment, you must use these APIs.You can use Operations REST
APIs to automate administrative actions.
The Swagger definition for the REST APIs is included with the product. If your installation
includes a web server that hosts the Swagger UI, you can access the Swagger (also known as OpenAPI)
definition for the REST APIs from a URL with the following
format:
https://host_name:port_number/root/ops/explorer
Where host_name is the name of your web server, port_number is
the port number that is used by the web server and root is the context root for
the server. In Business Automation Workflow
on-premises, there is either no context root or it is assigned by the
administrator. In IBM® Cloud Pak for Business
Automation, the
root is bas. For example,
localhost:9080/bas/ops/explorer. For information about
configuring a web server, see Customizing Business Automation Workflow to work with a web server.You can also get the Swagger definition by using the following REST API
call:
GET root/ops/docs The call returns a JSON object that
contains the Swagger definition.Important: To prevent cross site request forgery attacks, REST API operations require
that the HTTP header
BPMCSRFToken is set with every request. For more information,
see Preventing cross site request forgery.