Spring boot application integrated with mongo atlas and apache kafka running on local.
- Maven
- Java 8
- Sonar (for coverage and static code analysis)
- Start Zookeeper
- Start Kafka server
- Navigate to the employee-management directory
- Execute
mvn spring-boot:run
- The application runs on localhost:8080
- Navigate to the employee-management directory
- Execute
mvn clean test
- Start local sonar server
- Navigate to the employee-management directory
- Execute
mvn sonar:sonar
{id: Integer,
firstName: String,
lastName: String,
designation: String,
department: String,
salary: int}
{id: Integer,
address: String}
Include Basic Authorization header with username : user and password : 123456 (defined in application.properties)
POST /employee Request body - Employee JSON
GET /employee/{ID}
PUT /employee Request body - Employee JSON
DELETE /employee/{ID}
POST /employees Request body - Array of Employee JSON
GET /employees
DELETE /employees
POST /employeeAddress Request body - EmployeeAddress JSON
GET /employeeAddress/{ID}
GET /employee/withAddress/{ID}
GET /employees/withAddress
Defined in application.properties for mongo, kafka and spring security