Skip to content

Latest commit

 

History

History
43 lines (36 loc) · 2.43 KB

File metadata and controls

43 lines (36 loc) · 2.43 KB

springboot-microservice-boilerplate

Microservice boilerplate application developed with Spring Boot

Technologies

  • Spring Boot
  • Spring Data
  • Spring Cloud
  • Spring Cloud Gateway
  • Discovery Server ( Netflix Eureka Server )
  • Apache Kafka / Zookeeper / Kafdrop
  • Load Balancer
  • Circuit Breaker ( resilience4j )
  • MongoDB / Postgresql / Mysql
  • Docker / Docker Compose

Diagram

microservice diagram ss

Setup

  • Enter folder path
  • Run commands orderly:
mvn clean install
docker-compose up -d

Postman Collection

  • Postman collection: /Microservice_App.postman_collection
  • Postman environment: /Microservice_App_Env.postman_environment

Pages and Rest APIs

Route HTTP Verb POST body Description
http://localhost:8080/api/products GET Get all products.
http://localhost:8080/api/products/{id} GET Get product by id.
http://localhost:8080/api/products POST { "name": "product-1", "price": 2750.50, "inStock": true, "stockCount": 100 } Create a new product.
http://localhost:8080/api/orders POST { "orderItemDtoList":[ { "ref": "abb8087b-9b84-4a61-a260-6faabcb97c98", "price": 5500, "quantity": 34 }, { "ref": "abb8087b-9b84-4a61-a260-6faabcb97123", "price": 5500, "quantity": 34 } ] } Create a new order.