OpenApiSpex.Plug.PutApiSpec (open_api_spex v3.10.0) View Source
Module plug that calls a given module to obtain the Api Spec and store it as private in the Conn.
This allows downstream plugs to use the API spec for casting, validating and rendering.
Options
- module: A module implementing the
OpenApiSpex.OpenApibehaviour
Example
plug OpenApiSpex.Plug.PutApiSpec, module: MyAppWeb.ApiSpec
Link to this section Summary
Link to this section Functions
Specs
Specs
get_spec_and_operation_lookup(Conn.t()) ::
{spec :: OpenApiSpex.OpenApi.t(),
operation_lookup :: %{required(any()) => Operation.t()}}
Specs
spec_module(Conn.t()) :: module()