Table of Contents

Search

  1. Preface
  2. RulePoint Interfaces
  3. RulePoint Services
  4. Custom Service API
  5. Java Adapter for REST API
  6. RulePoint REST API
  7. Sample XML and JSON Requests and Responses
  8. RulePoint Pluggable Authentication Module
  9. HTTP Request and Response Attributes

Developer Guide

Developer Guide

Deploy Object

Deploy Object

Use the POST method to deploy an object in RulePoint.

POST Request in JSON Format

Generate a POST request. For example, the following POST request deploys an object in a RulePoint application:
POST http://localhost:8080/rulepoint/api/projects/1/deploy Content-Type: application/json Accept: application/json Cookie: JSESSIONID=<VALID_SESSION_ID>

POST Body in JSON Format

{ "topologyId": 1, "itemsToDeploy": [ { "artifactId": "d4dbfd17-4053-446c-83b8-dda9dc3f48c6", "groupNames": [ "Default Source Controller" ] } ] }

POST Response in JSON Format

Returns the object and response code. Returns the error object if an error occurs.
{ "successful": true, "txnId": -1333205577, "dpId": "dff975ab-cf27-45ca-89bc-c3326db69941" }
Response Code : 200 OK

POST Request in XML Format

Generate a POST request. For example, the following POST request deploys an object in a RulePoint application:
POST http://localhost:8080/rulepoint/api/projects/1/deploy Content-Type: application/xml Accept: application/xml Cookie: JSESSIONID=<VALID_SESSION_ID>

POST Body in XML Format

<deploymentRequest>     <itemsToDeploy>         <item>             <artifactId>1fbafd49-d01e-44aa-9bdf-cc95fe2b4383</artifactId>             <groupNames>                 <groupName>Default Source Controller</groupName>             </groupNames>         </item>       </itemsToDeploy>     <topologyId>1</topologyId> </deploymentRequest>

POST Body in XML Format

Returns the object and response code. Returns the error object if an error occurs.
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <deploymentResult> <dpId>e2f97336-e371-4dfe-aa35-a9eb3b9a0bce</dpId> <successful>true</successful> <txnId>-33133660</txnId> </deploymentResult>
Response Code: 200 OK

0 COMMENTS

We’d like to hear from you!