How selvacoding/student-details works
This Spring Boot application exposes REST operations for creating, listing, retrieving, searching, and deleting students, plus creating and listing schools. The student workflow validates request data, maps DTOs to entities, persists through Spring Data JPA, and maps results back to response DTOs; school operations follow a similar service-and-repository pattern. The README identifies PostgreSQL as the database. The graph reflects the sampled student implementation and indexed school references; unsampled wiring is not inferred.
Main entry points: Student.java Student Entity · StudentController.java Student Controller · SchoolController.java School Controller · StudentService.java Student Service
Components 15
REST API
- Student Controller
restful/src/main/java/com/restful/restful/student/StudentController.java - School Controller
restful/src/main/java/com/restful/restful/school/SchoolController.java - Student DTOs
restful/src/main/java/com/restful/restful/student/StudentDto.java - School DTOs
restful/src/main/java/com/restful/restful/school/SchoolDto.java
Domain Services
- Student Service
restful/src/main/java/com/restful/restful/student/StudentService.java - School Service
restful/src/main/java/com/restful/restful/school/SchoolService.java - Student Mapper
restful/src/main/java/com/restful/restful/student/StudentMapper.java - School Mapper
restful/src/main/java/com/restful/restful/school/SchoolMapper.java
Persistence Model
- Student Repository
restful/src/main/java/com/restful/restful/student/StudentRepository.java - School Repository
restful/src/main/java/com/restful/restful/school/SchoolRepository.java - Student Entity
restful/src/main/java/com/restful/restful/student/Student.java - School Entity
restful/src/main/java/com/restful/restful/school/School.java - Student Profile
restful/src/main/java/com/restful/restful/student_profile/StudentProfile.java
Other components
- API Client
- PostgreSQL
Connections 20
- API Client → Student Controller: calls REST
restful/src/main/java/com/restful/restful/student/StudentController.java - API Client → School Controller: calls REST
- Student Controller → Student Service: delegates to
restful/src/main/java/com/restful/restful/student/StudentController.java - School Controller → School Service: delegates to
restful/src/main/java/com/restful/restful/school/SchoolController.java - Student Controller → Student DTOs: accepts and returns
restful/src/main/java/com/restful/restful/student/StudentController.java - School Controller → School DTOs: accepts and returns
restful/src/main/java/com/restful/restful/school/SchoolController.java - Student Service → Student Mapper: maps data
restful/src/main/java/com/restful/restful/student/StudentService.java - Student Service → Student Repository: queries and saves
restful/src/main/java/com/restful/restful/student/StudentService.java - School Service → School Mapper: maps data
restful/src/main/java/com/restful/restful/school/SchoolService.java - School Service → School Repository: queries and saves
restful/src/main/java/com/restful/restful/school/SchoolService.java - Student Mapper → Student Entity: creates and reads
restful/src/main/java/com/restful/restful/student/StudentMapper.java - Student Mapper → Student DTOs: maps to and from
restful/src/main/java/com/restful/restful/student/StudentMapper.java - School Mapper → School Entity: maps entity
restful/src/main/java/com/restful/restful/school/SchoolMapper.java - School Mapper → School DTOs: maps to and from
restful/src/main/java/com/restful/restful/school/SchoolMapper.java - Student Repository → Student Entity: persists
restful/src/main/java/com/restful/restful/student/StudentRepository.java - School Repository → School Entity: persists
restful/src/main/java/com/restful/restful/school/SchoolRepository.java - Student Repository → PostgreSQL: JPA storage
README.md - School Repository → PostgreSQL: JPA storage
README.md - Student Entity → School Entity: references school
restful/src/main/java/com/restful/restful/student/Student.java - Student Entity → Student Profile: one-to-one relation
restful/src/main/java/com/restful/restful/student/Student.java