Skip to content

Simple Spring Boot Restful CRUD application with Hibernate, Oracle database connection

License

Notifications You must be signed in to change notification settings

timi15/hibernateTest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hibernetTest GPLv3 License

Simple Spring Boot Restful CRUD application with Hibernate and Oracle database connection

Run Locally

Follow these steps to run the project locally:

  1. Clone the repository:

    git clone [repository_url]
  2. Navigate to the project directory:

    cd [project-directory]
  3. Build the project:

    mvn clean install
  4. Run the project:

    mvn spring-boot:run
  5. Access the application:

    Once the application is running, you can access it at:

    http://localhost:8080
    

Some API Reference

Get all teachers

  GET /api/v1/teacher/

Get teacher by id

  GET /api/v1/teacher/{id}
Parameter Type Description
id int Required. Id of teacher to fetch

Create teacher

  POST /api/v1/teacher/addTeacher
Parameter Type Description
id int Required
lastname String Required
firstname String Required
dateOfBirth LocalDate Required
placeOfBirth String Required

Delete teacher by id

  DELETE /api/v1/teacher/{id}
Parameter Type Description
id int Required. Id of teacher to delete

For API document using OpenAPI UI

  http://localhost:8080/swagger-ui/index.html

Authors

License

GNU GPLv3

About

Simple Spring Boot Restful CRUD application with Hibernate, Oracle database connection

Topics

Resources

License

Stars

Watchers

Forks

Languages