###To download the active mq and start
- Download ActiveMQ binary from here.[http://activemq.apache.org/download.html]
- Unzip your bundle, and Open Terminal.
- Set the Terminal path to ActiveMQ -> bin
- Write command ./activemq start
- Open http://localhost:8161/admin/
- http://localhost:8080/mqProducer -
- HTTP METHOD: POST
- Sample Json Input:
{ "transactionId": "1", "transactionAmount": "100", "transactionDate": "02-SEP-22", "transactionType": "DR", "transactionStatus": "OK", "description": "ATM WITHDRAWL", "customerId": "1" }
- http://localhost:8080/transaction/getBalance/1
- HTTP METHOD: POST
- http://localhost:8080/customer
- HTTP METHOD:POST
- sample Input -
{ "customerName": "Krisanth S", "customerAddress": "123 Main St", "customerPhone": "123-456-7890", "customerEmail": "[email protected]", "customerZipcode":"1232", "customerCity":"city", "customerState":"state" }
- http://localhost:8080/customer
- HTTP METHOD: PUT
- sample input-
{ "customerName": "Krisanth S", "customerAddress": "123 Main St", "customerPhone": "123-456-7890", "customerEmail": "[email protected]", "customerZipcode": "1232", "customerCity": "NJ", "customerState": "state", "customerId":7 }
- http://localhost:8080/customer/1
- HTTP METHOD: GET