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

Create Event

Create Event

Use the POST method to publish an event on a deployed topic in RulePoint.

POST Request in JSON Format

Generate a POST request. For example, the following POST request publishes an event in a RulePoint application:
http://localhost:8080/rulepoint/ui/dashboard/lc/74f182af-54ea-4ddd-9c94-49b44d46267f/createEvent/1/1 Accept: application/json Content-Type: application/json Cookie: JSESSIONID=<VALID SESSION ID>
The createEvent REST call uses a deployed topic ID as part of the request URL.

POST Body in JSON Format

The following example shows the request body, which uses an event map:
{ "eventMap": { "feed_title": "XYZ quarterly results announced", "feed_text": "XYZ price goes up by 2%", "lastPubDate": "2013-10-31 12:35:24 Z" } }

POST Response in JSON Format

Returns the response code 200 OK. Returns the error object if an error occurs.
Response Code: 200 OK

POST Request in XML Format

Generate a POST request. For example, the following POST request publishes an event on a deployed topic:
POST http://localhost:8080/rulepoint/ui/dashboard/lc/74f182af-54ea-4ddd-9c94-49b44d46267f/createEvent/1/1 Accept: application/xml Content-Type: application/xml Cookie: JSESSIONID=<VALID SESSION ID>

POST Body in XML Format

The following example shows the request body, which uses an event map:
<createEventDTO> <eventMap> <entry> <key>feed_title</key> <value>XYZ quarterly results announced</value> </entry> <entry> <key>feed_text</key> <value>XYZ price goes up by 2%</value> </entry> <entry> <key>lastPubDate</key> <value>2013-10-31 12:35:24 Z</value> </entry> </eventMap> </createEventDTO>

POST Response in XML Format

Returns the response code 200 OK. Returns the error object if an error occurs.
Response Code: 200 OK

0 COMMENTS

We’d like to hear from you!