The swagger can be used directly for tests.
http://localhost:8080/swagger-ui.html#/employee-controller`
The any account should be created firstly,
curl -X POST "http://localhost:8080/api/employee/add" -H "accept: */*" -H "Content-Type: application/json" -d "{ \"createdDate\": \"2021-08-04T18:18:22.705Z\", \"department\": \"string\", \"employeeSalary\": 0, \"id\": 0, \"lastModifiedDate\": \"2021-08-04T18:18:22.705Z\", \"officeLocation\": \"string\", \"userAge\": 0, \"userEmail\": \"string\", \"userName\": \"string\", \"userPhone\": \"string\", \"userSurname\": \"string\"}"
The tests can be run anytime.
mvn clean install
For further reference, please consider the following sections:
- Official Apache Maven documentation
- Spring Boot Maven Plugin Reference Guide
- Create an OCI image
- Spring Boot DevTools
- Spring Web
The following guides illustrate how to use some features concretely: