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

Retrieve Users

Retrieve Users

Use the GET method to retrieve a user in RulePoint.

GET Request in JSON Format

Generate a GET request. For example, the following GET request retrieves a user in a RulePoint application:
GET http://localhost:8080/rulepoint/api/users Accept: application/json Content-Type: application/json Cookie: JSESSIONID=<VALID SESSION ID>

GET Response in JSON Format

Returns the user object and response code 200 OK. Returns the error object if an error occurs.
{ "total": 2, "count": 2, "items": [ { "id": "32768", "self": { "rel": "self", "href": "/api/users/testuser", "title": "testuser", "id": "testuser" }, "actions": [ { "rel": "update", "href": "/api/users/", "type": "PUT" }, { "rel": "delete", "href": "/api/users/testuser", "type": "DELETE" } ], "lastModifiedDate": "2013-09-18T11:17:25+05:30", "createDate": "2013-09-18T11:17:25+05:30", "createdBy": "Administrator", "userName": "testuser", "password": "*****", "firstName": "test", "middleInitial": "\n \n ", "lastName": "user", "emailAddress": "\n \n ", "jabberAddress": "\n \n ", "roles": [ { "rel": "roles", "href": "/api/roles/test", "id": "test" } ], "enabled": true, "predefined": false, "remoteUser": false }, { "id": "1", "self": { "rel": "self", "href": "/api/users/Administrator", "title": "Administrator", "id": "Administrator" }, "actions": [ { "rel": "update", "href": "/api/users/", "type": "PUT" } ], "lastModifiedDate": "2013-09-17T13:17:10+05:30", "createDate": "2013-09-17T13:17:10+05:30", "createdBy": "Informatica Corp.", "userName": "Administrator", "password": "*****", "firstName": "System", "lastName": "Administrator", "roles": [ { "rel": "roles", "href": "/api/roles/ROLE_ADMIN", "title": "Predefined Admin Role", "id": "ROLE_ADMIN" }, { "rel": "roles", "href": "/api/roles/ROLE_USER", "title": "Predefined User Role", "id": "ROLE_USER" } ], "enabled": true, "predefined": true, "remoteUser": false } ] }
Response Code : 200 OK

0 COMMENTS

We’d like to hear from you!