eview v0.9.3 EView
This plug will take body_params
from Plug.Conn structure
and re-render it with appropriate structure to resp_body
.
What is appropriate structure? Take look at Nebo #15 API Manifest.
Example:
Add to your endpoint.ex
before Plug.Parsers plug:
plug EView
plug EView.Plugs.Idempotency
Summary
Functions
Callback implementation for Plug.call/2
Callback implementation for Plug.init/1
Update body
and add all meta objects that is required by API Manifest structure
Functions
Callback implementation for Plug.call/2
.
Callback implementation for Plug.init/1
.