A basic Spring boot project to read a CSV file and display its data.
-
GET /api/customers - returns the list of all customers in the CSV file. e.g.
http://localhost:8091/api/customers
-
GET /api/customers/{customerId} - returns a single customer by ID. e.g.
http://localhost:8091/api/customers/1Ef7b82A4CAAD10
- Unit tests that cover the core logic.
- Docker Image Builder Script
- Maven Build Command:
mvn clean install
- Run Jar Command:
java -jar target/RestPocProject-0.0.1-SNAPSHOT.jar
mvn clean package
docker build -t restpocproject .
docker run -p 8091:8091 restpocproject
docker ps
docker stop <container_id>
docker rm <container_id>
docker images
docker rmi restpocproject