Giter VIP home page Giter VIP logo

coordishop's Introduction

코드 빌드 및 어플리케이션 실행

  • 빌드
gradle build
  • 실행
gradle bootRun

테스트/실행 방법

카테고리 별 최저가격 브랜드와 상품 가격, 총액을 조회하는 API

curl -X 'GET' \
 'localhost:8080/price/minPriceProducts'

단일 브랜드로 모든 카테고리 상품을 구매할 때 최저가격에 판매하는 브랜드와 카테고리의 상품가격, 총액을 조회하는 API

curl -X 'GET' \
 'localhost:8080/price/minPriceBrandInfo'

카테고리 이름으로 최저, 최고 가격 브랜드와 상품 가격을 조회하는 API

curl -X 'GET' \
 'localhost:8080/price/minMaxPriceProductInfo/{카테고리명}'

상품 추가 API

curl -X 'POST' 'localhost:8080/product/add' \
--header 'Content-Type: application/json' \
--data '{
    "categoryName" : "상의",
    "brand" : "A",
    "price" : 9000
}'

상품 가격 변경 API

curl -X 'POST' 'localhost:8080/product/updatePrice' \
--header 'Content-Type: application/json' \
--data '{
    "id": 1,
    "price" : 15000
}'

상품 삭제 API

curl -X 'POST' 'localhost:8080/product/remove' \
--header 'Content-Type: application/json' \
--data '{
    "id": 1
}'

브랜드 추가 API

curl -X 'POST' 'localhost:8080/brand/add' \
--header 'Content-Type: application/json' \
--data '{
    "name" : "J"
}'

브랜드 수정 API

curl -X 'POST' 'localhost:8080/brand/add' \
--header 'Content-Type: application/json' \
--data '{
    "name" : "J"
}'

브랜드 삭제 API

curl -X 'POST' 'localhost:8080/brand/remove' \
--header 'Content-Type: application/json' \
--data '{
    "id" : 1
}'

coordishop's People

Contributors

dreamer210 avatar jacque210 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.