- five-elephant: Play scala application. Defines
Five Elephant
coffee shop API. - the-barn: Play scala application. Defines
The Barn
coffee shop API. - starbucks: Play scala application. Defines
starbucks
- maybe a - coffee shop API. - core: Shareable library between API applications above.
Launch Five Elephant application. Listening for HTTP on localhost:9001
:
$ sbt c-five-elephant/run
Launch The Barn application. Listening for HTTP on localhost:9002
:
$ sbt c-the-barn/run
Launch Starbucks application. Listening for HTTP on localhost:9003
:
$ sbt c-starbucks/run
To access the APIs:
$ curl http://localhost:9001/coffee-shop/cappuccino
Enjoy your fancy Cappuccino! Made by Five Elephant.
$ curl http://localhost:9002/coffee-shop/cappuccino
Enjoy your fancy Cappuccino! Made by The Barn.
$ curl http://localhost:9003/coffee-shop/cappuccino
Good luck with your Cappuccino! Made by Starbucks.