Skip to content

REST API with event sourcing for online shop written in Scala and Akka

License

Notifications You must be signed in to change notification settings

BartekBH/akka-shop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Available Routes

Creating new shopping cart

curl -v -X POST "http://localhost:8080/shop/shopping-cart"

Adding product to shopping cart

curl -v -X PUT "http://localhost:8080/shopping-cart/products?id=d634b8df-5e2b-4e1b-b788-ab00f3fefd98&quantity=5"\
    -H 'Content-Type: application/json'\
    -d '{"name":"Steering wheel", "category":"Car parts", "price":"370.00"}'

Buying shopping cart's inventory

curl -v -X PUT "http://localhost:8080/shopping-cart/buy?id=d634b8df-5e2b-4e1b-b788-ab00f3fefd98"

Getting shopping cart's inventory

curl -v "http://localhost:8080/shopping-cart/products?id=d634b8df-5e2b-4e1b-b788-ab00f3fefd98"

Getting balance

curl -v "http://localhost:8080/shop/balance"

About

REST API with event sourcing for online shop written in Scala and Akka

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published