- git clone https://github.com/113-GittiGidiyor-Java-Spring-Bootcamp/fifth-homework-hakandrmz.git
- cd fifth-homework-hakandrmz
- mvn spring-boot:run
http://localhost:8080/swagger-ui.html
h2 database user info: http://localhost:8080/h2-console/ username: sa password: password
- Java 8
- H2 Database
- Swagger
- Maven
- Spring Data JPA
- Lombok
- Mapstruct
- Spring Boot
- /bootstrap - load data on start
- /config - swagger configs
- /controller - endpoints
- /dto - data between layers
- /entity - database models
- /exception - specific exceptions
- /mappers - dto to entity mapper
- /repository - for CrudRepository
- /service - service layer between repository and controller
- /utils - error message constants
- POST /api/course/add
- DELETE /api/course/delete/{id}
- PUT /api/course/update
- GET /api/courses
- GET /api/courses/{id}
- GET /logs
- GET /logs/search/{keyword}
- POST /api/student/add
- POST /api/student/add/{courseId}
- DELETE /api/student/delete/{id}
- PUT /api/student/update
- GET /api/students
- GET /api/students/{id}
- GET /api/students/search/{keyword}
- POST /api/instructor/add
- DELETE /api/instructor/delete/{id}
- PUT /api/instructor/update
- GET /api/instructors
- GET /api/instructors/{id}
- PUT /api/instructor/updatesalary/{id}/{salaryRate}
- GET /api/instructor/getSalaryLogsBetweenTwoDate/{firstDate}/{lastDate}
- GET /api/instructor/getSalaryLogs
- GET /api/instructor/getSalaryLogsByInstructorId/{id}
- Student age must be greater than 18 and less than 40
- Number of students must be less than 20
- Instructor phone number must be unique
- Course code is must be unique