Skip to content

JonathanM2ndoza/Spring-Boot-Crud-Rest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spring-Boot-Crud-Rest

Example of RESTful API with Spring Boot. Basic logging, JPA and MySQL.

REST and RESTful

  • Representational state transfer (REST) is a style of software architecture. As described in a dissertation by Roy Fielding, REST is an "architectural style" that basically exploits the existing technology and protocols of the Web.

  • RESTful is typically used to refer to web services implementing such an architecture.

Start a mysql server instance with Docker Hub

jmendoza@jmendoza-ThinkPad-T420:~$ docker run -d --name mysql -e MYSQL_ROOT_PASSWORD=root.jmtizure.k201 mysql

Screenshot

Check the ip of your container and update the application.properties file

jmendoza@jmendoza-ThinkPad-T420:~$ docker inspect mysql

Screenshot

Screenshot

Screenshot

Running Spring Boot with IntelliJ

Screenshot

Request (POST) /api/v1/users for Create User with Postman

Screenshot

DB MySQL

Screenshot

Request (GET) /api/v1/users/id for find with Postman

Screenshot

Request (PUT) /api/v1/users/id for update with Postman

Screenshot

DB MySQL

Screenshot

Request (GET) /api/v1/users/ for find all users with Postman

Screenshot

DB MySQL

Screenshot

Request (DELETE) /api/v1/users/id for delete with Postman

Screenshot

Screenshot

DB MySQL

Screenshot

Create a new user and create vehicle

Screenshot

Screenshot

Screenshot

Screenshot

DB MySQL

Screenshot

Get vehicles

Screenshot

Get a person's vehicles

Screenshot

Get a person's vehicles by User Id and Vehicle Id

Screenshot

DB MySQL

Screenshot

Screenshot

About

Example of RESTful API with Spring Boot

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages