Baby-com-br/fake-braspag — pull request #5 by rafaelfranca (2014-08-04 16:54:40+00:00)
Title: Add endpoint to enable and disable capture and show failure message when it is disabled

Now we store a configuration to say if a response will be successful or not on redis.

If the response is allowed we respond with a success response. If not we respond with a failure response.

Also I added two endpoints to enable and disable the response for the capture. Both endpoints can be requested using the GET verb. If we try to disable an already disabled response it will return 422.

This configuration will expires after 60 minutes for the case someone forgot to enabled it back.