mix sims.gen.http_crud (sims v0.2.0)

Copy Markdown View Source

Generates a HTTP simulator with CRUD functionality

Generate the boilerplate for a HTTP simulator with CRUD functionality.

Example

mix sims.gen.http_crud AddressBook contact contacts

Options

  • --include-tests - Generate tests for this simulator
  • --include-response-stubs - Generate helpers for stubbing responses like internal server errors
  • --include-app-config - Generate the app config modules and SimulatorHelpers module for switching the app to talk to the simulator