OpenApiCodeGen.Client.Tesla (openapi_codegen v0.1.0)

Tesla client code generation.

Summary

Functions

Generates client AST from OpenAPI spec using

Functions

Link to this function

generate(name, map)

@spec generate(String.t(), map()) :: Macro.t()

Generates client AST from OpenAPI spec using:

Params

  • servers to generate Tesla middleware for the base URL
  • operationId for the name of the functions
  • paths keys to determine method for the function
  • requestBody to generate the request body argument
  • path to generate the request path with string interpolation
  • parameters to generate the URL parameters (if they are of type query)