Skip to content

Instantly share code, notes, and snippets.

@jeanbza
Last active August 29, 2015 14:20
Show Gist options
  • Save jeanbza/f9ca5905f1ad53406f59 to your computer and use it in GitHub Desktop.
Save jeanbza/f9ca5905f1ad53406f59 to your computer and use it in GitHub Desktop.
simulators
|
|-- endpoint_foo_simulator.rb
| ---> GET/POST/PUT/PATCH /actual/endpoint/we/are/simulating
| ---> GET /requests (list of requests)
| ---> POST /response (change the response)
| ---> GET /response (html page that shows current response, and has a single form - which
| allow you to change the response - that points to POST /response)
|-- endpoint_bar_simulator.rb
| ---> GET/POST/PUT/PATCH /actual/endpoint/we/are/simulating
| ---> GET /requests (list of requests)
| ---> POST /response (change the response)
| ---> GET /response (html page that shows current response, and has a single form - which
| allow you to change the response - that points to POST /response)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment