Skip to content

Latest commit

 

History

History
110 lines (82 loc) · 1.96 KB

File metadata and controls

110 lines (82 loc) · 1.96 KB

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}