Creating a REST service
You can create a REST service that you expose to external systems so that they can access
capabilities from a workflow
automation.
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.
Note: The capability that you exposed here as a REST automation
service can be published, and then consumed by applications and automations in Business Automation Studio.
Note: Advanced Properties and Advanced Parameter Properties defined for Business Objects used in
REST Services are neither included in the OpenAPI specification nor validated at runtime.