https://github.com/hennyfeliz/spring-boot-supermarket-chain-mysql-db
small rest api of a supermarket chain with relational databases with spring boot, mysql databases
https://github.com/hennyfeliz/spring-boot-supermarket-chain-mysql-db
jpa-hibernate maven mysql postman spring-boot
Last synced: 3 months ago
JSON representation
small rest api of a supermarket chain with relational databases with spring boot, mysql databases
- Host: GitHub
- URL: https://github.com/hennyfeliz/spring-boot-supermarket-chain-mysql-db
- Owner: hennyfeliz
- Created: 2022-08-11T20:01:01.000Z (almost 3 years ago)
- Default Branch: second
- Last Pushed: 2022-11-23T00:34:47.000Z (over 2 years ago)
- Last Synced: 2025-01-27T10:43:41.952Z (5 months ago)
- Topics: jpa-hibernate, maven, mysql, postman, spring-boot
- Language: Java
- Homepage:
- Size: 71.3 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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
```2. 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}
```3. Update :
HTTP Method: PUT.
```
PUT - http://localhost:8080/cadena_tiendas/empledo/{id}
```4. 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
```2. 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}
```3. Update :
HTTP Method: PUT.
```
PUT - http://localhost:8080/cadena_tiendas/tienda/{id}
```4. 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
```2. 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}
```3. Update :
HTTP Method: PUT.
```
PUT - http://localhost:8080/cadena_tiendas/producto/{id}
```4. Delete :
HTTP Method: DELETE.
```
DELETE - http://localhost:8080/cadena_tiendas/producto/{id}
```