phoenix_swagger v0.8.2 mix phx.swagger.generate View Source
Generates swagger.json file based on phoenix router and controllers.
Usage:
mix phx.swagger.generate
Swagger file configuration must be defined in the project config, eg:
config :your_app, :phoenix_swagger,
swagger_files: %{
"priv/static/swagger.json" => [router: YourAppWeb.Router, endpoint: YourAppWeb.Endpoint]
# ... additional swagger files can be added here
}
Link to this section Summary
Functions
A task needs to implement run
which receives
a list of command line args.
Link to this section Functions
A task needs to implement run
which receives
a list of command line args.
Callback implementation for Mix.Task.run/1
.