coduo / TuTu

Flexible HTTP server mocking tool in PHP. TuTu can work with built-in php server so everything that you need to use is php.
MIT License
58 stars 10 forks source link

Added possibility to import responses config files #11

Closed norberttech closed 10 years ago

norberttech commented 10 years ago

After this PR it would be possible to include responses config files using "include" key in responses.yml For example:

# config/responses.yml
includes:
  - api.yml

hello_world:
  path: /hello/world
  content: "Hello world"

In above example Loader is going to load all configs from config/responses.yml, next is going to load config/api.yml and merge responses.yml with api.yml.

From now TuTu can also use following env variables:

defrag commented 10 years ago

Merged. In another PR lets use some additional config, so we wont have to use only env vars.

norberttech commented 10 years ago

:+1: