Table of Contents

Search

  1. Preface
  2. Introduction to Banking Use Case
  3. Before You Begin
  4. Alerting Customer Account Balance Details
  5. Notifying Stock Price Changes
  6. Notifying Credit Card Transactions
  7. Notifying Free Health Checkups for Account Holders
  8. Alerting the Bank Manager about Customers with a Particular Account Type in a City Overview
  9. Alerting Customer Cash Withdrawal Details
  10. Alerting Stock Prices to DMAT Account Holders
  11. Checking Customer Cash Withdrawal Details for a Specified Duration
  12. Alerting Consequent Credit Card Transaction Rejections
  13. Monitoring Balance Threshold of Customers
  14. Using the Dashboard Functions
  15. Managing Banking Users and Roles
  16. Importing and Exporting Objects
  17. Setting Up High Availability
  18. Using Custom Services
  19. Using the REST APIs
  20. Using Java Adapter for REST API

Banking Use Case Tutorial

Banking Use Case Tutorial

Step 5. Create an SQL Source

Step 5. Create an SQL Source

Use the POST method to create an SQL source. Provide the HTTP request and response attributes for the SQL source.
  1. In the RESTClient
    Request Method
    section, configure the following properties:
    Field
    Value
    Method
    POST
    URL
    http://localhost:8080/rulepoint/api/projects/65536/sources
  2. In the
    Request Body
    section, configure the following property:
    {"name":"Customer Accounts Source","valid":true,"type":"sources","topics":[{"rel":"topics","href":" api/projects/65536/topics/0ac88e0b-f160-4359-ba62-6fea71f81d47 ","title":"customer_accounts","id":"0ac88e0b-f160-4359-ba62-6fea71f81d47"}],"connection":{"rel":"connection","href":"api/projects/65536/connections/5ee466ec-b79e-4bcd-9007-7adbc0f35a03","title":"SQL Connection","id":"5ee466ec-b79e-4bcd-9007-7adbc0f35a03"},"sourceType":"SqlSource","config":{"sql":"select * from customer_info c,account_info a where c.cust_id=a.cust_id","propertyMetadataMap":"[\"java.util.HashMap\",{}]","parameters":"","transactionSize":0,"bufferResult":"no"},"marshaller":{"marshallerProperties":{},"marshallerThreadsafe":false}}
    Replace the href and ID of the topic and connection as per the ID and href of your topic and connection objects. You can obtain the ID from the last section of the href value.
  3. Click
    SEND
    .
  4. Verify that the source is created. The Response Header shows the status as created.
  5. Select the
    Response Body
    tab and copy the href for future REST calls. For example, "href": "api/projects/65536/sources/898d9474-efa0-4102-8fd3-afba72927eec"

0 COMMENTS

We’d like to hear from you!