Skip to content

An example of java crud / rest api with hibernate, MySQL, springboot, lombok.

Notifications You must be signed in to change notification settings

lazarospsa/javarestapimysql

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

javarestapimysql

Donate

An example of java crud / rest api with hibernate, MySQL, springboot, lombok.

Run on Server -> Apache Tomcat 9

Endpoints:

Get (/user/users) http://localhost:8080/usermanagment/user/users

return all users from mysql database

Get (/user/user/{id}) http://localhost:8080/usermanagment/user/user/1

return a specific user by id

Post (/user/add) http://localhost:8080/usermanagment/user/add

posting as json/application a new user

{ "usedId":1, "userEmail":"lazaros@psarokostas.gr", "userName":"lazaros", "userPhone":"6912345678" }

Delete (/user/delete/{id}) http://localhost:8080/usermanagment/user/delete/4

delete a specific user by id

Put (/user/update) http://localhost:8080/usermanagment/user/update

update a json/application user data to database

{ "usedId":1, "userEmail":"lazaros1@psarokostas.gr", "userName":"lazaros", "userPhone":"6912345678" }

About

An example of java crud / rest api with hibernate, MySQL, springboot, lombok.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages