phoenix_rest v0.3.1 Mix.Tasks.PhoenixRest.Gen.Resource

Generates a PlugRest resource in your Phoenix application.

mix phoenix_rest.gen.resource UserResource

The generated resource will contain:

  • a resource file in web/resources

The resources target directory can be changed with the option:

mix phoenix_rest.gen.resource UserResource --dir "lib/my_app/resources"

Summary

Functions

Raises on umbrella application

Callback implementation for c:Mix.Task.run/1

Functions

no_umbrella!(task)

Raises on umbrella application.

run(args)

Callback implementation for c:Mix.Task.run/1.