Notes:
- Create a database named employee_db in mysql
- Change the database the DB credentials on: webservice/src/main/webapp/WEB-INF/mvc-dispatcher-servlet.xml
- Use postman to test the app since it requires the application/json header Content-Type > application/json Accept > application/json
Testing:
- Listing employees (GET) http://localhost:8080/employee/list
- Creating a employee (POST)
http://localhost:8080/employee/create
expample parameter:
{ "firstName": "Hoston", "lastName": "lindey", "email": "[email protected]", "phone": "90908989899" },
- Deleting a employee(GET) http://localhost:8080/employee/delete/{id}