Generates a Phoenix resource.
mix phoenix.gen.json User users name:string age:integer
The first argument is the module name followed by its plural name (used for resources and schema).
The generated resource will contain:
If you already have a model, the generated model can be skipped with
--no-model. Read the documentation for
phoenix.gen.model for more information on attributes and namespaced resources.
© 2014 Chris McCord
Licensed under the MIT License.