phoenix_rest v0.5.0 Mix.Tasks.PhxRest.Gen.Resource

Generates a PlugRest resource in your Phoenix application.

mix phx_rest.gen.resource UserResource

The generated resource will contain:

  • a resource file in web/resources

The resource file path can be set with the option:

mix phx_rest.gen.resource UserResource --path "lib/my_app/resources"

Summary

Functions

Raises on umbrella application

A task needs to implement run which receives a list of command line args

Functions

no_umbrella!(task)

Raises on umbrella application.

run(args)

A task needs to implement run which receives a list of command line args.

Callback implementation for Mix.Task.run/1.