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

Update RSS Reader Source

Update RSS Reader Source

Use the PUT method to update an RSS Reader source in RulePoint.

PUT Request in JSON Format

Generate a PUT request. For example, the following PUT request updates an RSS Reader source in a RulePoint application:
PUT http://localhost:8080/rulepoint/api/projects/1/sources/b2448a99-92d3-46b4-9c91-b2055449e801 Accept: application/json Content-Type: application/json Cookie: JSESSIONID=<VALID SESSION ID>

PUT Body in JSON Format

{ "name": "MyRssReaderSource", "valid": true, "sourceType": "rss", "connection": null, "topics": [ { "href": "api/projects/1/topics/906b6070-43ba-4735-99e4-e9a0e4c5fbb5", "title": "RssReaderTopic1", "objectType": "topics", "id": "906b6070-43ba-4735-99e4-e9a0e4c5fbb5" } ], "config": { "username": null, "mostRecentEventDate": "1979-11-24 11:00:00 +0530", "markerId": null, "propertyMetadataMap": null, "url": "http://invr28cep46:8080/CepQeRssServices/hello_dynfeed", "password": null }, "marshaller": { "marshallerClassname": null, "marshallerProperties": {}, "marshallerThreadsafe": false } }

PUT Response in JSON Format

Returns the RSS Reader source object and source code 200 OK. Returns the error object if an error occurs.
{ "id": "b2448a99-92d3-46b4-9c91-b2055449e801", "name": "MyRssReaderSource", "valid": true, "self": { "rel": "self", "href": "api/projects/1/sources/b2448a99-92d3-46b4-9c91-b2055449e801", "title": "MyRssReaderSource", "id": "b2448a99-92d3-46b4-9c91-b2055449e801" }, "actions": [ { "rel": "update", "href": "api/projects/1/sources/b2448a99-92d3-46b4-9c91-b2055449e801", "type": "PUT", "title": "Edit" }, { "rel": "delete", "href": "api/projects/1/sources/b2448a99-92d3-46b4-9c91-b2055449e801", "type": "DELETE", "title": "Delete" }, { "rel": "deploy", "href": "api/projects/1/deploy", "type": "POST", "title": "Deploy" }, { "rel": "createSchedule", "href": "api/projects/1/sources/b2448a99-92d3-46b4-9c91-b2055449e801/schedules", "type": "POST", "title": "Create Schedule" } ], "acl": { "rel": "acl", "href": "api/projects/1/sources/b2448a99-92d3-46b4-9c91-b2055449e801/acl", "title": "acl" }, "owningProject": { "rel": "owningProject", "href": "api/projects/1", "title": "Default Project", "id": "1" }, "type": "sources", "lastModifiedDate": "2013-09-13T20:52:52+05:30", "createDate": "2013-09-13T16:10:38+05:30", "createdBy": "Administrator", "predefined": false, "deployable": true, "deployState": "DRAFT", "force": false, "sourceType": "rss", "sourceTypeDisplayName": "RSS/Atom Source", "schedulable": true, "config": { "username": "", "mostRecentEventDate": "1979-11-24 11:00:00 +0530", "markerId": "", "password": null, "propertyMetadataMap": null, "url": "http://invr28cep46:8080/CepQeRssServices/hello_dynfeed" }, "topics": [ { "href": "api/projects/1/topics/906b6070-43ba-4735-99e4-e9a0e4c5fbb5", "title": "RssReaderTopic1", "objectType": "topics", "id": "906b6070-43ba-4735-99e4-e9a0e4c5fbb5" } ], "marshaller": { "marshallerClassname": null, "marshallerProperties": {}, "marshallerThreadsafe": false } }
Response Code: 200 OK

PUT Request in XML Format

Generate a PUT request. For example, the following PUT request updates an RSS Reader source in a RulePoint application:
PUT http://localhost:8080/rulepoint/api/projects/1/sources/b2448a99-92d3-46b4-9c91-b2055449e801 Accept: application/xml Content-Type: application/xml Cookie: JSESSIONID=<VALID SESSION ID>

PUT Body in XML Format

<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <source> <name>RssReaderSource2</name> <type>sources</type> <config> <entry> <key>username</key> <value/> </entry> <entry> <key>mostRecentEventDate</key> <value>1979-11-24 11:00:00 +0530</value> </entry> <entry> <key>markerId</key> <value/> </entry> <entry> <key>password</key> </entry> <entry> <key>propertyMetadataMap</key> </entry> <entry> <key>url</key> <value>http://invr28cep46:8080/CepQeRssServices/hello_dynfeed</value> </entry> </config> <marshaller> <marshallerProperties/> <marshallerThreadsafe>false</marshallerThreadsafe> </marshaller> <schedulable>true</schedulable> <schedules> <href>api/projects/1/sources/b2448a99-92d3-46b4-9c91-b2055449e801/schedules/4166</href> <id>4166</id> <rel>schedules</rel> </schedules> <sourceType>rss</sourceType> <topics> <topic> <href>api/projects/1/topics/906b6070-43ba-4735-99e4-e9a0e4c5fbb5</href> <id>906b6070-43ba-4735-99e4-e9a0e4c5fbb5</id> <objectType>topics</objectType> <title>RssReaderTopic1</title> </topic> </topics> </source>

PUT Response in XML Format

Returns the RSS Reader source object and response code. Returns the error object if an error occurs.
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <source> <acl> <href>api/projects/1/sources/b2448a99-92d3-46b4-9c91-b2055449e801/acl</href> <rel>acl</rel> <title>acl</title> </acl> <actions> <action> <href>api/projects/1/sources/b2448a99-92d3-46b4-9c91-b2055449e801</href> <rel>update</rel> <title>Edit</title> <type>PUT</type> </action> <action> <href>api/projects/1/sources/b2448a99-92d3-46b4-9c91-b2055449e801</href> <rel>delete</rel> <title>Delete</title> <type>DELETE</type> </action> <action> <href>api/projects/1/deploy</href> <rel>deploy</rel> <title>Deploy</title> <type>POST</type> </action> <action> <href>api/projects/1/sources/b2448a99-92d3-46b4-9c91-b2055449e801/schedules</href> <rel>createSchedule</rel> <title>Create Schedule</title> <type>POST</type> </action> </actions> <id>b2448a99-92d3-46b4-9c91-b2055449e801</id> <links/> <name>RssReaderSource2</name> <owningProject> <href>api/projects/1</href> <id>1</id> <rel>owningProject</rel> <title>Default Project</title> </owningProject> <self> <href>api/projects/1/sources/b2448a99-92d3-46b4-9c91-b2055449e801</href> <id>b2448a99-92d3-46b4-9c91-b2055449e801</id> <rel>self</rel> <title>RssReaderSource2</title> </self> <valid>true</valid> <createDate/> <createdBy>Administrator</createdBy> <deployState>DRAFT</deployState> <deployable>true</deployable> <force>false</force> <lastModifiedDate/> <predefined>false</predefined> <type>sources</type> <config> <entry> <key>username</key> <value/> </entry> <entry> <key>mostRecentEventDate</key> <value>1979-11-24 11:00:00 +0530</value> </entry> <entry> <key>markerId</key> <value/> </entry> <entry> <key>password</key> </entry> <entry> <key>propertyMetadataMap</key> </entry> <entry> <key>url</key> <value>http://invr28cep46:8080/CepQeRssServices/hello_dynfeed</value> </entry> </config> <marshaller> <marshallerProperties/> <marshallerThreadsafe>false</marshallerThreadsafe> </marshaller> <schedulable>true</schedulable> <sourceType>rss</sourceType> <sourceTypeDisplayName>RSS/Atom Source</sourceTypeDisplayName> <topics> <topic> <href>api/projects/1/topics/906b6070-43ba-4735-99e4-e9a0e4c5fbb5</href> <id>906b6070-43ba-4735-99e4-e9a0e4c5fbb5</id> <objectType>topics</objectType> <title>RssReaderTopic1</title> </topic> </topics> </source>
Response Code : 200 OK

0 COMMENTS

We’d like to hear from you!