View Source mix api.gen (OpenAPI Generator v0.1.0)

Generate code from an Open API description

This task requires two arguments:

  • The configuration profile to use, and
  • The location of the OpenAPI description.

The description location can be given as an absolute path or a path relative to the Mix project where this task is run.

example

Example

mix api.gen default ../rest-api-description/spec.yaml