shoppingcart-scala

License: GPL v3

Scala CI

SonarQube

Quality gate

SonarQube Overall Code Summary

Shopping Cart Test Data (product title & price)

Tech:

SBT shell build.

sbt-shell-clean-package-test

Run Sample Cart Calculation via Spec test suite.

shopping-cart-sample-spec

Main class run - prints each valid product info

main-list-products-info

Run Rest API Application

com.siriusxm.example.restApiApplication
http://localhost:8080/product/info?titles=cheerios,cornflakes,frosties,shreddies,weetabix

GET Request End-point (Curl)

shopping-cart-scala % curl -Xcurl -XGET "http://localhost:8080/product/info?titles=cheerios,cornflakes"                            

{"cheerios":8.43,"cornflakes":2.52}

GET Response JSON in Browser (key, value pairs of product_name -> price)

GET-product-info-endpoint