Simple Spring Boot Restful CRUD application with Hibernate and Oracle database connection
Follow these steps to run the project locally:
-
Clone the repository:
git clone [repository_url]
-
Navigate to the project directory:
cd [project-directory]
-
Build the project:
mvn clean install
-
Run the project:
mvn spring-boot:run
-
Access the application:
Once the application is running, you can access it at:
http://localhost:8080
GET /api/v1/teacher/
GET /api/v1/teacher/{id}
Parameter | Type | Description |
---|---|---|
id |
int |
Required. Id of teacher to fetch |
POST /api/v1/teacher/addTeacher
Parameter | Type | Description |
---|---|---|
id |
int |
Required |
lastname |
String |
Required |
firstname |
String |
Required |
dateOfBirth |
LocalDate |
Required |
placeOfBirth |
String |
Required |
DELETE /api/v1/teacher/{id}
Parameter | Type | Description |
---|---|---|
id |
int |
Required. Id of teacher to delete |
http://localhost:8080/swagger-ui/index.html