https://github.com/jorneycr/coffee_spring-boot_api
Small API RESTFull
https://github.com/jorneycr/coffee_spring-boot_api
docker-compose java mysql spring-boot
Last synced: 2 months ago
JSON representation
Small API RESTFull
- Host: GitHub
- URL: https://github.com/jorneycr/coffee_spring-boot_api
- Owner: jorneycr
- Created: 2023-07-24T19:40:01.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-07-24T19:45:47.000Z (almost 3 years ago)
- Last Synced: 2025-03-29T12:47:02.948Z (over 1 year ago)
- Topics: docker-compose, java, mysql, spring-boot
- Language: Java
- Homepage:
- Size: 223 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# spring-api-rest-coffeshop
## Base de datos MySql
**Se utilizo mysql con la version *8.0.28*, el nombre de la base de datos utilizada es _coffeshop_, para cambiar la base de datos, abrimos el proyecto y buscamos la carpeta src/main/resorces dentro hay un archivo llamado application.properties, la linea para cambiar nuestra bd es spring.datasource.url, en la parte que pone coffeshop colocamos el nombre de la nueva base de datos que queramos utilizar**
Cuando se ejecuta el proyecto automaticamente, crea dos tablas en la base de datos.
## Nota
**Puerto de MySql = 3306**
**Version de apache requerida = 11.0.13**
Links de descarga de requisitos para abrir el proyecto
- _JDK 11_ = *https://www.oracle.com/java/technologies/javase/jdk11-archive-downloads.html*
- _MySql 8_ = *https://dev.mysql.com/downloads/mysql/*
- _Spring Tools_ = *https://spring.io/tools* *Opcional
# End-Points Products
**Method POST**
- Add Product = *http://localhost:8080/api/products*
**Method GET**
- Get Products = *http://localhost:8080/api/products*
**Method DELETE**
- Delete Product = *http://localhost:8080/api/products/{id}*
**Method PUT**
- Edit Product = *http://localhost:8080/api/products/{id}*
# End-Poinst Orders
**Method POST**
- Add Order = *http://localhost:8080/api/orders*
**Method GET**
- Get Orders = *http://localhost:8080/api/orders*
**Method PUT**
- Edit Order = *http://localhost:8080/api/orders/{id}*