This service application provides endpoints for uploading and getting a csv file with a predefined format.
- Java 11
- Spring Boot 2.7.0
- Maven
- JUnit 5 and Mockito for unit tests
- H2 in-memory db used for data storage
- Docker for containerization
Clone the project
git clone https://github.com/onurcelikeng/gerimedica-case-study.git
Go to project directory
cd gerimedica-case-study-main
Run the build.sh and start.sh script
sh build.sh
sh start.sh
Open web browser and go to the swagger endpoint
http://localhost:8080/swagger-ui/index.html?configUrl=/v3/api-docs/swagger-config#/
For sample requests, import postman collection json (.\postman\Gerimedica CSV Application.postman_collection.json) to the postman application. Run endpoints with the following order.
1 Upload the data
2 Fetch all data
3 Fetch by code
4 Delete all data
H2 database admin login
http://localhost:8080/h2-console/login.jsp