mix phx.swagger.generate (phoenix_swagger v0.8.3) View Source

Generates swagger.json file based on phoenix router and controllers.


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

Link to this section Functions

Callback implementation for Mix.Task.run/1.