View Source Apical.Plugs.Path (apical v0.2.1)
Plug module for parsing path parameters and placing them into params.
the plug initialization options are as follows:
[router_module, operation_id, parameters, plug_opts]
The router module is passed itself, the operation_id (as an atom),
a list of parameters maps from the OpenAPI schema, one for each cookie
parameter, and the plug_opts keyword list as elucidated by the router
compiler. Initialization will compile an optimized
which is used to parse path parameters from the request.
conn struct after calling this plug will have path parameters
declared in the OpenAPI schema placed into the
As part of the OpenAPI spec, path parameters must be declared in the path key under the
pathsfield of the schema.