Creating a REST service
You can create a REST service that you expose to external systems so that they can access
capabilities from a process application.
Procedure
To create the REST service:
Results
To invoke a REST service, the appropriate snapshot must be activated.
In the development environment, the REST service on the tip or the default track can be invoked directly. Make sure to make the track the default to open the OpenAPI definition URL in REST service directly.
In a test, staging, or production runtime environment, the consumer can either invoke the REST automation service from the default snapshot or consume the REST automation service from a dedicated snapshot.
You can get the OpenAPI definition for your REST service in a runtime environment from the
following URL:
http://host_name[:port]/[custom_prefix/]automationservices/rest/process_app_acronym/[snapshot_acronym/]rest_service_name/docswhere:
host_nameis the host name.portis the optional port number.custom_prefixis an optional custom prefixprocess_app_acronymis the acronym of the process appsnapshot_acronymis the optional snapshot acronym that, if not specified, resolves to either the tip of the default branch in the development environment, or to the default snapshot in a runtime environment.rest_service_nameis the name of the REST service.
These REST services can be called by all authenticated users by using basic authentication or Zen API key authentication. See Authorizing HTTP requests by using the Zen API key for more information.
Note: If you use IBM Cloud Pak® for Business Automation, what you exposed here as a REST automation service
can be published, and then consumed by applications and automations in Business Automation Studio.