To use the REST API tool, you select a resource type, you click a method name, and you pass it the appropriate parameters. When you call the method, the resulting request and response display immediately.
Rule Execution Server REST resources are RuleApps, rulesets, XOM libraries, and XOM resources.
This action opens the panel that displays the request and response elements, such as Request Body, URL Query Parameters, and HTTP Header Parameters.
Some methods do not take a request body.
| Methods | Input format | Resources |
|---|---|---|
| POST and PUT methods | For the methods that require a request body,
the request body uses one of the following formats:
|
For RuleApp and ruleset resources, you must
pass a valid ruleset archive in one of two ways:
|
Use the following table to parameterize your request:
| Methods | Parameters | Parameter templates |
|---|---|---|
| All | The Accept parameter has two predefined values. If you try to enter other values manually, an HTTP Status 406 Not Acceptable warning is displayed. Some methods take parameters for which you can add your own custom values to the predefined values. |
Parameter templates, which are displayed between curled brackets ({}) in the calling URLs, are placeholders. You must specify a value for them because they are mandatory. |
| GET | In some GET methods, no parameters are selected because they are all optional. In this case, you can click Call method directly. |
A panel opens and displays the request and its response.
© Copyright IBM Corporation 1987, 2013. | Terms and conditions for information centers | Feedback
This information center is Built on Eclipse™. (www.eclipse.org)