View Source JSONAPI.ResponseContentType (jsonapi v1.7.1)

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.

Summary

Functions

Callback implementation for Plug.call/2.

Callback implementation for Plug.init/1.

Functions

Callback implementation for Plug.call/2.

Callback implementation for Plug.init/1.