UseCaseController analysis

Analysis of a possible usage of the UseCaseController pattern

###Usage

  • run composer install
  • build the image docker build -t ucc-analysis .
  • run the container docker run -it -p 3000:3000 -v {yourfolderproject}:/var/www/ucc ucc-analysis bash
  • run in the container bash php -S 0.0.0.0:3000 -t public
  • point the browser to the docker-machine ip (at port 3000), ex. 192.168.99.100:3000
  • check the available endpoints:
    • GET /orders
    • GET /orders/1
    • POST /orders (data folder contains a json payload example)