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

Log In

Log In

POST Request in JSON Format

To log in to RulePoint using JSON, you might use the following request header and response on wire:
POST http://invrw28cep14:8080/rulepoint/dtlogin Content-Type: application/x-www-form-urlencoded Accept: */* j_password=Administrator1&j_username=Administrator

POST Response in JSON Format

The login returns the following information:
{ "id": "894b2948-ce82-4e0a-9302-267d3482ae25", "name": "jmsconnection", "valid": true, "self": { "rel": "self", "href": "api/projects/1/connections/894b2948-ce82-4e0a-9302-267d3482ae25", "title": "jmsconnection", "id": "894b2948-ce82-4e0a-9302-267d3482ae25" }, "actions": [ { "rel": "update", "href": "api/projects/1/connections/894b2948-ce82-4e0a-9302-267d3482ae25", "type": "PUT", "title": "Edit" }, { "rel": "delete", "href": "api/projects/1/connections/894b2948-ce82-4e0a-9302-267d3482ae25", "type": "DELETE", "title": "Delete" } ], "acl": { "rel": "acl", "href": "api/projects/1/connections/894b2948-ce82-4e0a-9302-267d3482ae25/acl", "title": "acl" }, "owningProject": { "rel": "owningProject", "href": "api/projects/1", "title": "Default Project", "id": "1" }, "type": "connections", "lastModifiedDate": "2013-08-23T15:17:58+05:30", "createDate": "2013-08-23T15:17:58+05:30", "createdBy": "Administrator", "predefined": false, "deployable": true, "deployState": "DRAFT", "force": false, "connectionType": "jmsConnection", "connectionTypeDisplayName": "JMS Connection", "config": { "packagePrefixes": "", "jmsConnectionFactory": "ConnectionFactory", "location": "tcp://invr28cep46:61616", "contextFactory": "org.apache.activemq.jndi.ActiveMQInitialContextFactory", "userName": "", "password": null } }
You can then use the sessionId to make any subsequent REST calls.
Response Code: 200 OK

0 COMMENTS

We’d like to hear from you!