Skip to content

small rest api of a supermarket chain with relational databases with spring boot, mysql databases

Notifications You must be signed in to change notification settings

hennyfeliz/spring-boot-supermarket-chain-mysql-db

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spring boot Supermarket chain crud - MySQL, JPA, Hibernate.

Simple crud for handling and administration of articles with database and all the services of the CRUD concept.

Using Maven Command: Download the project source code. Go to the root folder of the project using command prompt and run the command. mvn spring-boot:run

  • Port: http://localhost:8080
  • Don't forget to change the MySQL user settings in application properties

Methods of use [you can use Postman to try it]

* EMPLEADOS *

  1. Create : HTTP Method: POST.
POST - http://localhost:8080/cadena_tiendas/postEmpleados
  1. Read :

HTTP Method: GET.

GET -  http://localhost:8080/cadena_tiendas/empleados

HTTP Method: GET [for specific id].

GET -  http://localhost:8080/cadena_tiendas/empleado/{id}
  1. Update : HTTP Method: PUT.
PUT - http://localhost:8080/cadena_tiendas/empledo/{id}
  1. Delete : HTTP Method: DELETE.
DELETE  - http://localhost:8080/cadena_tiendas/empledo/{id}

* TIENDAS *

  1. Create : HTTP Method: POST.
POST - http://localhost:8080/cadena_tiendas/postTiendas
  1. Read :

HTTP Method: GET.

GET -  http://localhost:8080/cadena_tiendas/tiendas

HTTP Method: GET [for specific id].

GET -  http://localhost:8080/cadena_tiendas/tienda/{id}
  1. Update : HTTP Method: PUT.
PUT - http://localhost:8080/cadena_tiendas/tienda/{id}
  1. Delete : HTTP Method: DELETE.
DELETE  - http://localhost:8080/cadena_tiendas/tienda/{id}

* PRODUCTOS *

  1. Create : HTTP Method: POST.
POST - http://localhost:8080/cadena_tiendas/postProductos
  1. Read :

HTTP Method: GET.

GET -  http://localhost:8080/cadena_tiendas/productos

HTTP Method: GET [for specific id].

GET -  http://localhost:8080/cadena_tiendas/producto/{id}
  1. Update : HTTP Method: PUT.
PUT - http://localhost:8080/cadena_tiendas/producto/{id}
  1. Delete : HTTP Method: DELETE.
DELETE  - http://localhost:8080/cadena_tiendas/producto/{id}

About

small rest api of a supermarket chain with relational databases with spring boot, mysql databases

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages