Task 2: Deploying a RuleApp by using the REST API
You deploy a RuleApp and its associated XOM by using the REST API.
About this task
Step 1: Deploying a RuleApp archive
You deploy a RuleApp by using the REST API.
Procedure
Step 2: Adding a XOM resource
You check whether loan-validation-xom.zip is available. If not, you deploy it.
Procedure
- Expand Resources in the navigation pane. If loan-validation-xom.zip is available, skip to step 3.
- On the REST API page, open the /xoms subpage, and select POST - deployResource.
- In Request Body, browse to /data/loan-validation-xom.zip.
- Set the xomname to loan-validation-xom.zip.
- Click Call method.
- On the Explorer tab, the loan-validation-xom.zip/1.0 is listed under Resources.
Step 3: Setting up a ruleset-managed URI with the XOM resource
You add references to the URI of the managed XOM resource by using the REST API.
Procedure
Step 4: Downloading the RuleApp archive
After the RuleApp is deployed, you can download it to an archive.