jsonapi v1.2.3 JSONAPI.ResponseContentType View Source
Simply add this plug to your endpoint or your router :api pipeline and it will ensure you return the correct response type.
If you need to override the response type simple set conn.assigns[:override_jsonapi] and this will be skipped.
Link to this section Summary
Link to this section Functions
Link to this function
call(conn, opts) View Source
Callback implementation for Plug.call/2
.
Link to this function
init(opts) View Source
Callback implementation for Plug.init/1
.