A simple RESTful API built with Java and Spring Boot for managing student records. This project demonstrates core concepts of backend development including MVC architecture, database integration (H2 in-memory db), and proper dependency management.
- Java 17
- Spring Boot 3 (Spring Web, Spring Data JPA)
- H2 Database (In-memory)
- Maven
- Complete CRUD operations (Create, Read, Update, Delete) for student records.
- In-memory database for easy setup and testing without external dependencies.
- RESTful endpoints following standard naming conventions.
- Java JDK 17 or higher
- Maven 3.6+
- Clone the repository:
git clone https://github.com/sangngng/student-management-api.git
- Navigate to project directory:
cd student-management-api - Run the application using Maven:
mvn spring-boot:run
GET /api/v1/students: Get all studentsPOST /api/v1/students: Create a new student
To access the H2 database console, go to http://localhost:8080/h2-console (JDBC URL: jdbc:h2:mem:studentdb).