GithubHelp home page GithubHelp logo

tparthur / ms-course-youtube Goto Github PK

View Code? Open in Web Editor NEW

This project forked from digitallab-academy/ms-course-youtube

0.0 0.0 0.0 186 KB

Fuentes del curso de Microservicios con Springboot y Spring Cloud para canal de Youtube

Home Page: https://www.youtube.com/watch?v=80zkdQJ2y4c&list=PLxy6jHplP3Hi_W8iuYSbAeeMfaTZt49PW

Java 97.81% TSQL 2.19%

ms-course-youtube's Introduction

Course Microservice : Spring Boot & Spring Cloud

Requirements

  • Java 11
  • Spring Boot 2
  • Gradle
  • CURL
  • JQ
  • Docker

Services

Config Service

http://localhost:8090/customer-service/default

Discovery Service (Eureka)

http://localhost:8099/

Microservice Product

GET

curl -X GET http://localhost:8091/products  -H 'Accept: application/json' | jq '.'

POST

curl  --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"}
}'

Microservice Customer

GET

curl -X GET http://localhost:8092/customers    -H 'Accept: application/json' | jq '.'

POST

curl --request POST 'localhost:8092/customers' \
--header 'Content-Type: application/json' \
--data-raw '
    {
        "numberID":"40408083",
        "firstName": "Luis",
        "lastName": "rodriguez",
        "email": "[email protected]",
        "photoUrl": "",
        "region": {
            "id": 1
        }
    }
'

Microservice Shopping

GET curl -X GET http://localhost:8093/invoices/1 -H 'Accept: application/json' | jq '.'

POST

curl  --request POST 'localhost:8093/invoices' \
--header 'Content-Type: application/json' \
--data-raw '{

    "numberInvoice": "002",
    "description": "invoice store",
    "customerId": 1,
    "items": [
        {
            "quantity": 1,
            "priceItem": 178.89,
            "productId": 1
        },

        {
            "quantity": 2,
            "priceItem": 40.06,
            "productId": 3
        }
    ]
}'

Gateway Service

Customer

curl -X GET http://localhost:8080/customers    -H 'Accept: application/json' | jq '.'

Products

curl -X GET http://localhost:8080/products  -H 'Accept: application/json' | jq '.'

Invoices

curl -X GET http://localhost:8080/invoices/1 -H 'Accept: application/json' | jq '.'

ms-course-youtube's People

Contributors

edumar111 avatar ehuacachi 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.