Commit 760e43e1 authored by Mahesh Rohra's avatar Mahesh Rohra

Update README.md

parent 79a4f57c
...@@ -28,6 +28,7 @@ CREATE EXTENSION IF NOT EXISTS "uuid-ossp"; ...@@ -28,6 +28,7 @@ CREATE EXTENSION IF NOT EXISTS "uuid-ossp";
CREATE TABLE transaction_recorder(uuid uuid NOT NULL DEFAULT uuid_generate_v1(),offertransactionresponse jsonb NOT NULL,offers jsonb NOT NULL,isprocessed boolean); CREATE TABLE transaction_recorder(uuid uuid NOT NULL DEFAULT uuid_generate_v1(),offertransactionresponse jsonb NOT NULL,offers jsonb NOT NULL,isprocessed boolean);
insert into transaction_recorder VALUES(uuid_generate_v4(), '{"hhid":"54321","transactionId":"a9f71725-ae55-42f2-a2a9-a2d3c84d631c","discountedItemList":[{"itemName":"Coke","itemId":"1","price":11.007},{"itemName":"Thumpsup","itemId":"2","price":14.202}],"discountDesc":"10 Percent"}','[{"id":"1","idType":"UPC","offerId":12,"storeId":"A","terminal":"B","preCondition":"AND"},{"id":"2","idType":"CUST","offerId":13,"storeId":"C","terminal":"B","preCondition":"OR"}]', true);
select * from transaction_recorder; select * from transaction_recorder;
...@@ -36,7 +37,12 @@ select * from transaction_recorder; ...@@ -36,7 +37,12 @@ select * from transaction_recorder;
Create following topic Name : transactionRecord Create following topic Name : transactionRecord
```bash ```bash
When we get following rest end point from OfferTransactionService with transactionId.
Access service using below URL. Please pass the UUID after transaction/ which is there in database.
http://localhost:8200/transaction/<UUID-FROM-DATABASE>
Forex-
http://localhost:8200/transaction/997a9ed1-fb45-46d6-baee-0230f1da93dd http://localhost:8200/transaction/997a9ed1-fb45-46d6-baee-0230f1da93dd
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment