Skip to content

leo77777/WebServices_Rest_SpringBoot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 

Repository files navigation

All in one java file !
Using Lombok, Jpa/Hibernate, Spring-Data , Spring Rest-Controler, Spring Data-Rest

All in one java file :

1 . Creation of 2 entities : Students and Laboratories with Lombok
(relationship oneToMany between Laboratories and Students)

  1. Mapping Object/Relational : with Jpa/Hibernate

  2. Creation of interface Repositories on Students and Laboratories : with Spring-Data

  3. Creation of WebServices Rest on Students and Laboratories : with Spring Rest-Controler

  4. Creation of WebServices Rest on Students and Laboratories : with Spring-Data-Rest
    Creation of a projection on Students

  5. Fill the database using studentRepositorie and laboratoryRepository

Rest-controler :
http://localhost:8080/api/students
http://localhost:8080/api/laboratories

image

image

SpringDataRest :
http://localhost:8080/laboratories
http://localhost:8080/students
http://localhost:8080/students/1?projection=p1

image

image

image

About

WebService Rest : using Lombok, Jpa/Hibernate, Spring-Data , Spring Rest-Controler, Spring Data-Rest

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors