To build and run the application:
docker compose up -d --buildTo parse the esg_data.csv file, run the parse_csv.sh shell script from the root directory of the project. The script will parse the csv file and send the data from each row to the POST /api/customer/ endpoint.
./parse_csv.shAvailable endpoints:
POST: /api/customer/ - Create a customer
curl -X POST --location 'http://localhost:8080/api/customer/cus_12wd21f' \
-H 'Content-Type: application/json' \
-d '{
"name": "Christie Third",
"address1": "3 Tree Lane",
"address2": "",
"town": "Threebury",
"county": "Essex",
"country": "United Kingdom",
"postcode": "E34 4JH"
}'GET: /api/customer/ - Get a customer by reference (will 400 on ref that already exists)
curl --location 'http://localhost:8080/api/customer/cus_12wd11f' \
--header 'Content-Type: application/json'java StringCalculator.java