The project is microservice development using spring boot 3 along with below components
- Eureka Service Registry
- Spring cloud config server
- Spring cloud Gateway
- Spring Webclient(Fluent API)
- Distributed tracing with Zipkin
- Unit testing with Mockito Junit Jupiter
- Code coverage with Jacoco
go to root directory and execute below command
docker-compose up -d
Go to the respective project directory in each project and execute below command
./mvnw spring-boot:run
POST /department/add
Parameter | Type | Description |
---|---|---|
id |
string |
Required. department id |
name |
string |
Required. department name |
POST /employee/add
Parameter | Type | Description |
---|---|---|
id |
string |
Required. employee id |
departmentId |
string |
Required. department id |
firstName |
string |
Required. employee first name |
lastName |
string |
employee last name |
dateOfBirth |
string |
employee date of birth |
GET /department/{id}
Parameter | Type | Description |
---|---|---|
id |
string |
Required. department id |
GET /employee/{id}
Parameter | Type | Description |
---|---|---|
id |
string |
Required. employee id |
GET /department/all
GET /employee/department/{id}
Parameter | Type | Description |
---|---|---|
id |
string |
Required. department id |
GET /department/all/department-employee
Run below commands to generate code coverage reports clean jacoco:prepare-agent install jacoco:report
step by step explation of project development
https://www.devhabit.org/post/spring-boot-3-microservice-spring-cloud