View Source Redoc.Plug.RedocUI (Redoc v0.2.1)
A Plug for rendering Redoc UI.
usage
Usage
If you're using Phoenix Framework, add Redoc UI by add this plug to the router:
scope "/api" do
...
get "/redoc", Redoc.Plug.RedocUI, spec_url: "/spec/openapi"
end
options
Options
spec_url- The openapi path to fetch. Support bothyamlandjson.redoc_version- Specify a Redoc version, default tolatest.