Giter Site home page Giter Site logo

product-service's Introduction

Microservice with Spring Boot & Spring Cloud

License: MIT

Descripción Y Contexto

En este proyecto trabajaremos con Spring Boot y con Spring Cloud. Mediante a estos dos módulos de Spring, crearemos un CRUD REST SERVICE mediante a JPA y al motor de BBDD H2.

Requirements

  • Java 11
  • Spring Boot 2.5.4
  • Gradle
  • H2 Database

Microservice Product

GET

listProduct

--request GET http://localhost:8091/products

listProductCategoryId

--request GET http://localhost:8091/products?categoryId=1

getProduct

--request GET http://localhost:8091/products/1

POST

createProduct

--request POST 'localhost:8091/products' \
--header 'Content-Type: application/json' \
--data-raw '{
        "name":"Wallabee Men'\''s Suede Shoe",
        "description":"Comfort and tendency do not have to be at odds. This suede wallabee style shoe is all you need for marathon work days. With soft suede design and stitched details, it is perfect to combine with jeans",
        "stock":4,
        "price":30,
        "category":{
            "id":1,
            "name": "shoes"
            }
        }'

PUT

updateCustomer

--request PUT 'localhost:8091/products/4' \
--header 'Content-Type: application/json' \
--data-raw '{
        "name":"Wallabee Men'\''s Suede Shoe",
        "description":"Comfort and tendency do not have to be at odds. This suede wallabee style shoe is all you need for marathon work days. With soft suede design and stitched details, it is perfect to combine with jeans",
        "stock":4,
        "price":30,
        "category":{
            "id":1,
            "name": "shoes"
            }
        }'

DELETE

--request DELETE http://localhost:8091/products/1

Autor

Stiward Jherikof Carrillo Ramírez - Desarrollador

Institución Académica

Programa de Ingeniería de Sistemas de la Universidad Francisco de Paula Santander

product-service's People

Contributors

stiwardjherikofcr avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.