Run a Project as a Decision Service

Rules contained in a decision service project are executed by sending a POST request to the following REST endpoint:

  • http://{your_site_interface}/determinations-server/project/v2/{project_name}/{version}

Multiple case can be processed in a single request by sending a POST request to the following REST endpoint:

  • http://{your_site_interface}/determinations-server/project/v2/{project_name}/{version}/batch

Bearer tokens can be acquired from the following OAUTH 2.0 endpoint:

  • http://{your_site_interface}/opa-hub/api/{API_version}/auth

An OpenAPI service description is available from:

  • http://{your_site_interface}/determinations-server/project/v2/{project_name}/{version}/swagger.json

Note that an API client must have the Assessment APIs role on the workspace in order to access OpenAPI services.

Note: These are the endpoints for a decision service project. To view the endpoints for a decision service deployment, see Decision Service Endpoints for REST Assessments.

The specific URLs for your decision service project are available from the run project web page. You can access this page by selecting View REST Details in the Actions menu of a decision service project.

On this page you can use the copy buttons to copy the provided endpoints. You can also change the project version that is displayed using the Version drop-down.

The run project web page for a decision service project showing the URLs to invoke the project via REST

Note that if the project is in a namespace, this will be shown at the top of the page and reflected in the project name in the URLs (in URL-encoded format).

The run project web page for a decision service project in a namespace showing the URLs to invoke the project via REST

Tip: On this page there is also a link that enables you to test the deployment by entering inputs interactively and instantly reviewing the results. You can test the current draft, latest published version or any historical version (that may or may not have been deployed).